| | |
| | | <input |
| | | class="myCheckboxInput" |
| | | type="checkbox" |
| | | :disabled="rightFrom.usercode==='S001'" |
| | | :value="item.code" |
| | | :name="item.name" |
| | | :style="{color:item.isSelected2?'#42b983':'#fff'}" |
| | |
| | | }, |
| | | // 修改按钮 |
| | | edit(operation, row) { |
| | | if (row.role_code === 'S001') { |
| | | return this.$message.info('此角色无法操作!') |
| | | } |
| | | |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | |
| | |
| | | }, |
| | | // 删除按钮 |
| | | del(row) { |
| | | if (row.role_code === 'S001') { |
| | | return this.$message.info('此角色无法操作!') |
| | | } |
| | | this.$confirm('是否确认删除?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | |
| | | /* 关联用户模块*/ |
| | | userClick(row) { |
| | | if (row.role_code === 'S001') { |
| | | return this.$message.info('此角色无法操作!') |
| | | } |
| | | this.userDialogVisible = true |
| | | this.userForm.roleName = row.role_name |
| | | this.dialogFormUser.rolecode = row.role_code |
| | |
| | | this.dialogFormRight.rightPCArr[0].children = this.dialogFormRight.rightPCArr[0].children.filter(item => item.is_delete === '0') |
| | | this.dialogFormRight.rightPCArr[0].children.forEach(item => { |
| | | item.children = item.children.filter(it => it.is_delete === '0') |
| | | |
| | | if (this.rightFrom.usercode === 'S001') { // Admin系统管理员菜单做到只增不减 |
| | | if (item.flag === 'Y') { |
| | | item.disabled = true |
| | | } |
| | | if (item.children && item.children.length > 0) { |
| | | item.children.forEach(it => { |
| | | if (it.flag === 'Y') { |
| | | it.disabled = true |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | |
| | | this.dialogFormRight.rightAPPArr[0].children.forEach(item => { |
| | | item.children = item.children.filter(it => it.is_delete === '0' || it.is_delete === null) |
| | | // item.children = item.children.filter(it => it.is_delete !== '1') |
| | | |
| | | if (this.rightFrom.usercode === 'S001') { // Admin系统管理员菜单做到只增不减 |
| | | if (item.flag === 'Y') { |
| | | item.disabled = true |
| | | } |
| | | if (item.children && item.children.length > 0) { |
| | | item.children.forEach(it => { |
| | | if (it.flag === 'Y') { |
| | | it.disabled = true |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | // console.log(this.dialogFormRight.rightAPPArr[0], 234) |
| | |
| | | } |
| | | if (this.PCTrue) { |
| | | this.dialogFormRight.rightPCArr[0].name = '全部' |
| | | if (this.rightFrom.usercode === 'S001') { // Admin系统管理员菜单做到只增不减 |
| | | this.dialogFormRight.rightPCArr[0].disabled = true |
| | | } |
| | | } |
| | | if (this.APPTrue) { |
| | | this.dialogFormRight.rightAPPArr[0].name = '全部' |
| | | if (this.rightFrom.usercode === 'S001') { // Admin系统管理员菜单做到只增不减 |
| | | this.dialogFormRight.rightAPPArr[0].disabled = true |
| | | } |
| | | } |
| | | |
| | | // 树形回显部分 |