| | |
| | | grant, |
| | | resetPassword, |
| | | getJurisdiction, |
| | | getJurisdictionDetail |
| | | getJurisdictionDetail, |
| | | } from "@/api/system/user"; |
| | | import { getDeptTree, getDeptLazyTree } from "@/api/system/dept"; |
| | | import { getRoleTree } from "@/api/system/role"; |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize, |
| | | }, |
| | | platformPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize, |
| | | }, |
| | | init: { |
| | | roleTree: [], |
| | |
| | | viewBtn: true, |
| | | //dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "登录账号", |
| | |
| | | } |
| | | |
| | | // getJurisdictionDetail(this.userInfo.jurisdiction).then((res)=>{ |
| | | // console.log(res.data.data,123); |
| | | // }) |
| | | var parentId = this.userInfo.dept_id; |
| | | if (parentId == "1123598813738675201") { |
| | | parentId = 0; |
| | | } |
| | | getDeptLazyTree(parentId).then((res) => { |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | // console.log(res.data.data,123); |
| | | // }) |
| | | var parentId = this.userInfo.dept_id; |
| | | if (parentId == "1123598813738675201") { |
| | | parentId = 0; |
| | | } |
| | | getDeptLazyTree(parentId).then((res) => { |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | |
| | | getUser(this.form.id).then((res) => { |
| | | this.form = res.data.data; |
| | |
| | | } |
| | | |
| | | var parentId1 = this.userInfo.dept_id; |
| | | if (parentId1 == "1123598813738675201") { |
| | | parentId = 0; |
| | | } |
| | | if (parentId1 == "1123598813738675201") { |
| | | parentId = 0; |
| | | } |
| | | getDeptLazyTree(parentId1).then((res) => { |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | } |
| | | this.initFlag = true; |
| | | done(); |