| | |
| | | </div> |
| | | |
| | | <div class="myCheckboxGroup"> |
| | | |
| | | <div |
| | | v-for="item in dialogFormRight.rightOperationArr" |
| | | :key="item.code" |
| | |
| | | class="myCheckbox" |
| | | @click="myCheckboxClick(item)" |
| | | > |
| | | |
| | | <!-- <input--> |
| | | <!-- class="myCheckboxInput"--> |
| | | <!-- type="checkbox"--> |
| | |
| | | }, |
| | | |
| | | /* 关联用户模块*/ |
| | | async userClick(row) { |
| | | userClick(row) { |
| | | if (row.role_code === 'S001') { |
| | | return this.$message.info('此角色无法操作!') |
| | | } |
| | |
| | | |
| | | this.userForm.roleName = row.role_name |
| | | this.dialogFormUser.rolecode = row.role_code |
| | | const res = await this.getRoleAssociationUser() |
| | | |
| | | if (res.code === '200') { |
| | | setTimeout(() => { |
| | | loading.close() |
| | | this.userDialogVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.multipleTable.doLayout() |
| | | this.getRoleAssociationUser().then(res => { |
| | | if (res.code === '200') { |
| | | setTimeout(() => { |
| | | loading.close() |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.multipleTableRef.doLayout() |
| | | }) |
| | | }) |
| | | }, 1000) |
| | | } else { |
| | | loading.close() |
| | | } |
| | | } else { |
| | | loading.close() |
| | | } |
| | | }) |
| | | }, |
| | | // 获取角色清单关联用户 |
| | | async getRoleAssociationUser() { |
| | | const res = await RoleAssociationUser(this.dialogFormUser) |
| | | this.dialogFormUserTable = res.data |
| | | this.dialogFormUserTableLength = res.count |
| | | this.userDialogVisible = true |
| | | this.$nextTick(() => { |
| | | this.dialogFormUserTable.forEach((item, index) => { |
| | | if (item.flag === 'Y') { |
| | | this.$refs.multipleTable.toggleRowSelection(this.dialogFormUserTable[index], true) |
| | | this.$refs.multipleTableRef.toggleRowSelection(this.dialogFormUserTable[index], true) |
| | | } |
| | | }) |
| | | }) |
| | |
| | | name: this.dialogFormRight.rightPCArr[0].name |
| | | }) |
| | | } |
| | | if (this.APPTrue) { |
| | | this.dialogFormRight.rightOperationArr.push({ |
| | | isSelected1: appIsSelected1, |
| | | isSelected2: appIsSelected2, |
| | | code: this.dialogFormRight.rightAPPArr[0].code, |
| | | flag: rightAPPArrFlag, |
| | | name: this.dialogFormRight.rightAPPArr[0].name |
| | | }) |
| | | } |
| | | //莱科和福莱泰的注释掉 |
| | | // if (this.APPTrue) { |
| | | // this.dialogFormRight.rightOperationArr.push({ |
| | | // isSelected1: appIsSelected1, |
| | | // isSelected2: appIsSelected2, |
| | | // code: this.dialogFormRight.rightAPPArr[0].code, |
| | | // flag: rightAPPArrFlag, |
| | | // name: this.dialogFormRight.rightAPPArr[0].name |
| | | // }) |
| | | // } |
| | | if (this.PCTrue) { |
| | | this.dialogFormRight.rightPCArr[0].name = '全部' |
| | | if (this.rightFrom.usercode === 'S001') { // Admin系统管理员菜单做到只增不减 |