| | |
| | | </el-form-item> |
| | | <div class="clear" v-if="status == 'edit'"></div> |
| | | <el-form-item label="用户角色:" class="table-cell"> |
| | | <el-select v-model="formData.URole" size="mini" placeholder="请选择用户角色" class="width_140"> |
| | | <el-select v-model="formData.uRole" size="mini" placeholder="请选择用户角色" class="width_140"> |
| | | <el-option v-for="item in URoleList" :key="item.value" :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | |
| | | UAuthority: this.opt.UAuthority || '', |
| | | UMobilephone: this.opt.UMobilephone || '', |
| | | UEmployeeId: this.opt.UEmployeeId || '', |
| | | URole: this.opt.URole || 2, |
| | | uRole: 0, |
| | | }, |
| | | rules: { |
| | | UName: [{ |
| | |
| | | mounted() { |
| | | this.queryWhq(); //维护区 |
| | | this.queryGzbz(); //工作班组 |
| | | if (this.status == 'add') { |
| | | this.formData.uRole = 2 |
| | | } else { |
| | | this.formData.uRole = this.opt.uRole |
| | | } |
| | | }, |
| | | methods: { |
| | | // 查询工作班组 |
| | |
| | | vm.centerDialogVisible = true; |
| | | vm.status = 'edit'; |
| | | vm.thisIndex = index; |
| | | console.log(data) |
| | | vm.opt = data; |
| | | }, |
| | | // 删除 |
| | |
| | | } |
| | | this.userList = data; |
| | | this.userList.map(item => { |
| | | switch (item.URole) { |
| | | switch (item.uRole) { |
| | | case 0: |
| | | item.URoleText = '管理员' |
| | | break; |