| | |
| | | updatePlatform, |
| | | add, |
| | | grant, |
| | | resetPassword, unlock |
| | | 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" |
| | | import { mapGetters } from "vuex" |
| | | import { |
| | | exportBlob |
| | | } from "@/api/common" |
| | | import { |
| | | getDeptTree, |
| | | getDeptLazyTree |
| | | } from "@/api/system/dept" |
| | | import { |
| | | getRoleTree |
| | | } from "@/api/system/role" |
| | | import { |
| | | getPostList |
| | | } from "@/api/system/post" |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | | import website from '@/config/website' |
| | | import { getToken } from '@/util/auth' |
| | | import { downloadXls } from "@/util/util" |
| | | import { dateNow } from "@/util/date" |
| | | import { |
| | | getToken |
| | | } from '@/util/auth' |
| | | import { |
| | | downloadXls |
| | | } from "@/util/util" |
| | | import { |
| | | dateNow |
| | | } from "@/util/date" |
| | | import NProgress from 'nprogress' |
| | | import 'nprogress/nprogress.css' |
| | | import func from "@/util/func" |
| | |
| | | viewBtn: true, |
| | | dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | column: [{ |
| | | label: "登录账号", |
| | | prop: "account", |
| | | search: true, |
| | |
| | | // }] |
| | | // }, |
| | | ], |
| | | group: [ |
| | | { |
| | | group: [{ |
| | | label: '基础信息', |
| | | prop: 'baseInfo', |
| | | icon: 'el-icon-user-solid', |
| | |
| | | hide: true, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | rules: [{ required: true, validator: validatePass, trigger: 'blur' }] |
| | | rules: [{ |
| | | required: true, |
| | | validator: validatePass, |
| | | trigger: 'blur' |
| | | }] |
| | | }, |
| | | { |
| | | label: '确认密码', |
| | |
| | | hide: true, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | rules: [{ required: true, validator: validatePass2, trigger: 'blur' }] |
| | | rules: [{ |
| | | required: true, |
| | | validator: validatePass2, |
| | | trigger: 'blur' |
| | | }] |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | label: '详细信息', |
| | | prop: 'detailInfo', |
| | | icon: 'el-icon-s-order', |
| | | column: [ |
| | | { |
| | | column: [{ |
| | | label: "用户昵称", |
| | | prop: "name", |
| | | hide: true, |
| | |
| | | label: "用户性别", |
| | | prop: "sex", |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | | dicData: [{ |
| | | label: "男", |
| | | value: 1 |
| | | }, |
| | |
| | | dialogClickModal: false, |
| | | menuWidth: 120, |
| | | editBtnText: '配置', |
| | | column: [ |
| | | { |
| | | column: [{ |
| | | label: "登录账号", |
| | | prop: "account", |
| | | search: true, |
| | |
| | | excelOption: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [ |
| | | { |
| | | column: [{ |
| | | label: '模板上传', |
| | | prop: 'excelFile', |
| | | type: 'upload', |
| | |
| | | type: "switch", |
| | | align: "center", |
| | | width: 80, |
| | | dicData: [ |
| | | { |
| | | dicData: [{ |
| | | label: "否", |
| | | value: 0 |
| | | }, |
| | |
| | | ], |
| | | value: 0, |
| | | slot: true, |
| | | rules: [ |
| | | { |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择是否覆盖", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }] |
| | | }, |
| | | { |
| | | label: '模板下载', |
| | |
| | | type: "warning" |
| | | }).then(() => { |
| | | NProgress.start() |
| | | exportBlob(`/api/blade-system/user/export-user?${this.website.tokenHeader}=${getToken()}&account=${account}&realName=${realName}`).then(res => { |
| | | exportBlob( |
| | | `/api/blade-system/user/export-user?${this.website.tokenHeader}=${getToken()}&account=${account}&realName=${realName}` |
| | | ).then(res => { |
| | | downloadXls(res.data, `用户数据表${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |