| | |
| | | import { mapGetters } from "vuex"; |
| | | import website from "@/config/website"; |
| | | import { getToken } from "@/util/auth"; |
| | | import dept from "@/views/system/dept.vue"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | done(); |
| | | }, |
| | | handleExport() { |
| | | var deptId = "" |
| | | |
| | | if (this.treeDeptId == ""){ |
| | | |
| | | if (this.userInfo.role_name.indexOf("administrator") ==-1){ |
| | | deptId = this.userInfo.dept_id |
| | | } |
| | | }else{ |
| | | deptId = this.treeDeptId.id |
| | | } |
| | | |
| | | this.$confirm("是否导出用户数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | |
| | | this.website.tokenHeader |
| | | }=${getToken()}&account=${this.search.account}&realName=${ |
| | | this.search.realName |
| | | }` |
| | | }&deptId=${deptId}` |
| | | ); |
| | | }); |
| | | }, |