From 0c35e05ca9c90883e5073ea35232ea100f866a8f Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 19 Aug 2021 15:08:50 +0800
Subject: [PATCH] 保安公司管理
---
src/views/applyexam/index.vue | 181 ++++++++++++++++++++++-----------------------
1 files changed, 88 insertions(+), 93 deletions(-)
diff --git a/src/views/applyexam/index.vue b/src/views/applyexam/index.vue
index f28acc2..6127b2c 100644
--- a/src/views/applyexam/index.vue
+++ b/src/views/applyexam/index.vue
@@ -65,7 +65,6 @@
plain
icon="el-icon-folder-checked"
@click="handleBatchExam"
-
>生成考试
</el-button>
<!-- v-if="examPersission" -->
@@ -74,7 +73,7 @@
size="small"
plain
icon="el-icon-folder-checked"
- @click="handleImport"
+ @click="handleImport"
>清册导入
</el-button>
</template>
@@ -101,14 +100,14 @@
:type="type"
size="small"
icon="el-icon-receiving"
- v-if="row.candidateNo!=''"
+ v-if="row.candidateNo != ''"
@click="handlePrint(row)"
>准考证打印
</el-button>
</template>
<template slot-scope="{ row }" slot="age">
- {{ row.age==-1? '':row.age }}
+ {{ row.age == -1 ? "" : row.age }}
</template>
</avue-crud>
@@ -126,35 +125,33 @@
@reset-change="emptytChange"
@submit="submit"
></avue-form>
-
</el-dialog>
<el-dialog
- title="清册数据导入"
- append-to-body
- :visible.sync="excelBox"
- width="555px"
- >
- <avue-form
- :option="excelOption"
- v-model="excelForm"
- :upload-after="uploadAfter"
- >
- <template slot="excelTemplate">
- <el-button type="primary" @click="handleTemplate">
- 点击下载<i class="el-icon-download el-icon--right"></i>
- </el-button>
- </template>
- </avue-form>
+ title="清册数据导入"
+ append-to-body
+ :visible.sync="excelBox"
+ width="555px"
+ >
+ <avue-form
+ :option="excelOption"
+ v-model="excelForm"
+ :upload-after="uploadAfter"
+ >
+ <template slot="excelTemplate">
+ <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="考试生成"
append-to-body
:visible.sync="dialogExamFormVisible"
width="900px"
- @close='closeDialog'
+ @close="closeDialog"
>
<avue-form
ref="formExamApply"
@@ -176,7 +173,7 @@
addApply,
cancelApply,
remove,
- addExam
+ addExam,
} from "@/api/examapi/applyexam";
import { mapState } from "vuex";
@@ -198,35 +195,35 @@
return {
dialogFormVisible: false,
dialogExamFormVisible: false,
- examPersission:false,
- applyExport:false,
- excelBox:false,
+ examPersission: false,
+ applyExport: false,
+ excelBox: false,
Audit: {},
excelForm: {},
excelOption: {
- submitBtn: false,
- emptyBtn: false,
- column: [
+ submitBtn: false,
+ emptyBtn: false,
+ column: [
{
- label: "模板上传",
- prop: "excelFile",
- type: "upload",
- drag: true,
- loadText: "模板上传中,请稍等",
- span: 24,
- propsHttp: {
+ label: "模板上传",
+ prop: "excelFile",
+ type: "upload",
+ drag: true,
+ loadText: "模板上传中,请稍等",
+ span: 24,
+ propsHttp: {
res: "data",
- },
- tip: "请上传 .xls,.xlsx 标准格式文件",
- action: "/api/apply/import-apply",
+ },
+ tip: "请上传 .xls,.xlsx 标准格式文件",
+ action: "/api/apply/import-apply",
},
{
- label: "模板下载",
- prop: "excelTemplate",
- formslot: true,
- span: 24,
+ label: "模板下载",
+ prop: "excelTemplate",
+ formslot: true,
+ span: 24,
},
- ],
+ ],
},
optionAudit: {
height: "auto",
@@ -235,7 +232,7 @@
tip: false,
searchShow: true,
searchMenuSpan: 6,
- border: false,
+ border: true, //liu
index: true,
stripe: true,
viewBtn: true,
@@ -289,7 +286,7 @@
tip: false,
searchShow: true,
searchMenuSpan: 6,
- border: false,
+ border: true, //liu
index: true,
stripe: true,
viewBtn: true,
@@ -426,7 +423,7 @@
{
label: "年龄",
prop: "age",
- slot:true,
+ slot: true,
// 表单新增时是否禁止
addDisabled: false,
// 表单新增时是否可见
@@ -439,7 +436,7 @@
editDisplay: false,
// 表单编辑时是否为查看模式
editDetail: false,
- viewDisplay: true
+ viewDisplay: true,
},
// {
// label: "考试名称",
@@ -656,36 +653,36 @@
// editDetail: false,
// width: 150,
// },
-
+
{
- label: "审查状态",
- prop: "examinationType",
- slot: true,
- searchSpan:5,
- // 表单新增时是否禁止
- addDisabled: false,
- // 表单新增时是否可见
- addDisplay: false,
- // 表单新增时是否为查看模式
- addDetail: false,
- // 表单编辑时是否禁止
- editDisabled: false,
- // 表单编辑时是否可见
- editDisplay: true,
- // 表单编辑时是否为查看模式
- editDetail: false,
- dicData:[
- {
- label: '正常',
- value: "1"
- },
- {
- label: '异常',
- value: "2"
- }
- ],
- search:true,
- type:"select"
+ label: "审查状态",
+ prop: "examinationType",
+ slot: true,
+ searchSpan: 5,
+ // 表单新增时是否禁止
+ addDisabled: false,
+ // 表单新增时是否可见
+ addDisplay: false,
+ // 表单新增时是否为查看模式
+ addDetail: false,
+ // 表单编辑时是否禁止
+ editDisabled: false,
+ // 表单编辑时是否可见
+ editDisplay: true,
+ // 表单编辑时是否为查看模式
+ editDetail: false,
+ dicData: [
+ {
+ label: "正常",
+ value: "1",
+ },
+ {
+ label: "异常",
+ value: "2",
+ },
+ ],
+ search: true,
+ type: "select",
},
{
label: "审查明细",
@@ -703,8 +700,8 @@
editDisplay: true,
// 表单编辑时是否为查看模式
editDetail: false,
- overHidden:true,
- width:150,
+ overHidden: true,
+ width: 150,
},
],
},
@@ -749,7 +746,7 @@
console.log(this.userInfo);
if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) {
- this.examPersission = true;
+ this.examPersission = true;
}
},
mounted() {},
@@ -849,16 +846,16 @@
},
//生成考试弹窗
- handleBatchExam(){
+ handleBatchExam() {
this.dialogExamFormVisible = true;
if (this.questionBankSelectionList.length === 0) {
this.ids = "";
}
},
//生成考试
- submitExamApply(row, done, loading){
+ submitExamApply(row, done, loading) {
var that = this;
- var startTime = row.startTime+":00";
+ var startTime = row.startTime + ":00";
// var endTime = row.examTime[1];
// var examTime = JSON.stringify(row.examTime);
// console.log(this.ids,111);
@@ -880,7 +877,7 @@
);
},
//关闭窗口清除数据
- closeDialog(){
+ closeDialog() {
this.$refs.formExamApply.resetFields();
},
@@ -954,19 +951,17 @@
},
handleTemplate() {
- window.open(
- `/api/apply/export-template`
- );
+ window.open(`/api/apply/export-template`);
},
uploadAfter(res, done, loading, column) {
- window.console.log(column);
- this.excelBox = false;
- this.refreshChange();
- done();
+ window.console.log(column);
+ this.excelBox = false;
+ this.refreshChange();
+ done();
},
refreshChange() {
- this.questionBankOnLoad(this.page, this.query);
+ this.questionBankOnLoad(this.page, this.query);
},
},
};
--
Gitblit v1.9.3