| | |
| | | }) |
| | | } |
| | | |
| | | export const updateUser = (row) => { |
| | | return request({ |
| | | url: '/api/blade-user/updateUser', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const updatePlatform = (userId, userType, userExt) => { |
| | | return request({ |
| | | url: '/api/blade-user/update-platform', |
| | |
| | | width="150" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | v-if="gridData.type === 'zg'" |
| | | :key="gridData.type" |
| | | prop="emails" |
| | | label="审查异常备注" |
| | | :show-overflow-tooltip="true" |
| | | width="150" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | v-if="gridData.type === 'xs'" |
| | | :key="gridData.type" |
| | | prop="score" |
| | |
| | | remove, |
| | | } from "@/api/onSiteInspection/company"; |
| | | import { mapGetters } from "vuex"; |
| | | // import { datasing } from "@api/qualificationExamination/datasignQualificationExamination"; |
| | | import { datasing } from "./company"; |
| | | 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/coinspect/export-coinspect?` + data); |
| | | }) |
| | | .catch((action) => { |
| | | // this.$message({ |
| | | // type: 'info', |
| | | // message: action === 'cancel' |
| | | // ? '放弃保存并离开页面' |
| | | // : '停留在当前页面' |
| | | // }) |
| | | window.open(`/api/coinspect/export-coinspect?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` + data); |
| | | }); |
| | | }, |
| | | getStartTime() { |
| | |
| | | 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 ( |
| | |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | :type="type" |
| | | :size="size" |
| | | icon="el-icon-edit" |
| | | :disabled="row.examinationType!=1" |
| | | @click="handleAuditDesc(row)" |
| | | >审查异常备注 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-dialog |
| | | title="审查异常备注" |
| | | append-to-body |
| | | :visible.sync="dialogAudit" |
| | | width="900px" |
| | | @close="closeDialog" |
| | | > |
| | | <avue-form |
| | | ref="formAudit" |
| | | v-model="audit" |
| | | :option="optionAuditDesc" |
| | | @reset-change="emptytChange" |
| | | @submit="submitAudit" |
| | | ></avue-form> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import { getListSecurity } from "@/api/system/user"; |
| | | import { getListSecurity,updateUser } from "@/api/system/user"; |
| | | import Qs from "qs"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | id:"", |
| | | batchAudit: {}, |
| | | dialogAudit: false, |
| | | optionAuditDesc: { |
| | | height: "auto", |
| | | filterBtn: true, |
| | | calcHeight: 30, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |
| | | selection: false, |
| | | excelBtn: false, |
| | | menuWidth: 380, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "审核明细", |
| | | span: 24, |
| | | type: "textarea", |
| | | prop: "emails", |
| | | }, |
| | | ], |
| | | }, |
| | | selectionList: [], |
| | | option: { |
| | | // 操作栏多余按钮去除 |
| | |
| | | editBtn: false, |
| | | addBtn: false, |
| | | selection: true, |
| | | menu: false, |
| | | menu: true, |
| | | menuWidth:150, |
| | | searchShowBtn: false, |
| | | align: "center", |
| | | height: "auto", |
| | |
| | | prop: "auditTime", |
| | | // hide: true, |
| | | }, |
| | | // { |
| | | // label: "是否在职", |
| | | // prop: "status", |
| | | // // labelWidth: 120, |
| | | // // display: false, |
| | | // }, |
| | | { |
| | | label: "审查异常备注", |
| | | prop: "emails", |
| | | }, |
| | | ], |
| | | }, |
| | | data: [ |
| | |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.post_add, false), |
| | | viewBtn: this.vaildData(this.permission.post_view, false), |
| | | delBtn: this.vaildData(this.permission.post_delete, false), |
| | | editBtn: this.vaildData(this.permission.post_edit, false), |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(null, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | this.search["examinationType"] = "1"; |
| | | }, |
| | | methods: { |
| | | //证书批量审核 |
| | | handleAuditDesc(row) { |
| | | console.log(row,123); |
| | | this.id = row.id; |
| | | |
| | | this.dialogAudit = true; |
| | | }, |
| | | //审查异常备注提交 |
| | | submitAudit(row, done, loading) { |
| | | var that = this; |
| | | const data = { |
| | | id: this.id, |
| | | emails: row.emails |
| | | }; |
| | | //提交申请 |
| | | updateUser(data).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | that.$refs.formAudit.resetFields(); |
| | | that.dialogAudit = false; |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | //导出 |
| | | handleExport() { |
| | | this.$confirm("是否导出审查信息?", "提示", { |
| | |
| | | // 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> |