| | |
| | | { |
| | | label: '名称', |
| | | prop: 'name', |
| | | align:'left' |
| | | }, |
| | | { |
| | | label: '编号', |
| | |
| | | leftRoleData: [], // 分配角色穿梭框左侧初始数据 |
| | | rightRoleData: [], // 分配角色穿梭框右侧初始数据 |
| | | transferTitle: ['现有角色', '拥有角色'], |
| | | tipList:["导入模板中标明红色字体的为必输项","部门列上下级关系必须按照反斜杠隔开(/)"] |
| | | tipList:["导入模板中标明红色字体的为必输项","部门列上下级关系必须按照反斜杠隔开(/)"], |
| | | lastIndex:null, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | done(); |
| | | }, |
| | | |
| | | // 表格请求 |
| | | getTableList() { |
| | | this.tableLoading = true; |
| | |
| | | |
| | | // 点击行 |
| | | rowClickHandler(row) { |
| | | this.$refs.userCrud.toggleRowSelection(row); |
| | | func.rowClickHandler( |
| | | row, |
| | | this.$refs.userCrud, |
| | | this.lastIndex, |
| | | (newIndex) => { this.lastIndex = newIndex; }, |
| | | () => { this.selectList = []; } |
| | | ); |
| | | }, |
| | | |
| | | // 分配角色 |
| | |
| | | download().then(res => { |
| | | console.log(res); |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('下载成功') |
| | | this.$message.success('下载成功'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | |
| | | // 分配部门 |
| | | departmentHandler() { |
| | | if (this.selectList.length <= 0) { |
| | | this.$message.warning('清先选择人员再进行操作!') |
| | | this.$message.warning('清先选择人员再进行操作!'); |
| | | return; |
| | | } |
| | | this.departStatus = 'default'; // 区分不同方式打开部门对话框 |