From bb8c35bbb2853b9a337b74c899f2f631c7e962cc Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Thu, 18 Apr 2024 09:52:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BB=84=E9=85=8D=E7=BD=AE=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/man-car/team/index.vue | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) 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 })