| | |
| | | // remove, |
| | | // } from "@/api/regulatoryInformation/regulatoryInformation"; |
| | | import { mapGetters } from "vuex"; |
| | | import { datasing } from "./dataqualificationExamination"; |
| | | // import { getList } from "@/api/qualificationExamination/qualificationExamination"; |
| | | import { getLisperexamScore } from "@/api/qualificationExamination/scoreInquiry"; |
| | | import Qs from "qs"; |
| | | import { getToken } from "@/util/auth"; |
| | | import { getLisperexamScore } from "@/api/qualificationExamination/scoreInquiry"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | prop: "examName", |
| | | search: true, |
| | | searchSpan: 5, |
| | | // slot: true, |
| | | // display: false, |
| | | minWidth: 150, |
| | | }, |
| | | { |
| | | // label: "考试开始时间", |
| | |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | // slot: true, |
| | | // display: false, |
| | | // formatter: function (row, value) { |
| | | // return (value = value + "%"); |
| | | // }, |
| | | }, |
| | | // { |
| | | // label: "考试结束时间", |
| | |
| | | // // formatter: function (row, value) { |
| | | // // return (value = value + "万元"); |
| | | // // }, |
| | | // }, |
| | | // { |
| | | // label: "考试类型", |
| | | // prop: "examinationaddress", |
| | | // // slot: true, |
| | | // // display: false, |
| | | // }, |
| | | { |
| | | label: "理论成绩", |
| | |
| | | value: 3, |
| | | }, |
| | | ], |
| | | // slot: true, |
| | | // display: false, |
| | | }, |
| | | { |
| | | label: "是否发证", |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | data: [ |
| | | // { |
| | | // deptid: "江西众泰保安公司", |
| | | // punishtype: 2, |
| | | // punishreason: "非法施工", |
| | | // punishresult: "没收全部非法所得财产,并罚款3W元", |
| | | // punishtime: "2021-01-01", |
| | | // punisnum: 110110110120, |
| | | // }, |
| | | ], |
| | | data: [], |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | }) |
| | | .then(() => { |
| | | //获取查询条件 |
| | | // console.log(this.userInfo, 456); |
| | | // console.log(this.query, 456); |
| | | // return; |
| | | var data = { |
| | | startTime: this.query.startTime, |
| | | endTime: this.query.endTime, |
| | |
| | | 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/examScore/export-examScore?` + data); |
| | | window.open( |
| | | `/api/examScore/export-examScore?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` + data |
| | | ); |
| | | }) |
| | | .catch((action) => { |
| | | // this.$message({ |
| | | // type: 'info', |
| | | // message: action === 'cancel' |
| | | // ? '放弃保存并离开页面' |
| | | // : '停留在当前页面' |
| | | // }) |
| | | }); |
| | | }, |
| | | getStartTime() { |
| | | if ( |
| | |
| | | } |
| | | return ""; |
| | | }, |
| | | |
| | | rowSave(row, done, loading) { |
| | | adddata(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | rowUpdates(row, index, done, loading) { |
| | | // console.log(42342); |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | // beforeOpen(done, type) { |
| | | // if (["edit", "view"].includes(type)) { |
| | | // getDetail(this.form.id).then((res) => { |
| | | // this.form = res.data.data; |
| | | // }); |
| | | // } |
| | | // done(); |
| | | // }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | // this.loading = false; |
| | | this.loading = true; |
| | | getLisperexamScore( |
| | | page.currentPage, |
| | |
| | | } |
| | | } |
| | | this.loading = false; |
| | | // for (var k in d) { |
| | | // if (d[k].qualified == 0) { |
| | | // d[k].qualified = "通过"; |
| | | // } else if (d[k].qualified == 1) { |
| | | // d[k].qualified = "不通过"; |
| | | // } else if (d[k].qualified == 2) { |
| | | // d[k].qualified = "暂未录入实操成绩"; |
| | | // } |
| | | // } |
| | | // this.data = d; |
| | | // console.log(this.data); |
| | | |
| | | // this.selectionClear(); |
| | | }); |
| | | }, |
| | | // onLoad(page, params = {}) { |
| | | // // this.loading = false; |
| | | // this.loading = true; |
| | | // // getListJSON().then((res) => { |
| | | // // axios |
| | | // // .get( |
| | | // // "../../api/qualificationExamination/signQualificationExamination.json" |
| | | // // ) |
| | | // // .then((res) => { |
| | | // // page.currentPage, |
| | | // // page.pageSize, |
| | | // // Object.assign(params, this.query) |
| | | // if (datasing) { |
| | | // var res = datasing; |
| | | // console.log(res, "signQualificationExamination"); |
| | | // const data = res.data; |
| | | // // this.page.total = data.total; |
| | | // var d = data.records; |
| | | // for (var k in d) { |
| | | // d[k].examination_mx = "正常"; |
| | | // d[k].examination_type = "正常"; |
| | | // d[k]["carid"] = "370111198807051124"; |
| | | // d[k]["certificate"] = "拥有"; |
| | | // d[k]["reviewTime"] = "2021-02-21"; |
| | | // d[k]["results"] = "通过"; |
| | | // d[k]["onjob"] = "是"; |
| | | // } |
| | | // this.data = d; |
| | | // this.loading = false; |
| | | // } |
| | | // // this.selectionClear(); |
| | | // // }); |
| | | // }, |
| | | |
| | | // 行单击 |
| | | // handleRowClick(row) { |
| | | // // delete (row["name"]); |
| | | // var obj = row; |
| | | // obj["name"] = "保安公司详细资料"; |
| | | // this.$router.push({ |
| | | // path: `/securityCompany/index`, |
| | | // query: obj, |
| | | // }); |
| | | // }, |
| | | }, |
| | | }; |
| | | </script> |