diff --git a/ah-jjzhgd-web/src/views/man-car/team/index.vue b/ah-jjzhgd-web/src/views/man-car/team/index.vue index 10dfc46..d757e71 100644 --- a/ah-jjzhgd-web/src/views/man-car/team/index.vue +++ b/ah-jjzhgd-web/src/views/man-car/team/index.vue @@ -222,13 +222,16 @@ export default { this.$refs['dataForm'].validate((valid) => { if (valid) { addTeamItem(this.temp).then((response) => { - this.$message({ - showClose: true, - message: response.msg, - type: 'success', - duration: 2000 - }) - this.getList() + if(response.code==200){ + this.$message({ + showClose: true, + message: response.msg, + type: 'success', + duration: 2000 + }) + this.getList() + } + }).finally(() => { this.dialogFormVisible = false }) @@ -247,13 +250,15 @@ export default { this.$refs['dataForm'].validate((valid) => { if (valid) { updateTeamItem(this.temp).then((response) => { - this.$message({ - showClose: true, - message: response.msg, - type: 'success', - duration: 2000 - }) - this.getList() + if(response.code==200){ + this.$message({ + showClose: true, + message: response.msg, + type: 'success', + duration: 2000 + }) + this.getList() + } }).finally(() => { this.dialogFormVisible = false })