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) {
@@ -1657,15 +1657,25 @@ export default {
}) })
} }
} else { } else {
this.addDrawer = false if (res.data === '操作成功') {
this.$message.warning(res.data) this.addDrawer = false
this.getData() this.$message.success(res.data)
this.submitLoading = false
this.getData()
} else {
this.addDrawer = false
this.$message.warning(res.data)
this.submitLoading = false
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('请检查表单是否填写正确')
} }
}) })