From 3e0a437e658ac8e1362c6e183e0fbb7e31536b02 Mon Sep 17 00:00:00 2001 From: Romesum Date: Fri, 8 May 2020 01:17:37 +0800 Subject: [PATCH] =?UTF-8?q?[fix][V]=EF=BC=9A=E5=AE=8C=E5=96=84=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E6=8F=90=E4=BA=A4=E6=8F=90=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- element-vue/src/components/supManager/userEditForm.vue | 5 +++-- element-vue/src/components/supManager/userManage.vue | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/element-vue/src/components/supManager/userEditForm.vue b/element-vue/src/components/supManager/userEditForm.vue index 63adf83..7fec128 100644 --- a/element-vue/src/components/supManager/userEditForm.vue +++ b/element-vue/src/components/supManager/userEditForm.vue @@ -59,6 +59,7 @@ }, methods: { async confirm() { + await showDialog("确定要" +(this.edit ? '编辑' : '新增') + '吗?', this) if (this.edit) { await post('lb/user/updateUser', { nickname: this.userForm.nickname, @@ -69,7 +70,7 @@ position: parseInt(this.userForm.position), uid: this.userForm.uid }) - showSuccess('编辑完成',this) + showSuccess('编辑完成', this) } else { await post('lb/user/addUser', { nickname: this.userForm.nickname, @@ -80,7 +81,7 @@ position: parseInt(this.userForm.position), password: this.password }) - showSuccess('新增完成',this) + showSuccess('新增完成', this) } this.$emit('confirm') }, diff --git a/element-vue/src/components/supManager/userManage.vue b/element-vue/src/components/supManager/userManage.vue index bebb830..8cf45da 100644 --- a/element-vue/src/components/supManager/userManage.vue +++ b/element-vue/src/components/supManager/userManage.vue @@ -105,7 +105,6 @@ }, // 编辑用户 async editUser(item) { - await showDialog('确认编辑该用户吗?',this) this.edit = true this.userForm = item this.dialogFormVisible = true