| | |
| | | remove, |
| | | } from "@/api/onSiteInspection/securityStaff"; |
| | | import { mapGetters } from "vuex"; |
| | | import { datasing } from "./securityStaffdata"; |
| | | import { getToken } from "@/util/auth"; |
| | | import Qs from "qs"; |
| | | |
| | | export default { |
| | |
| | | jurisdiction: this.userInfo.jurisdiction, |
| | | }; |
| | | //导出 |
| | | // if ( |
| | | // this.userInfo.role_name == "保安公司管理员" || |
| | | // this.userInfo.role_name == "保安" |
| | | // ) { |
| | | // //如果是保安公司管理员 |
| | | // data["deptId"] = this.userInfo.dept_id; |
| | | // } |
| | | // if (this.userInfo.role_name == "培训公司管理员") { |
| | | // //如果是培训公司管理员 |
| | | // data["trainUnitId"] = this.userInfo.dept_id; |
| | | // } |
| | | // data["examType"] = 2; |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open(`/api/seinspect/export-seinspect?` + data); |
| | | window.open(`/api/seinspect/export-seinspect?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` + data); |
| | | }) |
| | | .catch((action) => { |
| | | // this.$message({ |
| | | // type: 'info', |
| | | // message: action === 'cancel' |
| | | // ? '放弃保存并离开页面' |
| | | // : '停留在当前页面' |
| | | // }) |
| | | }); |
| | | }, |
| | | getStartTime() { |
| | | if ( |