| | |
| | | this.xukezData.type = "0"; |
| | | this.dialogVisiblecc = false; |
| | | this.xukezData["approve"] = this.textareaShenpi; |
| | | console.log(this.xukezData); |
| | | // console.log(this.xukezData); |
| | | update(this.xukezData); |
| | | this.textareaShenpi = ""; |
| | | this.$message({ |
| | |
| | | |
| | | viewLicense(row) { |
| | | //查看许可证 |
| | | console.log(row, 34); |
| | | // console.log(row, 34); |
| | | this.licenceData.row = row; |
| | | this.licenceData.chiden = {}; |
| | | this.licenceData.chiden["名称"] = row.enterprisename; |
| | |
| | | // this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | // this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | console.log(this.licenceData); |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | |
| | | this.xukezData.type = "0"; |
| | | this.dialogVisiblecc = false; |
| | | this.xukezData["approve"] = this.textareaShenpi; |
| | | console.log(this.xukezData); |
| | | // console.log(this.xukezData); |
| | | update(this.xukezData); |
| | | this.textareaShenpi = ""; |
| | | }, |
| | |
| | | this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | console.log(this.licenceData); |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | |
| | | this.xukezData.type = "0"; |
| | | this.dialogVisiblecc = false; |
| | | this.xukezData["approve"] = this.textareaShenpi; |
| | | console.log(this.xukezData); |
| | | // console.log(this.xukezData); |
| | | update(this.xukezData); |
| | | this.textareaShenpi = ""; |
| | | }, |
| | |
| | | |
| | | viewLicense(row) { |
| | | //查看许可证 |
| | | console.log(row, 34); |
| | | // console.log(row, 34); |
| | | this.licenceData.row = row; |
| | | this.licenceData.chiden = {}; |
| | | this.licenceData.chiden["名称"] = row.enterprisename; |
| | |
| | | // this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | // this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | console.log(this.licenceData); |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | |
| | | this.xukezData.sopinion = this.textareaShenpi; |
| | | this.xukezData.type = type; // 为了保持审核系统识别 |
| | | } |
| | | console.log(this.xukezData); |
| | | // console.log(this.xukezData); |
| | | // return; |
| | | update(this.xukezData).then((res) => { |
| | | console.log(res); |
| | | // console.log(res); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | |
| | | }, |
| | | viewLicense(row) { |
| | | //查看许可证 |
| | | console.log(row, 34); |
| | | // console.log(row, 34); |
| | | this.licenceData.row = row; |
| | | this.licenceData.chiden = {}; |
| | | this.licenceData.chiden["名称"] = row.enterprisename; |
| | |
| | | // this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | // this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | console.log(this.licenceData); |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | |
| | | ...params, |
| | | ...this.getFenji(this.userInfo.role_name), |
| | | }; |
| | | console.log(params, "params"); |
| | | // console.log(params, "params"); |
| | | // return; |
| | | getList( |
| | | page.currentPage, |
| | |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | for (var k in this.data) { |
| | | console.log(this.changeState(this.data[k])); |
| | | // console.log(this.changeState(this.data[k])); |
| | | this.data[k] = this.changeState(this.data[k]); |
| | | } |
| | | this.loading = false; |
| | |
| | | }, |
| | | |
| | | handleCredentials(row) { |
| | | console.log(row, "21354"); |
| | | // console.log(row, "21354"); |
| | | this.$router.push({ |
| | | path: "/attachOnce/index", |
| | | // redirect: { name: "foo" }, |
| | |
| | | this.xukezData.type = "0"; |
| | | this.dialogVisiblecc = false; |
| | | this.xukezData["approve"] = this.textareaShenpi; |
| | | console.log(this.xukezData); |
| | | // console.log(this.xukezData); |
| | | update(this.xukezData); |
| | | this.textareaShenpi = ""; |
| | | }, |
| | |
| | | this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | console.log(this.licenceData); |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | |
| | | this.xukezData.type = "0"; |
| | | this.dialogVisiblecc = false; |
| | | this.xukezData["approve"] = this.textareaShenpi; |
| | | console.log(this.xukezData); |
| | | // console.log(this.xukezData); |
| | | update(this.xukezData); |
| | | this.textareaShenpi = ""; |
| | | }, |
| | |
| | | this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | console.log(this.licenceData); |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | |
| | | for (var k in this.equipmentData) { |
| | | this.equipmentData[k]["name"] = this.form.realName; |
| | | } |
| | | console.log(this.equipmentData); |
| | | // console.log(this.equipmentData); |
| | | this.equipmentLoading = false; |
| | | this.$refs.equipmentCrud.refreshTable(); |
| | | this.$refs.equipmentCrud.doLayout(); |
| | |
| | | for (var k in this.equipmentData) { |
| | | this.equipmentData[k]["name"] = this.form.realName; |
| | | } |
| | | console.log(this.equipmentData, " this.equipmentData"); |
| | | // console.log(this.equipmentData, " this.equipmentData"); |
| | | this.equipmentLoading = false; |
| | | this.$refs.equipmentCrud.refreshTable(); |
| | | this.$refs.equipmentCrud.doLayout(); |
| | |
| | | |
| | | this.punishPage.total = data.total; |
| | | this.punishData = data.records; |
| | | console.log(this.punishData); |
| | | // console.log(this.punishData); |
| | | this.punishLoading = false; |
| | | this.$refs.punishCrud.refreshTable(); |
| | | this.$refs.punishCrud.doLayout(); |
| | |
| | | this.staffOnLoad(this.staffPage, this.staffQuery); |
| | | }, |
| | | staffOnLoad(page, params = {}) { |
| | | console.log(this.form, 111); |
| | | // console.log(this.form, 111); |
| | | this.staffLoading = true; |
| | | getLisperformance( |
| | | page.currentPage, |
| | |
| | | for (var k in this.staffData) { |
| | | this.staffData[k]["name"] = this.form.realName; |
| | | } |
| | | console.log(this.staffData, "staffData"); |
| | | // console.log(this.staffData, "staffData"); |
| | | this.staffLoading = false; |
| | | this.$refs.staffCrud.refreshTable(); |
| | | this.$refs.staffCrud.doLayout(); |
| | |
| | | }); |
| | | }, |
| | | handleClick(tab) { |
| | | console.log(tab.index); |
| | | // console.log(tab.index); |
| | | if (tab.index == 1) { |
| | | this.getManifestationData(); |
| | | } else if (tab.index == 2) { |
| | |
| | | getManifestationData() { |
| | | manifestationList(this.form.id).then((res) => { |
| | | this.manifestationData = res.data.data.records; |
| | | console.log(this.manifestationData, " this.manifestationData "); |
| | | // console.log(this.manifestationData, " this.manifestationData "); |
| | | this.manifestationData.forEach((item) => { |
| | | item.name = this.form.realName; |
| | | item.time = item.time.substring(0, 10); |
| | |
| | | }) |
| | | .then(() => { |
| | | updateHold(2, row.cardid).then((res) => { |
| | | console.log(res); |
| | | // console.log(res); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "删除成功!", |
| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | <!-- 自定义按钮 --> |
| | | <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 { mapGetters } from "vuex"; |
| | | // import { datasing } from "@api/qualificationExamination/datasignQualificationExamination"; |
| | | import { datasing } from "./company"; |
| | | import Qs from "qs"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | //导出 |
| | | handleExport() { |
| | | this.$confirm("是否导出成绩数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | // console.log(this.questionBankSearch, 456); |
| | | var data = { |
| | | account: this.questionBankSearch.account, |
| | | companyName: this.questionBankSearch.companyName, |
| | | examDate: this.questionBankSearch.examDate, |
| | | isExam: this.questionBankSearch.isExam, |
| | | qualified: this.questionBankSearch.qualified, |
| | | securityName: this.questionBankSearch.securityName, |
| | | examName: this.questionBankSearch.examName, |
| | | }; |
| | | //导出 |
| | | 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); |
| | | }); |
| | | }, |
| | | getStartTime() { |
| | | if ( |
| | | this.$route.query.startTime != undefined && |
| | |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | console.log(this.data); |
| | | // console.log(this.data); |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | |
| | | this.xukezData.type = "0"; |
| | | this.dialogVisiblecc = false; |
| | | this.xukezData["approve"] = this.textareaShenpi; |
| | | console.log(this.xukezData); |
| | | // console.log(this.xukezData); |
| | | return update(this.xukezData); |
| | | }, |
| | | subcc() { |
| | |
| | | this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | console.log(this.licenceData); |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | |
| | | d[k]["examinationMx"] = "正常"; |
| | | d[k]["examinationType"] = "正常"; |
| | | } else { |
| | | console.log(d[k]); |
| | | // console.log(d[k]); |
| | | d[k]["examinationType"] = "异常"; |
| | | } |
| | | // if (d[k]["examinationType"] == "") { |
| | |
| | | } |
| | | this.data = d; |
| | | // this.data = data.records; |
| | | console.log(this.data); |
| | | // console.log(this.data); |
| | | this.loading = false; |
| | | // this.selectionClear(); |
| | | }); |
| | |
| | | getTemplate(params, 1, 50).then((res) => { |
| | | //获取模板 |
| | | const mobel = res.data.data.records; |
| | | console.log(mobel); |
| | | // console.log(mobel); |
| | | params["userid"] = this.$route.query.deptid; |
| | | getUseInfor(params).then((res) => { |
| | | //处理对应数据 |
| | | const data = res.data.data.records[0]; |
| | | console.log(data); |
| | | // console.log(data); |
| | | if (data == [] || data == undefined) { |
| | | this.data = []; |
| | | this.loading = false; |
| | |
| | | id: +id[k] + 1, |
| | | }); |
| | | } |
| | | console.log(this.data); |
| | | // console.log(this.data); |
| | | for (let n in this.data) { |
| | | //处理模板 |
| | | for (let m in mobel) { |
| | |
| | | }, |
| | | methods: { |
| | | rowClickSelf(val) { |
| | | console.log(val.departmentid); |
| | | // console.log(val.departmentid); |
| | | this.$router.push({ |
| | | path: "/securityGuardManagement/registerOnce", |
| | | query: { departmentid: val.departmentid }, |
| | |
| | | }; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // console.log(form); |
| | | var that = this; |
| | | savePunish(form).then((res) => { |
| | | this.$message({ |
| | |
| | | // delete (row["name"]); |
| | | var obj = row; |
| | | obj["name"] = "保安公司详细信息"; |
| | | console.log(obj, "obj"); |
| | | // console.log(obj, "obj"); |
| | | this.$router.push({ |
| | | path: `/securityCompany/index`, |
| | | query: obj, |
| | |
| | | }, |
| | | }, |
| | | mounted() { |
| | | console.log(this.form, "getListeenclosure"); |
| | | // console.log(this.form, "getListeenclosure"); |
| | | this.onLoad(this.page); |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | methods: { |
| | | rowClickSelf(val) { |
| | | console.log(val.departmentid); |
| | | // console.log(val.departmentid); |
| | | this.$router.push({ |
| | | path: "/securityGuardManagement/registerOnce", |
| | | query: { departmentid: val.departmentid }, |
| | |
| | | }; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // console.log(form); |
| | | var that = this; |
| | | savePunish(form).then((res) => { |
| | | this.$message({ |
| | |
| | | // delete (row["name"]); |
| | | var obj = row; |
| | | obj["name"] = "保安公司详细信息"; |
| | | console.log(obj, "obj"); |
| | | // console.log(obj, "obj"); |
| | | this.$router.push({ |
| | | path: `/securityCompany/index`, |
| | | query: obj, |
| | |
| | | }, |
| | | methods: { |
| | | rowClickSelf(val) { |
| | | console.log(val.departmentid); |
| | | // console.log(val.departmentid); |
| | | this.$router.push({ |
| | | path: "/securityGuardManagement/registerOnce", |
| | | query: { departmentid: val.departmentid }, |
| | |
| | | }; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // console.log(form); |
| | | var that = this; |
| | | savePunish(form).then((res) => { |
| | | this.$message({ |
| | |
| | | }, |
| | | methods: { |
| | | rowClickSelf(val) { |
| | | console.log(val.departmentid); |
| | | // console.log(val.departmentid); |
| | | this.$router.push({ |
| | | path: "/securityGuardManagement/registerOnce", |
| | | query: { departmentid: val.departmentid }, |
| | |
| | | }; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // console.log(form); |
| | | var that = this; |
| | | savePunish(form).then((res) => { |
| | | this.$message({ |
| | |
| | | // delete (row["name"]); |
| | | var obj = row; |
| | | obj["name"] = "保安公司详细信息"; |
| | | console.log(obj, "obj"); |
| | | // console.log(obj, "obj"); |
| | | this.$router.push({ |
| | | path: `/securityCompany/index`, |
| | | query: obj, |
| | |
| | | }, |
| | | methods: { |
| | | rowClickSelf(val) { |
| | | console.log(val.departmentid); |
| | | // console.log(val.departmentid); |
| | | this.$router.push({ |
| | | path: "/securityGuardManagement/registerOnce", |
| | | query: { departmentid: val.departmentid }, |
| | |
| | | }; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // console.log(form); |
| | | var that = this; |
| | | savePunish(form).then((res) => { |
| | | this.$message({ |
| | |
| | | // delete (row["name"]); |
| | | var obj = row; |
| | | obj["name"] = "保安公司详细信息"; |
| | | console.log(obj, "obj"); |
| | | // console.log(obj, "obj"); |
| | | this.$router.push({ |
| | | path: `/securityCompany/index`, |
| | | query: obj, |
| | |
| | | // this.onLoad(this.page); |
| | | } else if (column.prop == "tab2") { |
| | | // this.loading = false; |
| | | console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | // console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | } |
| | | // this.$message.success(JSON.stringify(column)); |
| | |
| | | // console.log(this.selectionList1.length); |
| | | }, |
| | | handleDelete1() { |
| | | console.log(this.selectionList1); |
| | | // console.log(this.selectionList1); |
| | | if (this.selectionList1.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | |
| | | const data = res.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | | console.log(this.data1, 1); |
| | | // console.log(this.data1, 1); |
| | | this.loading1 = false; |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | created() { |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | console.log("保安公司管理员登入"); |
| | | // console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject(this.option1.column, "deptId"); |
| | | deptColumn.search = false; |
| | | } else { |
| | |
| | | // this.onLoad(this.page); |
| | | } else if (column.prop == "tab2") { |
| | | // this.loading = false; |
| | | console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | // console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | } |
| | | // this.$message.success(JSON.stringify(column)); |
| | |
| | | // console.log(this.selectionList1.length); |
| | | }, |
| | | handleDelete1() { |
| | | console.log(this.selectionList1); |
| | | // console.log(this.selectionList1); |
| | | if (this.selectionList1.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | |
| | | this.data1 = data.records; |
| | | this.loading1 = false; |
| | | // this.$nextTick(() => this.$refs.crudrec1.dicInit("cascader")); |
| | | console.log(this.form, 111111); |
| | | // console.log(this.form, 111111); |
| | | }); |
| | | }, |
| | | initData(type) { |
| | |
| | | }, |
| | | methods: { |
| | | rowClickSelf(row) { |
| | | console.log(row, "baoan"); |
| | | // console.log(row, "baoan"); |
| | | this.$router.push({ |
| | | path: "/securityCompany/index", |
| | | query: { fromSecunityGuardId: row }, |
| | |
| | | this.dialogVisible = false; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // console.log(form); |
| | | // this.$message.success(JSON.stringify(form)); |
| | | addhonor(form).then( |
| | | (res) => { |
| | |
| | | honor: "", |
| | | honortime: "", |
| | | }; |
| | | console.log(this.objf); |
| | | console.log(row); |
| | | // console.log(this.objf); |
| | | // console.log(row); |
| | | this.dialogVisible = true; |
| | | }, |
| | | nodeClick(data) { |
| | |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | params["jurisdiction"] = this.jurisdiction; |
| | | console.log(params, 1, this.query, 2); |
| | | // console.log(params, 1, this.query, 2); |
| | | getListSecurity( |
| | | page.currentPage, |
| | | page.pageSize, |
| | |
| | | // console.log($); |
| | | // this.$Print("#certificatess"); |
| | | this.objVisiblecertificates = obj; |
| | | console.log(this.objVisiblecertificates); |
| | | // console.log(this.objVisiblecertificates); |
| | | getER(this.objVisiblecertificates.securitynumber).then((res) => { |
| | | this.erweima = res.data; |
| | | // console.log(res.data); |
| | |
| | | }, |
| | | // 证件吊销事件 |
| | | handleCredentials(row) { |
| | | console.log(row); |
| | | // console.log(row); |
| | | // return; |
| | | if (row.hold == 2) { |
| | | this.$message({ |
| | |
| | | // 判断是否从保安公司人数点击跳转 |
| | | if (this.$route.query.departmentid) { |
| | | this.departmentid = this.$route.query.departmentid; |
| | | console.log(this.departmentid, "ddddddddddddd"); |
| | | // console.log(this.departmentid, "ddddddddddddd"); |
| | | this.spanRight = 24; |
| | | this.spanLeft = 0; |
| | | var d = this.option.column; |
| | | d[1]["search"] = false; |
| | | } else { |
| | | console.log("正常点击"); |
| | | // console.log("正常点击"); |
| | | this.spanRight = 21; |
| | | this.spanLeft = 3; |
| | | var d = this.option.column; |
| | |
| | | }, |
| | | methods: { |
| | | rowClickSelf(row) { |
| | | console.log(row, "baoan"); |
| | | // console.log(row, "baoan"); |
| | | this.$router.push({ |
| | | path: "/securityCompany/index", |
| | | query: { fromSecunityGuardId: row }, |
| | |
| | | this.dialogVisible = false; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // console.log(form); |
| | | // this.$message.success(JSON.stringify(form)); |
| | | addhonor(form).then((res) => { |
| | | console.log(res); |
| | | // console.log(res); |
| | | }); |
| | | this.objf = {}; |
| | | this.dialogVisible = false; |
| | |
| | | honor(row) { |
| | | this.objf = {}; |
| | | //打开荣誉录入 |
| | | console.log(this.objf); |
| | | // console.log(this.objf); |
| | | this.objf = { |
| | | cardid: row.cardid, |
| | | name: row.name, |
| | |
| | | // d[key].securitynumber = "赣洪202100009"; |
| | | } |
| | | this.data = data.records; |
| | | console.log(this.data); |
| | | // console.log(this.data); |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | |
| | | // console.log($); |
| | | // this.$Print("#certificatess"); |
| | | this.objVisiblecertificates = obj; |
| | | console.log(this.objVisiblecertificates); |
| | | // console.log(this.objVisiblecertificates); |
| | | }, |
| | | // 证件吊销事件 |
| | | handleCredentials(row) { |
| | |
| | | }) |
| | | .then(() => { |
| | | updateHold(2, row.cardid).then((res) => { |
| | | console.log(res); |
| | | // console.log(res); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "删除成功!", |
| | |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | console.log(this.data); |
| | | // console.log(this.data); |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |