From edcd9157af480916471db666d575bb6a644666e1 Mon Sep 17 00:00:00 2001 From: yujt Date: Fri, 15 May 2020 09:20:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/property/group-approve.vue | 24 ++++++++++---------- src/views/modules/sys/role-add-or-update.vue | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/modules/property/group-approve.vue b/src/views/modules/property/group-approve.vue index e7749b2..b2b0f46 100644 --- a/src/views/modules/property/group-approve.vue +++ b/src/views/modules/property/group-approve.vue @@ -110,19 +110,19 @@ export default { } this.$http['post']( '/property/group/operate', this.dataForm).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { }) + }) + }).catch(() => { }) }, 1000, { 'leading': true, 'trailing': false }) } } diff --git a/src/views/modules/sys/role-add-or-update.vue b/src/views/modules/sys/role-add-or-update.vue index d503eab..7c9a8a1 100644 --- a/src/views/modules/sys/role-add-or-update.vue +++ b/src/views/modules/sys/role-add-or-update.vue @@ -124,7 +124,7 @@ export default { appMenuList: [], categoryList: [], roleTypeList: [], - analysisMenuList:[], + analysisMenuList: [], dataForm: { id: '', name: '',