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/trainingRegistration/index.vue |  114 +++++++++++++++++++++++++++-----------------------------
 1 files changed, 55 insertions(+), 59 deletions(-)

diff --git a/src/views/trainingRegistration/index.vue b/src/views/trainingRegistration/index.vue
index 4e69233..e5689d4 100644
--- a/src/views/trainingRegistration/index.vue
+++ b/src/views/trainingRegistration/index.vue
@@ -37,7 +37,6 @@
           plain
           icon="el-icon-folder-checked"
           @click="handleBatchExam"
-          
           >考试申请
         </el-button>
         <el-button
@@ -61,7 +60,7 @@
           :type="type"
           size="small"
           icon="el-icon-receiving"
-          :disabled="row.candidateNo==''"
+          :disabled="row.candidateNo == ''"
           @click="handlePrint(row)"
           >准考证打印
         </el-button>
@@ -77,31 +76,30 @@
     </avue-crud>
 
     <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="1000px"
-      @close='closeDialog'
+      @close="closeDialog"
     >
       <avue-form
         ref="formExamApply"
@@ -122,15 +120,15 @@
   update,
   remove,
   cancelTrain,
-  addExam
+  addExam,
 } from "@/api/trainingRegistration/trainingRegistration";
 
 export default {
   data() {
     return {
       loading: true,
-      excelBox:false,
-      dialogExamFormVisible:false,
+      excelBox: false,
+      dialogExamFormVisible: false,
       optionExamApply: {
         height: "auto",
         filterBtn: true,
@@ -139,7 +137,7 @@
         tip: false,
         searchShow: true,
         searchMenuSpan: 6,
-        border: false,
+        border: true, //liu
         index: true,
         stripe: true,
         viewBtn: true,
@@ -179,29 +177,29 @@
       },
       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/trainingRegistration/import-trainingRegistration",
+            },
+            tip: "请上传 .xls,.xlsx 标准格式文件",
+            action: "/api/trainingRegistration/import-trainingRegistration",
           },
           {
-              label: "模板下载",
-              prop: "excelTemplate",
-              formslot: true,
-              span: 24,
+            label: "模板下载",
+            prop: "excelTemplate",
+            formslot: true,
+            span: 24,
           },
-          ],
+        ],
       },
       selectionList: [],
       page: {
@@ -241,12 +239,12 @@
   methods: {
     //准考证查看
     handlePrint(row) {
-        var obj = row;
-        obj["name"] = "准考证信息";
-        this.$router.push({
-            path: `/applyexam/papers`,
-            query: obj,
-        });
+      var obj = row;
+      obj["name"] = "准考证信息";
+      this.$router.push({
+        path: `/applyexam/papers`,
+        query: obj,
+      });
     },
     sizeChange(val) {
       this.page1.currentPage = 1;
@@ -428,28 +426,26 @@
     },
 
     handleTemplate() {
-        window.open(
-            `/api/trainingRegistration/export-template`
-        );
+      window.open(`/api/trainingRegistration/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();
     },
 
     //生成考试弹窗
-    handleBatchExam(){
+    handleBatchExam() {
       this.dialogExamFormVisible = true;
       if (this.selectionList.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);
@@ -471,7 +467,7 @@
       );
     },
     //关闭窗口清除数据
-    closeDialog(){
+    closeDialog() {
       this.$refs.formExamApply.resetFields();
     },
   },

--
Gitblit v1.9.3