用户修复

dev_2022-04-07 V1.2.3
yujialong 3 years ago
parent 9c529091f5
commit 77b9f71d87
  1. 3
      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

Loading…
Cancel
Save