| | |
| | | add, |
| | | grant, |
| | | resetPassword, |
| | | getJurisdiction, |
| | | } from "@/api/system/user"; |
| | | import { getDeptTree, getDeptLazyTree } from "@/api/system/dept"; |
| | | import { getRoleTree } from "@/api/system/role"; |
| | |
| | | } |
| | | }; |
| | | return { |
| | | form: { |
| | | }, |
| | | form: {}, |
| | | search: {}, |
| | | roleBox: false, |
| | | excelBox: false, |
| | |
| | | { |
| | | label: "密码", |
| | | prop: "password", |
| | | type:'password', |
| | | type: "password", |
| | | hide: true, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | |
| | | { |
| | | label: "确认密码", |
| | | prop: "password2", |
| | | type:'password', |
| | | type: "password", |
| | | hide: true, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | |
| | | row.deptId = row.deptId; |
| | | row.roleId = row.roleId.join(","); |
| | | row.postId = row.postId.join(","); |
| | | add(row).then( |
| | | () => { |
| | | this.initFlag = false; |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | console.log(row, "row"); |
| | | var params = { |
| | | deptname: row.$deptId, |
| | | }; |
| | | getJurisdiction(params).then((res) => { |
| | | // console.log(res.data.data); |
| | | // return; |
| | | if (res.msg != "暂无承载数据") { |
| | | row.jurisdiction = res.data.data; |
| | | } else { |
| | | row.jurisdiction = ""; |
| | | } |
| | | ); |
| | | add(row).then( |
| | | () => { |
| | | this.initFlag = false; |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }); |
| | | // return; |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | row.deptId = row.deptId; |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | params['status'] = 1; |
| | | params["status"] = 1; |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |