From 77b9f71d8754a391c7aa65794e8eb5f94982d441 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 10 May 2022 18:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/list/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/user/list/index.vue b/src/pages/user/list/index.vue index ea332aa..3443235 100644 --- a/src/pages/user/list/index.vue +++ b/src/pages/user/list/index.vue @@ -425,14 +425,13 @@ export default { if(this.workNumberRepeat) return util.errorMsg('该学号/工号已存在!') if(this.phoneRepeat) return util.errorMsg('该手机号已存在!') if(this.emailRepeat) return util.errorMsg('该邮箱已存在!') - this.submiting = true let data = this.form // 如果是新增,则取当前用户的schoolId data.schoolId = data.schoolId ? data.schoolId : this.schoolId // 如果是新增,则生成个时间戳作为唯一标识 if(!data.userId) data.uniqueIdentification = new Date().getTime() - if(!data.roleIds.length) return util.errorMsg('请至少选择一个角色') + this.submiting = true if(this.form.userId){ this.$post(this.api.modifyUser,data).then(res => { this.userVisible = false