| | |
| | | @on-load="onLoad" |
| | | @sort-change="sortChange" |
| | | > |
| | | <!-- 自定义按钮 --> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | @click="handleExport" |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | |
| | | import { datasing } from "./dataqualificationExamination"; |
| | | // import { getList } from "@/api/qualificationExamination/qualificationExamination"; |
| | | import { getListSecurity } from "@/api/system/user"; |
| | | import Qs from "qs"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.post_add, false), |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | //导出 |
| | | handleExport() { |
| | | this.$confirm("是否导出审查信息?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | //获取查询条件 |
| | | // console.log(this.userInfo, 456); |
| | | // console.log(this.query, 456); |
| | | // return; |
| | | var data = { |
| | | cardid: this.query.cardid, |
| | | realName: this.query.realName, |
| | | securitynumber: this.query.securitynumber, |
| | | status: this.query.status, |
| | | endTime: this.query.endTime, |
| | | startTime: this.query.startTime, |
| | | 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/blade-user/export-security?` + data); |
| | | }) |
| | | .catch((action) => { |
| | | // this.$message({ |
| | | // type: 'info', |
| | | // message: action === 'cancel' |
| | | // ? '放弃保存并离开页面' |
| | | // : '停留在当前页面' |
| | | // }) |
| | | }); |
| | | }, |
| | | getStartTime() { |
| | | if ( |
| | | this.$route.query.startTime != undefined && |