| | |
| | | grant, |
| | | resetPassword, |
| | | unlock, |
| | | } from "@/api/system/user"; |
| | | import { exportBlob } from "@/api/common"; |
| | | import { getDeptTree, getDeptLazyTree } from "@/api/system/dept"; |
| | | import { getRoleTree } from "@/api/system/role"; |
| | | import { getPostList } from "@/api/system/post"; |
| | | } from "@/ssoapi/system/user"; |
| | | import { exportBlob } from "@/ssoapi/common"; |
| | | import { getDeptTree, getDeptLazyTree } from "@/ssoapi/system/dept"; |
| | | import { getRoleTree } from "@/ssoapi/system/role"; |
| | | import { getPostList } from "@/ssoapi/system/post"; |
| | | import { mapGetters } from "vuex"; |
| | | import website from "@/config/website"; |
| | | import { getToken } from "@/util/auth"; |
| | |
| | | search: true, |
| | | searchLabelWidth: 110, |
| | | display: false, |
| | | dicUrl: "/api/blade-system/client/tree", |
| | | dicUrl: "/ssoapi/blade-system/client/tree", |
| | | type: "select", |
| | | props: { |
| | | label: "clientName", |
| | |
| | | // { |
| | | // label: "用户平台", |
| | | // type: "select", |
| | | // dicUrl: "/api/blade-system/dict/dictionary?code=user_type", |
| | | // dicUrl: "/ssoapi/blade-system/dict/dictionary?code=user_type", |
| | | // props: { |
| | | // label: "dictValue", |
| | | // value: "dictKey" |
| | |
| | | // label: "所属租户", |
| | | // prop: "tenantId", |
| | | // type: "tree", |
| | | // dicUrl: "/api/blade-system/tenant/select", |
| | | // dicUrl: "/ssoapi/blade-system/tenant/select", |
| | | // props: { |
| | | // label: "tenantName", |
| | | // value: "tenantId" |
| | |
| | | { |
| | | label: "客户端", |
| | | prop: "clientIds", |
| | | dicUrl: "/api/blade-system/client/tree", |
| | | dicUrl: "/ssoapi/blade-system/client/tree", |
| | | type: "select", |
| | | props: { |
| | | label: "clientName", |
| | |
| | | // { |
| | | // label: "用户平台", |
| | | // type: "select", |
| | | // dicUrl: "/api/blade-system/dict/dictionary?code=user_type", |
| | | // dicUrl: "/ssoapi/blade-system/dict/dictionary?code=user_type", |
| | | // props: { |
| | | // label: "dictValue", |
| | | // value: "dictKey" |
| | |
| | | { |
| | | label: "用户平台", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict/dictionary?code=user_type", |
| | | dicUrl: "/ssoapi/blade-system/dict/dictionary?code=user_type", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey", |
| | |
| | | res: "data", |
| | | }, |
| | | tip: "请上传 .xls,.xlsx 标准格式文件", |
| | | action: "/api/blade-system/user/import-user", |
| | | action: "/ssoapi/blade-system/user/import-user", |
| | | }, |
| | | { |
| | | label: "数据覆盖", |
| | |
| | | "excelForm.isCovered"() { |
| | | if (this.excelForm.isCovered !== "") { |
| | | const column = this.findObject(this.excelOption.column, "excelFile"); |
| | | column.action = `/api/blade-system/user/import-user?isCovered=${this.excelForm.isCovered}`; |
| | | column.action = `/ssoapi/blade-system/user/import-user?isCovered=${this.excelForm.isCovered}`; |
| | | } |
| | | }, |
| | | }, |
| | |
| | | }).then(() => { |
| | | NProgress.start(); |
| | | exportBlob( |
| | | `/api/blade-system/user/export-user?${ |
| | | `/ssoapi/blade-system/user/export-user?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&account=${account}&realName=${realName}&deptId=${deptId}` |
| | | ).then((res) => { |
| | |
| | | }, |
| | | handleTemplate() { |
| | | exportBlob( |
| | | `/api/blade-system/user/export-template?${ |
| | | `/ssoapi/blade-system/user/export-template?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}` |
| | | ).then((res) => { |