fix: 企标计划编辑功能BUG修改

This commit is contained in:
wxyclub
2024-07-15 15:11:18 +08:00
parent ae5bba39fc
commit bd83917049
2 changed files with 14 additions and 3 deletions
+1
View File
@@ -412,6 +412,7 @@
watch: { watch: {
isVisible(val) { isVisible(val) {
this.visible = val this.visible = val
this.filterText= ''
if (val) { if (val) {
this.nodeList2 = this.nodeList this.nodeList2 = this.nodeList
if (this.nodeList2.length && this.nodeList2[0].length) { if (this.nodeList2.length && this.nodeList2[0].length) {
@@ -1656,16 +1656,26 @@ export default {
} }
}) })
} }
} else {
if (res.data === '操作成功') {
this.addDrawer = false
this.$message.success(res.data)
this.submitLoading = false
this.getData()
} else { } else {
this.addDrawer = false this.addDrawer = false
this.$message.warning(res.data) this.$message.warning(res.data)
this.submitLoading = false
this.getData() this.getData()
} }
}
} else { } else {
this.submitLoading = false
this.$message.warning(tips + '失败') this.$message.warning(tips + '失败')
} }
}) })
} else { } else {
this.submitLoading = false
this.$message.warning('请检查表单是否填写正确') this.$message.warning('请检查表单是否填写正确')
} }
}) })