| | |
| | | required: true, |
| | | message: "请选择所属角色", |
| | | trigger: "click" |
| | | }] |
| | | }], |
| | | display: false |
| | | }, |
| | | { |
| | | label: "用户名", |
| | |
| | | required: true, |
| | | message: "请选择所属单位", |
| | | trigger: "click" |
| | | }] |
| | | }], |
| | | display: false |
| | | }, |
| | | { |
| | | label: "启用状态", |
| | | prop: "status", |
| | | type: "select", |
| | | dicUrl: '/api/blade-system/dict-biz/dictionary?code=user_status', |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | display: false |
| | | }, |
| | | ], |
| | | group: [ |
| | |
| | | if (!website.tenantMode) { |
| | | this.initData(website.tenantId); |
| | | } |
| | | getRoleTree(this.userInfo.tenant_id).then(res => { |
| | | const column = this.findObject(this.option.column, "roleId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | getDeptTree(this.userInfo.tenant_id).then(res => { |
| | | const column = this.findObject(this.option.column, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | }, |
| | | methods: { |
| | | nodeClick(data) { |
| | |
| | | getRoleTree(tenantId).then(res => { |
| | | const column = this.findObject(this.option.group, "roleId"); |
| | | column.dicData = res.data.data; |
| | | const columnRole = this.findObject(this.option.column, "roleId"); |
| | | columnRole.dicData = res.data.data; |
| | | }); |
| | | getDeptTree(tenantId).then(res => { |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | const columnDept = this.findObject(this.option.column, "deptId"); |
| | | columnDept.dicData = res.data.data; |
| | | }); |
| | | // getPostList(tenantId).then(res => { |
| | | // const column = this.findObject(this.option.group, "postId"); |
| | |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.data.forEach(e=>{ |
| | | e.status = e.status + "" |
| | | }) |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | | |
| | | //下面的方法业务都不需要 |
| | | platformRowUpdate(row, index, done, loading) { |
| | | updatePlatform(row.id, row.userType, row.userExt).then(() => { |
| | | this.platformOnLoad(this.platformPage); |