| | |
| | | this.subjectInfo = subject |
| | | if (subject.hasOwnProperty('examSubjectOptions')) { |
| | | this.options = subject.examSubjectOptions |
| | | |
| | | console.log(this.options) |
| | | } |
| | | if (subject.hasOwnProperty('answer')) { |
| | | console.log(subject.answer); |
| | | this.setAnswer(subject.answer) |
| | | } |
| | | this.index = index + '.' |
| | | |
| | | console.log(subject, subjectCount, index, this.options, 5656565656) |
| | | }, |
| | | getSubjectInfo () { |
| | | this.subjectInfo.options = this.options |
| | |
| | | return this.userAnswer |
| | | }, |
| | | setAnswer (answer, option) { |
| | | console.log(answer); |
| | | if (answer != '') { |
| | | |
| | | this.userAnswer = answer |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | console.log(this.userAnswer) |
| | | |
| | | }, |
| | | |
| | |
| | | path = ""; |
| | | for (var k in d) { |
| | | if (d[k].peixun == true) { |
| | | // console.log(d[k]); |
| | | path = d[k].path; |
| | | } |
| | | } |
| | |
| | | mounted() { |
| | | var that = this; |
| | | ss().then((res) => { |
| | | console.log(that.ergodicData(res.data.data), 898989); |
| | | that.dic = that.ergodicData(res.data.data); |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | async allmedia() { |
| | | ss().then((res) => { |
| | | console.log(res, 1323); |
| | | res.data.data.forEach((element) => { |
| | | this.options.push({ |
| | | deptname: element.dept_name, |
| | |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | // console.log(this.questionBankSearch, 456); |
| | | const { releaseTimeRange } = this.questionBankSearch; |
| | | if (releaseTimeRange) { |
| | | this.questionBankSearch['startTime'] = releaseTimeRange[0]; |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-19 19:39:45 |
| | | * @Last Modified time: 2021-11-05 12:02:28 |
| | | * menu-name 报名考试 |
| | | */ |
| | | <template> |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | |
| | | // if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) { |
| | | // this.questionBankOption.column[0].dicUrl = |
| | |
| | | created(){ |
| | | var d = this.$route.query; |
| | | this.url += "?data=" + JSON.stringify(d); |
| | | console.log(d,11); |
| | | }, |
| | | mounted() { |
| | | var flag = false, |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-19 19:39:45 |
| | | * @Last Modified time: 2021-11-05 12:02:26 |
| | | * menu-name 报名考试 |
| | | */ |
| | | <template> |
| | | <el-row class="morpheus-box-apply-exam"> |
| | | <el-col :span="24" class="hasButOne"> |
| | | <el-col :span="24" |
| | | class="hasButOne"> |
| | | <el-card> |
| | | <div class="exam-card-body"> |
| | | <avue-crud |
| | | v-model="obj" |
| | | <avue-crud v-model="obj" |
| | | class="company-box" |
| | | :option="questionBankOption" |
| | | :search.sync="questionBankSearch" |
| | |
| | | @current-change="questionBankCurrentChange" |
| | | @size-change="questionBankSizeChange" |
| | | @row-save="questionBankRowSave" |
| | | @row-del="questionBankRowDel" |
| | | > |
| | | @row-del="questionBankRowDel"> |
| | | <!-- 自定义按钮 --> |
| | | <!-- <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | |
| | | </template> --> |
| | | <!-- 自定义按钮 --> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="primary" |
| | | <el-button type="primary" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | @click="handleBatchExam" |
| | | v-if="permission.applyexam_exam" |
| | | >生成考试 |
| | | v-if="permission.applyexam_exam">生成考试 |
| | | </el-button> |
| | | <!-- v-if="examPersission" --> |
| | | <el-button |
| | | type="primary" |
| | | <el-button type="primary" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | v-if="permission.applyexam_import" |
| | | @click="handleImport" |
| | | >批量报名 |
| | | @click="handleImport">批量报名 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, row }" slot="menu"> |
| | | <el-button |
| | | :type="type" |
| | | <template slot-scope="{ type, row }" |
| | | slot="menu"> |
| | | <el-button :type="type" |
| | | size="small" |
| | | icon="el-icon-refresh-left" |
| | | v-if="permission.applyexam_cancel" |
| | | :disabled="row.isApply == 2" |
| | | @click="handleCancel(row)" |
| | | >取消报名 |
| | | @click="handleCancel(row)">取消报名 |
| | | </el-button> |
| | | <el-button |
| | | style="display: none" |
| | | <el-button style="display: none" |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-folder-checked" |
| | | :disabled="row.applyStatus == 4" |
| | | @click="handleAudit(row)" |
| | | >审核 |
| | | @click="handleAudit(row)">审核 |
| | | </el-button> |
| | | <el-button |
| | | :type="type" |
| | | <el-button :type="type" |
| | | size="small" |
| | | icon="el-icon-receiving" |
| | | v-if="permission.applyexam_print && row.candidateNo!=''" |
| | | @click="handlePrint(row)" |
| | | >准考证打印 |
| | | @click="handlePrint(row)">准考证打印 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="age"> |
| | | <template slot-scope="{ row }" |
| | | slot="age"> |
| | | {{ row.age == -1 ? "" : row.age }} |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-dialog |
| | | title="考试资格审核" |
| | | <el-dialog title="考试资格审核" |
| | | :visible.sync="dialogFormVisible" |
| | | modal-append-to-body="false" |
| | | append-to-body="true" |
| | | :close-on-click-model="true" |
| | | > |
| | | <avue-form |
| | | ref="formAudit" |
| | | :close-on-click-model="true"> |
| | | <avue-form ref="formAudit" |
| | | v-model="Audit" |
| | | :option="optionAudit" |
| | | @reset-change="emptytChange" |
| | | @submit="submit" |
| | | ></avue-form> |
| | | @submit="submit"></avue-form> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | title="批量报名导入" |
| | | <el-dialog title="批量报名导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption" |
| | | width="555px"> |
| | | <avue-form :option="excelOption" |
| | | v-model="excelForm" |
| | | :upload-after="uploadAfter" |
| | | > |
| | | :upload-after="uploadAfter"> |
| | | <template slot="excelTemplate"> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | | <el-button type="primary" |
| | | @click="handleTemplate"> |
| | | 点击下载<i class="el-icon-download el-icon--right"></i> |
| | | </el-button> |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | title="考试生成" |
| | | <el-dialog title="考试生成" |
| | | append-to-body |
| | | :visible.sync="dialogExamFormVisible" |
| | | width="900px" |
| | | @close="closeDialog" |
| | | > |
| | | <avue-form |
| | | ref="formExamApply" |
| | | @close="closeDialog"> |
| | | <avue-form ref="formExamApply" |
| | | v-model="examApply" |
| | | :option="optionExamApply" |
| | | @reset-change="emptytChange" |
| | | @submit="submitExamApply" |
| | | ></avue-form> |
| | | @submit="submitExamApply"></avue-form> |
| | | </el-dialog> |
| | | </div> |
| | | </el-card> |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | |
| | | if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) { |
| | | this.examPersission = true; |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | rowClick(row) { |
| | | // console.log(row); |
| | | window.localStorage.setItem("paqiandata", JSON.stringify(row)); |
| | | this.$router.push({ |
| | | path: "/dispatchChild", |
| | |
| | | if (this.useifid != 266) { |
| | | values["deptId"] = this.useifid; |
| | | } |
| | | // console.log(values); |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | values["jurisdiction"] = that.userInfo.jurisdiction; |
| | | } |
| | | console.log(params); |
| | | getdata( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | // Object.assign(params, this.query) |
| | | values |
| | | ).then((res) => { |
| | | // console.log(res); |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | |
| | | created() { |
| | | var that = this; |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject(this.option1.column, "deptId"); |
| | | deptColumn.search = false; |
| | | deptColumn.hide = true; |
| | |
| | | // this.onLoad(this.page); |
| | | } else if (column.prop == "tab2") { |
| | | // this.loading = false; |
| | | console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | } |
| | | // this.$message.success(JSON.stringify(column)); |
| | |
| | | }, |
| | | selectionChange1(list) { |
| | | this.selectionList1 = list; |
| | | // console.log(this.selectionList1.length); |
| | | }, |
| | | handleDelete1() { |
| | | console.log(this.selectionList1); |
| | | if (this.selectionList1.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | |
| | | }); |
| | | }, |
| | | refreshChange1() { |
| | | // console.log(4534) |
| | | this.onLoad1(this.page1, this.query1); |
| | | }, |
| | | |
| | |
| | | this.data1 = data.records; |
| | | this.loading1 = false; |
| | | // this.$nextTick(() => this.$refs.crudrec1.dicInit("cascader")); |
| | | console.log(this.form, 111111); |
| | | }); |
| | | }, |
| | | initData(type) { |
| | |
| | | this.option1.column, |
| | | "dispatcherUnitId" |
| | | ); |
| | | // console.log(res.data.data, 111); |
| | | dispatcherUnitIdColumn.dicData = res.data.data; |
| | | }); |
| | | } |
| | |
| | | // // this.initData(); |
| | | // // } |
| | | // deps(){ |
| | | // console.log(this.deps,5646646) |
| | | // } |
| | | // }, |
| | | mounted() { |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | this.option1.column[1]["value"] = this.userInfo.dept_id; |
| | | this.option1.column[3]["value"] = this.userInfo.Id; |
| | | this.option1.column[4]["value"] = this.userInfo.nick_name; |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject(this.option1.column, "deptId"); |
| | | deptColumn.search = false; |
| | | } else { |
| | |
| | | }, |
| | | selectionChange1(list) { |
| | | this.selectionList1 = list; |
| | | // console.log(this.selectionList1.length); |
| | | }, |
| | | handleDelete1() { |
| | | console.log(this.selectionList1); |
| | | if (this.selectionList1.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | |
| | | }); |
| | | }, |
| | | refreshChange1() { |
| | | // console.log(4534) |
| | | this.onLoad1(this.page1, this.query1); |
| | | }, |
| | | |
| | |
| | | this.option1.column, |
| | | "dispatcherUnitId" |
| | | ); |
| | | // console.log(res.data.data, 111); |
| | | dispatcherUnitIdColumn.dicData = res.data.data; |
| | | }); |
| | | } |
| | |
| | | // // this.initData(); |
| | | // // } |
| | | // deps(){ |
| | | // console.log(this.deps,5646646) |
| | | // } |
| | | // }, |
| | | mounted() { |
| | |
| | | // this.onLoad(this.page); |
| | | } else if (column.prop == "tab2") { |
| | | // this.loading = false; |
| | | // console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | } |
| | | // this.$message.success(JSON.stringify(column)); |
| | |
| | | }); |
| | | }, |
| | | refreshChange1() { |
| | | // console.log(4534) |
| | | this.onLoad1(this.page1, this.query1); |
| | | }, |
| | | |
| | |
| | | // params["name"] = this.name; |
| | | // params["dispatcherCompany"] = this.dispatcherCompany; |
| | | params["dispatcherUnitId"] = this.id; |
| | | // console.log(params, "get"); |
| | | getdata1( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query) |
| | | ).then((res) => { |
| | | // console.log(res); |
| | | const data = res.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | |
| | | // this.data1[k].securityName = this.data1[k].securityName.split(","); |
| | | // this.data1[k].securityName = this.data1[k].securityName.join(" | "); |
| | | // } |
| | | console.log(this.data1, 1); |
| | | this.loading1 = false; |
| | | }); |
| | | }, |
| | |
| | | if (i == 1) { |
| | | // console.log("存在"); |
| | | } else { |
| | | // console.log("已删除"); |
| | | |
| | | this.obj0 = {}; |
| | | this.obj0.name = row.name + " 该派遣单位已删除"; |
| | |
| | | } |
| | | } |
| | | } else { |
| | | // console.log("no"); |
| | | this.obj0.name = " 未选择派遣单位"; |
| | | } |
| | | }, |
| | |
| | | data: this.index, |
| | | }); |
| | | this.inputs[`input${this.index + 1}`] = ""; |
| | | console.log(this.inputs); |
| | | console.log(this.list, 111); |
| | | }, |
| | | //减一行 |
| | | deleteRows(index) { |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-18 15:47:06 |
| | | * @Last Modified time: 2021-11-05 12:02:20 |
| | | * menu-name 题目管理 |
| | | */ |
| | | <template> |
| | |
| | | data () { |
| | | |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value) |
| | | if (value == undefined || value == '') { |
| | | callback(new Error('请输入分数')); |
| | | return; |
| | |
| | | }, |
| | | |
| | | questionBankRowSave (row, done, loading) { |
| | | console.log(row, 898989); |
| | | |
| | | add(row).then(() => { |
| | | this.initFlag = false; |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-18 17:11:18 |
| | | * @Last Modified time: 2021-11-05 12:02:20 |
| | | * menu-name 试卷管理 |
| | | */ |
| | | <template> |
| | |
| | | data () { |
| | | |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value) |
| | | if (value == undefined || value == '') { |
| | | callback(new Error('请输入分数')); |
| | | return; |
| | |
| | | created(){ |
| | | var d = this.$route.query; |
| | | this.url += "?data=" + JSON.stringify(d); |
| | | console.log(d,11); |
| | | }, |
| | | mounted() { |
| | | var flag = false, |
| | |
| | | export default { |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value); |
| | | if (value == undefined || value == "") { |
| | | callback(new Error("请输入实操成绩")); |
| | | return; |
| | |
| | | <template> |
| | | <div class="dispatch"> |
| | | <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs> |
| | | <avue-tabs :option="optionTABS" |
| | | @change="handleChangeTABS"></avue-tabs> |
| | | <span v-if="typeTABS.prop === 'tab1'"> |
| | | <avue-form ref="form" v-model="obj0" :option="option0"> </avue-form> |
| | | <avue-form ref="form" |
| | | v-model="obj0" |
| | | :option="option0"> </avue-form> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab2'"> |
| | | <avue-crud |
| | | :option="option1" |
| | | <avue-crud :option="option1" |
| | | :data="data1" |
| | | :page.sync="page1" |
| | | :table-loading="loading1" |
| | |
| | | @row-del="rowDel1" |
| | | @current-change="CurrentChange1" |
| | | @refresh-change="refreshchange1" |
| | | @size-change="SizeChange1" |
| | | > |
| | | @size-change="SizeChange1"> |
| | | </avue-crud> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab3'"> |
| | | <avue-crud |
| | | :option="option2" |
| | | <avue-crud :option="option2" |
| | | :data="data2" |
| | | :page.sync="page2" |
| | | @row-save="rowSave2" |
| | |
| | | :table-loading="loading2" |
| | | @current-change="CurrentChange2" |
| | | @size-change="SizeChange2" |
| | | @refresh-change="refreshchange2" |
| | | > |
| | | @refresh-change="refreshchange2"> |
| | | </avue-crud> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab4'"> |
| | |
| | | </span> |
| | | </div> |
| | | </div> --> |
| | | <baoanz :data="obj0" v-if="hold == 1"></baoanz> |
| | | <div v-else style="width: 100%; text-align: center; padding-top: 20px"> |
| | | <baoanz :data="obj0" |
| | | v-if="hold == 1"></baoanz> |
| | | <div v-else |
| | | style="width: 100%; text-align: center; padding-top: 20px"> |
| | | 无上岗证 |
| | | </div> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab5'"> |
| | | <securityCertificate :data="obj0" v-if="hold == 1"></securityCertificate> |
| | | <div v-else style="width: 100%; text-align: center; padding-top: 20px"> |
| | | <securityCertificate :data="obj0" |
| | | v-if="hold == 1"></securityCertificate> |
| | | <div v-else |
| | | style="width: 100%; text-align: center; padding-top: 20px"> |
| | | 无保安员证 |
| | | </div> |
| | | </span> |
| | |
| | | .baz-m-body { |
| | | width: 750px; |
| | | height: 550px; |
| | | background-image: url("/img/register/bazbj1.png"); |
| | | background-image: url('/img/register/bazbj1.png'); |
| | | background-size: 100% 100%; |
| | | .bmb-heard { |
| | | font-size: 4rem; |