From 34d9a8662da32afd2c4e6dc2c5514321ed6121ca Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 26 Oct 2021 15:47:35 +0800
Subject: [PATCH] +打印保安证

---
 public/img/securityCertificate/保安证书.png         |    0 
 src/views/securityGuard/securityGuard.vue       |    8 
 src/views/securityGuard/securityCertificate.vue |   24 
 src/views/securityUnitChild/index.vue           |   23 
 src/views/trainExam/performance.vue             |   90 ++
 src/views/trainApply/index.vue                  | 1561 ++++++++++++++++++++++++++-------------------------
 src/views/trainExam/singleperformance.vue       |   46 +
 src/views/securityGuard/data.js                 |   30 
 src/views/securityGuard/baoanz.vue              |   12 
 9 files changed, 994 insertions(+), 800 deletions(-)

diff --git "a/public/img/securityCertificate/\344\277\235\345\256\211\350\257\201\344\271\246.png" "b/public/img/securityCertificate/\344\277\235\345\256\211\350\257\201\344\271\246.png"
new file mode 100644
index 0000000..34b1857
--- /dev/null
+++ "b/public/img/securityCertificate/\344\277\235\345\256\211\350\257\201\344\271\246.png"
Binary files differ
diff --git a/src/views/securityGuard/baoanz.vue b/src/views/securityGuard/baoanz.vue
index 818e644..aa32a08 100644
--- a/src/views/securityGuard/baoanz.vue
+++ b/src/views/securityGuard/baoanz.vue
@@ -23,6 +23,9 @@
     </div>
     <span slot="footer" class="dialog-footer no-print PrintBut">
       <el-button type="primary" @click="Print">打 印</el-button>
+      <el-button type="primary" @click="closeME" v-show="close == 1"
+        >取 消</el-button
+      >
     </span>
   </div>
 </template>
@@ -40,7 +43,7 @@
 
 import { getER } from "@/api/performance/performance";
 export default {
-  props: ["data"],
+  props: ["data", "close"],
   data() {
     return {
       erweima: "",
@@ -64,6 +67,9 @@
       printDom.style.left = "0";
       printDom.style.width = "100%";
       printDom.style.height = "calc(100% - 100px)";
+    },
+    closeME() {
+      this.$emit("close");
     },
   },
 };
@@ -110,13 +116,13 @@
     }
     .b-m-ups-1 {
       width: 50%;
-      height:30px;
+      height: 30px;
       font-size: 22px;
       font-weight: 400;
       position: relative;
       top: 91px;
       left: 320px;
-      margin-bottom: 20px;
+      margin-bottom: 21px;
     }
     // .securitynumber-1 {
     //   font-size: 22px;
diff --git a/src/views/securityGuard/data.js b/src/views/securityGuard/data.js
index 4a6b3bf..b9d3cb8 100644
--- a/src/views/securityGuard/data.js
+++ b/src/views/securityGuard/data.js
@@ -695,23 +695,23 @@
 },
 
 // {
-//     label: "入职时间",
-//     prop: "rtime",
-//     type: "datetime",
+//     label: "发证日期",
+//     prop: "papertime",
+//     type: "date",
 //     format: "yyyy-MM-dd",
 //     valueFormat: "yyyy-MM-dd",
-//     searchRange: true,
-//     searchSpan: 6,
-//     hide: true,
-//     addDisplay: false,
-//     editDisplay: false,
-//     viewDisplay: false,
-//     search: true,
-//     rules: [{
-//         required: true,
-//         message: "请输入时间",
-//         trigger: "blur"
-//     }]
+//     // searchRange: true,
+//     // searchSpan: 6,
+//     // hide: true,
+//     // addDisplay: false,
+//     // editDisplay: false,
+//     // viewDisplay: false,
+//     // search: true,
+//     // rules: [{
+//     //     required: true,
+//     //     message: "请输入时间",
+//     //     trigger: "blur"
+//     // }]
 // },
 {
     label: "在职状态",
diff --git a/src/views/securityGuard/securityCertificate.vue b/src/views/securityGuard/securityCertificate.vue
index fdad0c8..5ce12c6 100644
--- a/src/views/securityGuard/securityCertificate.vue
+++ b/src/views/securityGuard/securityCertificate.vue
@@ -1,6 +1,6 @@
 <template>
-  <div class="securityCertificate">
-    <div class="security_main">
+  <div class="securityCertificate" id="securityCertificate">
+    <div class="security_main" ref="securityCertificate">
       <div class="security_m_left">
         <div class="security_m_l_up">
           <span class="security_m_l_u_fixed">{{ data.realName }}</span>
@@ -39,12 +39,29 @@
         </div>
       </div>
     </div>
+    <span slot="footer" class="dialog-footer no-print PrintBut">
+      <el-button type="primary" @click="Print">打 印</el-button>
+    </span>
   </div>
 </template>
 
 <script>
 export default {
   props: ["data"],
+  methods: {
+    Print() {
+      var printDom = document.getElementById("securityCertificate");
+      printDom.style.position = "fixed";
+      printDom.style.left = "-10%";
+      printDom.style.width = "120%";
+      printDom.style.height = "100%";
+      this.$Print(this.$refs.securityCertificate);
+      printDom.style.position = "relative";
+      printDom.style.left = "0";
+      printDom.style.width = "100%";
+      printDom.style.height = "calc(100% - 100px)";
+    },
+  },
 };
 </script>
 
@@ -57,6 +74,7 @@
   display: flex;
   align-items: center;
   justify-content: center;
+  flex-direction: column;
 }
 .security_main {
   width: 800px;
@@ -65,7 +83,7 @@
   display: flex;
   align-items: center;
   justify-content: space-around;
-  background-image: url(/img/securityCertificate/123.png);
+  background-image: url(/img/securityCertificate/保安证书.png);
   background-size: 100% 100%;
   background-repeat: no-repeat;
 }
diff --git a/src/views/securityGuard/securityGuard.vue b/src/views/securityGuard/securityGuard.vue
index 5732615..99397d1 100644
--- a/src/views/securityGuard/securityGuard.vue
+++ b/src/views/securityGuard/securityGuard.vue
@@ -724,6 +724,14 @@
                 hide: true,
               },
               {
+                label: "发证日期",
+                prop: "paperTime",
+                hide: true,
+                type: "date",
+                format: "yyyy-MM-dd",
+                valueFormat: "yyyy-MM-dd",
+              },
+              {
                 label: "电子邮箱",
                 prop: "email",
               },
diff --git a/src/views/securityUnitChild/index.vue b/src/views/securityUnitChild/index.vue
index 3ad565d..7d3a1b6 100644
--- a/src/views/securityUnitChild/index.vue
+++ b/src/views/securityUnitChild/index.vue
@@ -224,13 +224,13 @@
       <!-- <span v-else-if="typeTABS.prop === 'tab4'" class="tab"> -->
       <el-tab-pane label="装备管理" name="tab4">
         <!-- 装备管理 -->
-        <equipments :fromDeptId="departmentid"></equipments>
+        <equipments :fromDeptId="departmentid" v-if="overzb"></equipments>
         <!-- </span> -->
       </el-tab-pane>
       <!-- <span v-else-if="typeTABS.prop === 'tab5'" class="tab"> -->
       <el-tab-pane label="车辆管理" name="tab5">
         <!-- 车辆管理 -->
-        <car :fromDeptId="departmentid"></car>
+        <car :fromDeptId="departmentid" v-if="overcar"></car>
         <!-- </span> -->
       </el-tab-pane>
       <!-- <span v-else-if="typeTABS.prop === 'tab6'" class="tab">
@@ -240,7 +240,11 @@
       <!-- <span v-else-if="typeTABS.prop === 'tab9'" class="tab"> -->
       <el-tab-pane label="社保记录" name="tab9">
         <!-- 社保记录  -->
-        <social :deptid="obj0.departmentid" :socialRE="social"></social>
+        <social
+          :deptid="obj0.departmentid"
+          :socialRE="social"
+          v-if="social"
+        ></social>
         <!-- </span> -->
       </el-tab-pane>
       <!-- <span v-else-if="typeTABS.prop === 'tab7'" class="tab"> -->
@@ -357,6 +361,10 @@
       ],
     };
     return {
+      overcar: false, //结决id传入、信息获取的优先级
+      overzb: false, //结决id传入、信息获取的优先级
+      overcar: false, //结决id传入、信息获取的优先级
+
       social: false, //解决表格错乱
       overHtp: false,
 
@@ -650,6 +658,12 @@
         this.loading1 = false;
         this.loading2 = false;
         // this.onLoad(this.page);
+      } else if (tab.name == "tab5") {
+        this.overcar = true;
+        // this.onLoad(this.page);
+      } else if (tab.name == "tab4") {
+        this.overzb = true;
+        // this.onLoad(this.page);
       } else if (tab.name == "tab2") {
         //  this.loading1 = false;
         this.loading2 = false;
@@ -662,6 +676,9 @@
         this.social = true; //表格错乱
       } else {
         this.social = false;
+        this.overcar = false;
+        this.overzb = false;
+        this.overcar = false;
       }
     },
     //派遣记录
diff --git a/src/views/trainApply/index.vue b/src/views/trainApply/index.vue
index 2a5e552..82aa27c 100644
--- a/src/views/trainApply/index.vue
+++ b/src/views/trainApply/index.vue
@@ -1,792 +1,833 @@
 /*
  * @Author: Morpheus
  * @Date: 2021-07-05 16:31:54
- * @Last Modified by: Morpheus
- * @Last Modified time: 2021-07-19 19:39:45
+ * @Last Modified by: liu
+ * @Last Modified time: 2021-10-26 15:33:54
  * menu-name 报名考试
  */
 <template>
-    <el-row class="morpheus-box-apply-exam-1">
-        <el-col :span="24" class="hasButOne">
-            <el-card>
-                <div class="exam-card-body">
+  <el-row class="morpheus-box-apply-exam-1">
+    <el-col :span="24" class="hasButOne">
+      <el-card>
+        <div class="exam-card-body">
+          <avue-crud
+            v-model="obj"
+            class="company-box"
+            :option="questionBankOption"
+            :search.sync="questionBankSearch"
+            :table-loading="questionBankLoading"
+            :data="questionBankData"
+            ref="questionBankCrud"
+            :page.sync="questionBankPage"
+            @on-load="questionBankOnLoad"
+            @selection-change="questionBankSelectionChange"
+            @search-change="questionBankSearchChange"
+            @search-reset="questionBankSearchReset"
+            @current-change="questionBankCurrentChange"
+            @size-change="questionBankSizeChange"
+            @row-save="questionBankRowSave"
+            @row-del="questionBankRowDel"
+          >
+            <!-- 自定义按钮 -->
+            <template slot="menuLeft">
+              <el-button
+                style="display: none"
+                type="warning"
+                size="small"
+                plain
+                icon="el-icon-download"
+                @click="handleExport"
+                >导出
+              </el-button>
+              <el-button
+                type="warning"
+                size="small"
+                plain
+                icon="el-icon-receiving"
+                @click="handleExport"
+                >清册打印
+              </el-button>
+              <el-button
+                type="success"
+                size="small"
+                plain
+                v-if="false"
+                icon="el-icon-download"
+                @click="handleImport"
+                >清册导入
+              </el-button>
+            </template>
 
-                    <avue-crud v-model="obj"
-                               class="company-box"
-                               :option="questionBankOption"
-                               :search.sync="questionBankSearch"
-                               :table-loading="questionBankLoading"
-                               :data="questionBankData"
-                               ref="questionBankCrud"
-                               :page.sync="questionBankPage"
-                               @on-load="questionBankOnLoad"
-                               @selection-change="questionBankSelectionChange"
-                               @search-change="questionBankSearchChange"
-                               @search-reset="questionBankSearchReset"
-                               @current-change="questionBankCurrentChange"
-                               @size-change="questionBankSizeChange"
-                               @row-save="questionBankRowSave"
-                               @row-del="questionBankRowDel">
+            <template slot-scope="{ type, row }" slot="menu">
+              <el-button
+                :type="type"
+                size="small"
+                icon="el-icon-receiving"
+                :disabled="row.candidateNo == '' || row.cancel == 2"
+                @click="handlePrint(row)"
+                >准考证打印
+              </el-button>
+              <el-button
+                :type="type"
+                size="small"
+                icon="el-icon-refresh-left"
+                :disabled="
+                  row.cancel == 2 || row.isExam == 2 || row.isExam == 3
+                "
+                @click="revoke(row)"
+                >取消报名
+              </el-button>
+              <el-button
+                :type="type"
+                size="small"
+                icon="el-icon-circle-check"
+                :disabled="row.auditStatus == 1"
+                @click="auditSucess(row)"
+                >审核通过
+              </el-button>
+            </template>
+          </avue-crud>
 
-                        <!-- 自定义按钮 -->
-                        <template slot="menuLeft">
-                            <el-button
-                                style="display:none"
-                                type="warning"
-                                size="small"
-                                plain
-                                icon="el-icon-download"
-                                @click="handleExport"
-                                >导出
-                            </el-button>
-                            <el-button
-                                type="warning"
-                                size="small"
-                                plain
-                                icon="el-icon-receiving"
-                                @click="handleExport"
-                                >清册打印
-                            </el-button>
-                            <el-button
-                                type="success"
-                                size="small"
-                                plain
-                                icon="el-icon-download"
-                                @click="handleImport"
-                                >清册导入
-                            </el-button>
-                        </template>
-
-                        <template slot-scope="{ type,row }" slot="menu">
-                            <el-button
-                            :type="type"
-                            size="small"
-                            icon="el-icon-receiving"
-                            :disabled="row.candidateNo=='' || row.cancel==2"
-                            @click="handlePrint(row)"
-                            >准考证打印
-                            </el-button>
-                            <el-button
-                            :type="type"
-                            size="small"
-                            icon="el-icon-refresh-left"
-                            :disabled="row.cancel==2  || row.isExam==2  || row.isExam==3"
-                            @click="revoke(row)"
-                            >取消报名
-                            </el-button>
-                            <el-button
-                            :type="type"
-                            size="small"
-                            icon="el-icon-circle-check"
-                            :disabled="row.auditStatus==1"
-                            @click="auditSucess(row)"
-                            >审核通过
-                            </el-button>
-                        </template>
-
-                    </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>
-                    </el-dialog>
-
-                </div>
-
-            </el-card>
-        </el-col>
-    </el-row>
+          <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>
+          </el-dialog>
+        </div>
+      </el-card>
+    </el-col>
+  </el-row>
 </template>
 
 <script>
+import {
+  getdata,
+  adddata,
+  cancelTrainAudit,
+  auditSucess,
+  remove,
+} from "@/api/trainingRegistration/trainingRegistration";
 
-import {getdata,adddata,  cancelTrainAudit,auditSucess,remove} from "@/api/trainingRegistration/trainingRegistration";
-
-import { mapState } from 'vuex'
+import { mapState } from "vuex";
 
 var DIC = {
-    cancel: [{
-        label: '已报名',
-        value: 1
-    }, {
-        label: '已取消',
-        value: 2
-    }]
-}
-
-
+  cancel: [
+    {
+      label: "已报名",
+      value: 1,
+    },
+    {
+      label: "已取消",
+      value: 2,
+    },
+  ],
+};
 
 export default {
-    data () {
-        var examId = this.$route.query.id;
-        return {
-            excelBox: false,
-            questionBankOption: {
-                // 操作栏多余按钮去除
-                delBtn: false,
-                editBtn: false,
-                addBtn: false,
-                selection: true,
-                menu: true,
-                // 导出按钮
-                // excelBtn: true,
-                viewBtn: false,
+  data() {
+    var examId = this.$route.query.id;
+    return {
+      excelBox: false,
+      questionBankOption: {
+        // 操作栏多余按钮去除
+        delBtn: false,
+        editBtn: false,
+        addBtn: false,
+        selection: true,
+        menu: true,
+        // 导出按钮
+        // excelBtn: true,
+        viewBtn: false,
 
-                // title: '题库',
+        // title: '题库',
 
-                align: 'center',
-                height: 'auto',
-                calcHeight: 80,
-                tip: false,
-                searchShow: true,
-                searchMenuSpan: 4,
-                index: true,
-                indexLabel: '序号',
-                //dialogType: 'drawer',
-                dialogClickModal: false,
-                // 操作栏宽度
-                menuWidth: 200,
+        align: "center",
+        height: "auto",
+        calcHeight: 80,
+        tip: false,
+        searchShow: true,
+        searchMenuSpan: 4,
+        index: true,
+        indexLabel: "序号",
+        //dialogType: 'drawer',
+        dialogClickModal: false,
+        // 操作栏宽度
+        menuWidth: 200,
 
-                column: [
-                    {
-                        label: "保安姓名",
-                        prop: "userId",
-                        type: 'tree',
-                        dicUrl: '',
-                        
-                        hide:true,
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        props: {
-                            label: "title",
-                            value: "id",
-                        },
-                        rules: [{
-                            required: true,
-                            message: "请选择保安姓名",
-                            trigger: "blur"
-                        }]
-                    },
-                    {
-                        label: "保安姓名",
-                        prop: "realName",
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: false,
-                        search: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: false,
-                        // 表单编辑时是否可见
-                        editDisplay: false,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        viewDisplay:true,
-                        props: {
-                            label: "title",
-                            value: "id",
-                        },
-                        rules: [{
-                            required: true,
-                            message: "请选择保安姓名",
-                            trigger: "blur"
-                        }]
-                    },
-                    {
-                        label: "考试名称",
-                        prop: "trainExamName",
-                        type: 'tree',
-                        dicUrl: '/api/exampaper/page-tree',
-                        // search: true,
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        props: {
-                            label: "examName",
-                            value: "id",
-                        },
-                        rules: [{
-                            required: true,
-                            message: "请选择试卷名称",
-                            trigger: "blur"
-                        }],
-                        width: 220
-                    },
-                    {
-                        label: "所属公司",
-                        prop: "deptName",
-                        search: true,
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: false,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        rules: [{
-                            required: true,
-                            message: "请选择所属公司",
-                            trigger: "blur"
-                        }],
-                        width: 220
-                    },
-                    {
-                        label: "报名状态",
-                        prop: "cancel",
-                        type:"select",
-                        search:true,
-                        hide:true,
-                        searchSpan:4,
-                        searchValue:1,
-                        dicData:[
-                            {
-                                label: '已报名',
-                                value: 1
-                            }, {
-                                label: '已取消',
-                                value: 2
-                            }
-                        ]
-                    },
-                    {
-                        label: "准考证号",
-                        prop: "candidateNo",
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: false,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: false,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        rules: [{
-                            required: true,
-                            message: "请选择准考证号",
-                            trigger: "blur"
-                        }],
-                        width:100,
-                    },
-                    {
-                        label: "身份证号",
-                        prop: "idCardNo",
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: false,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: false,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        rules: [{
-                            required: true,
-                            message: "请选择准考证号",
-                            trigger: "blur"
-                        }],
-                        width: 200
-                    },
-                    {
-                        label: "报考证件",
-                        prop: "applyCard", 
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: false,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: false,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        rules: [{
-                            required: true,
-                            message: "请选择准考证号",
-                            trigger: "blur"
-                        }],
-                    },
-                    // {
-                    //     label: "试卷分数",
-                    //     prop: "paperScore",
-                    //     slot: true,
-                    //     // 表单新增时是否禁止
-                    //     addDisabled: false,
-                    //     // 表单新增时是否可见
-                    //     addDisplay: false,
-                    //     // 表单新增时是否为查看模式
-                    //     addDetail: false,
-                    //     // 表单编辑时是否禁止
-                    //     editDisabled: true,
-                    //     // 表单编辑时是否可见
-                    //     editDisplay: true,
-                    //     // 表单编辑时是否为查看模式
-                    //     editDetail: false
-                    // },
-                    {
-                        label: "报名时间",
-                        prop: "trainingTime",
-                        type: "datetime",
-                        // span: 24,
-                        format: 'yyyy-MM-dd HH:mm:ss',
-                        valueFormat: 'yyyy-MM-dd HH:mm:ss',
-                        // 表单新增时是否禁止
-                        addDisabled: true,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        value: (new Date().getFullYear() + '-' + (new Date().getMonth() + 1 < 10
-                            ? "0" + (new Date().getMonth() + 1)
-                            : new Date().getMonth() + 1) + '-' + (new Date().getDate() < 10
-                                ? "0" + new Date().getDate()
-                                : new Date().getDate()) + ' ' + (new Date().getHours() < 10
-                                    ? "0" + new Date().getHours()
-                                    : new Date().getHours()) + ':' + (new Date().getMinutes() < 10
-                                        ? "0" + new Date().getMinutes()
-                                        : new Date().getMinutes()) + ':' + (new Date().getSeconds() < 10
-                                            ? "0" + new Date().getSeconds()
-                                            : new Date().getSeconds())),
+        column: [
+          {
+            label: "保安姓名",
+            prop: "userId",
+            type: "tree",
+            dicUrl: "",
 
-                        width: 150
-                    },
-                    {
-                        label: "考试时间",
-                        prop: "trainExamTime",
-                        type: "datetime",
-                        // span: 24,
-                        format: 'yyyy-MM-dd HH:mm:ss',
-                        valueFormat: 'yyyy-MM-dd HH:mm:ss',
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: false,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: false,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        width: 150
-                    },
-                    {
-                        label: "审核状态",
-                        search: true,
-                        searchLabelWidth: 110,
-                        type: "select",
-                        searchSpan: 4,
-                        prop: "auditStatus",
-                        searchValue: 4,
-                        dicData: [{
-                                label: '全部',
-                                value: 0,
-                            },
-                            {
-                                label: '审核通过',
-                                value: 1,
-                            },
-                            {
-                                label: '审核不通过',
-                                value: 2,
-                            },
-                            {
-                                label: '已提交审核',
-                                value: 3,
-                            },
-                            {
-                                label: '未提交审核',
-                                value: 4,
-                            }
-                        ],
-                        props: {
-                            label: "label",
-                            value: "value"
-                        },
-                        editDisplay: false,
-                        addDisplay: false,
-                        width: 100,
-                    },
-                    // {
-                    //     label: "报名状态",
-                    //     prop: "cancel", 
-                    //     slot: true,
-                    //     // 表单新增时是否禁止
-                    //     addDisabled: false,
-                    //     // 表单新增时是否可见
-                    //     addDisplay: false,
-                    //     // 表单新增时是否为查看模式
-                    //     addDetail: false,
-                    //     // 表单编辑时是否禁止
-                    //     editDisabled: false,
-                    //     // 表单编辑时是否可见
-                    //     editDisplay: true,
-                    //     // 表单编辑时是否为查看模式
-                    //     editDetail: false,
-                    //     dicData:DIC.cancel,
-                    //     search:true,
-                    //     type:"select"
-                    // },
-                ]
+            hide: true,
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            props: {
+              label: "title",
+              value: "id",
             },
-            questionBankSearch: {},
-            questionBankLoading: true,
-            questionBankData: [
-
+            rules: [
+              {
+                required: true,
+                message: "请选择保安姓名",
+                trigger: "blur",
+              },
             ],
-            questionBankPage: {
-                pageSize: 10,
-                currentPage: 1,
-                total: 16
+          },
+          {
+            label: "保安姓名",
+            prop: "realName",
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: false,
+            search: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: false,
+            // 表单编辑时是否可见
+            editDisplay: false,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            viewDisplay: true,
+            props: {
+              label: "title",
+              value: "id",
             },
-            questionBankQuery: {},
-            questionBankSelectionList: [],
-            excelForm: {},
-            excelOption: {
-                submitBtn: false,
-                emptyBtn: false,
-                column: [
-                {
-                    label: "模板上传",
-                    prop: "excelFile",
-                    type: "upload",
-                    drag: true,
-                    loadText: "模板上传中,请稍等",
-                    span: 24,
-                    propsHttp: {
-                    res: "data",
-                    },
-                    tip: "请上传 .xls,.xlsx 标准格式文件",
-                    action: "/api/trainingRegistration/import-trainingRegistration?examId="+examId,
-                },
-                {
-                    label: "模板下载",
-                    prop: "excelTemplate",
-                    formslot: true,
-                    span: 24,
-                },
-                ],
+            rules: [
+              {
+                required: true,
+                message: "请选择保安姓名",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "考试名称",
+            prop: "trainExamName",
+            type: "tree",
+            dicUrl: "/api/exampaper/page-tree",
+            // search: true,
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            props: {
+              label: "examName",
+              value: "id",
             },
-        }
-    },
+            rules: [
+              {
+                required: true,
+                message: "请选择试卷名称",
+                trigger: "blur",
+              },
+            ],
+            width: 220,
+          },
+          {
+            label: "所属公司",
+            prop: "deptName",
+            search: true,
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: false,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请选择所属公司",
+                trigger: "blur",
+              },
+            ],
+            width: 220,
+          },
+          {
+            label: "报名状态",
+            prop: "cancel",
+            type: "select",
+            search: true,
+            hide: true,
+            searchSpan: 4,
+            searchValue: 1,
+            dicData: [
+              {
+                label: "已报名",
+                value: 1,
+              },
+              {
+                label: "已取消",
+                value: 2,
+              },
+            ],
+          },
+          {
+            label: "准考证号",
+            prop: "candidateNo",
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: false,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: false,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请选择准考证号",
+                trigger: "blur",
+              },
+            ],
+            width: 100,
+          },
+          {
+            label: "身份证号",
+            prop: "idCardNo",
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: false,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: false,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请选择准考证号",
+                trigger: "blur",
+              },
+            ],
+            width: 200,
+          },
+          {
+            label: "报考证件",
+            prop: "applyCard",
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: false,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: false,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请选择准考证号",
+                trigger: "blur",
+              },
+            ],
+          },
+          // {
+          //     label: "试卷分数",
+          //     prop: "paperScore",
+          //     slot: true,
+          //     // 表单新增时是否禁止
+          //     addDisabled: false,
+          //     // 表单新增时是否可见
+          //     addDisplay: false,
+          //     // 表单新增时是否为查看模式
+          //     addDetail: false,
+          //     // 表单编辑时是否禁止
+          //     editDisabled: true,
+          //     // 表单编辑时是否可见
+          //     editDisplay: true,
+          //     // 表单编辑时是否为查看模式
+          //     editDetail: false
+          // },
+          {
+            label: "报名时间",
+            prop: "trainingTime",
+            type: "datetime",
+            // span: 24,
+            format: "yyyy-MM-dd HH:mm:ss",
+            valueFormat: "yyyy-MM-dd HH:mm:ss",
+            // 表单新增时是否禁止
+            addDisabled: true,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            value:
+              new Date().getFullYear() +
+              "-" +
+              (new Date().getMonth() + 1 < 10
+                ? "0" + (new Date().getMonth() + 1)
+                : new Date().getMonth() + 1) +
+              "-" +
+              (new Date().getDate() < 10
+                ? "0" + new Date().getDate()
+                : new Date().getDate()) +
+              " " +
+              (new Date().getHours() < 10
+                ? "0" + new Date().getHours()
+                : new Date().getHours()) +
+              ":" +
+              (new Date().getMinutes() < 10
+                ? "0" + new Date().getMinutes()
+                : new Date().getMinutes()) +
+              ":" +
+              (new Date().getSeconds() < 10
+                ? "0" + new Date().getSeconds()
+                : new Date().getSeconds()),
 
-    watch: {
-        "form.examname": {
-            // form是表单或者表格绑定的数据集,v-model='form'
-            handler (val) {
-                if (val) {
-                    //地址截取,从县/区开始截取,并且取从县区第一个出现的位置开始
-                    var address = val.formattedAddress.toString();
-                    if (address.search("县") != -1) {
-                        this.form.address = address.substring(
-                            address.indexOf("县") + 1,
-                            address.length
-                        );
-                    }
-                    if (address.search("区") != -1) {
-                        this.form.address = address.substring(
-                            address.indexOf("区") + 1,
-                            address.length
-                        );
-                    }
-                }
+            width: 150,
+          },
+          {
+            label: "考试时间",
+            prop: "trainExamTime",
+            type: "datetime",
+            // span: 24,
+            format: "yyyy-MM-dd HH:mm:ss",
+            valueFormat: "yyyy-MM-dd HH:mm:ss",
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: false,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: false,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            width: 150,
+          },
+          {
+            label: "审核状态",
+            search: true,
+            searchLabelWidth: 110,
+            type: "select",
+            searchSpan: 4,
+            prop: "auditStatus",
+            searchValue: 4,
+            dicData: [
+              {
+                label: "全部",
+                value: 0,
+              },
+              {
+                label: "审核通过",
+                value: 1,
+              },
+              {
+                label: "审核不通过",
+                value: 2,
+              },
+              {
+                label: "已提交审核",
+                value: 3,
+              },
+              {
+                label: "未提交审核",
+                value: 4,
+              },
+            ],
+            props: {
+              label: "label",
+              value: "value",
             },
-            immediate: true,
-        },
-    },
-    created () {
+            editDisplay: false,
+            addDisplay: false,
+            width: 100,
+          },
+          // {
+          //     label: "报名状态",
+          //     prop: "cancel",
+          //     slot: true,
+          //     // 表单新增时是否禁止
+          //     addDisabled: false,
+          //     // 表单新增时是否可见
+          //     addDisplay: false,
+          //     // 表单新增时是否为查看模式
+          //     addDetail: false,
+          //     // 表单编辑时是否禁止
+          //     editDisabled: false,
+          //     // 表单编辑时是否可见
+          //     editDisplay: true,
+          //     // 表单编辑时是否为查看模式
+          //     editDetail: false,
+          //     dicData:DIC.cancel,
+          //     search:true,
+          //     type:"select"
+          // },
+        ],
+      },
+      questionBankSearch: {},
+      questionBankLoading: true,
+      questionBankData: [],
+      questionBankPage: {
+        pageSize: 10,
+        currentPage: 1,
+        total: 16,
+      },
+      questionBankQuery: {},
+      questionBankSelectionList: [],
+      excelForm: {},
+      excelOption: {
+        submitBtn: false,
+        emptyBtn: false,
+        column: [
+          {
+            label: "模板上传",
+            prop: "excelFile",
+            type: "upload",
+            drag: true,
+            loadText: "模板上传中,请稍等",
+            span: 24,
+            propsHttp: {
+              res: "data",
+            },
+            tip: "请上传 .xls,.xlsx 标准格式文件",
+            action:
+              "/api/trainingRegistration/import-trainingRegistration?examId=" +
+              examId,
+          },
+          {
+            label: "模板下载",
+            prop: "excelTemplate",
+            formslot: true,
+            span: 24,
+          },
+        ],
+      },
+    };
+  },
 
-      console.log(this.userInfo)
-
-      if (this.userInfo.role_name.indexOf('ksxtadmin') != -1) {
-
-        this.questionBankOption.column[0].dicUrl = "/api/blade-system/dept/lazy-tree-user?parentId="
-      } else {
-        this.questionBankOption.column[0].dicUrl = "/api/blade-system/dept/lazy-tree-user?parentId=" + this.userInfo.dept_id
-
-      }
-      this.questionBankSearch['cancel'] = 1;
-      this.questionBankSearch['auditStatus'] = 0;
-    },
-    mounted() {
-        var flag = false,
-        i = 0,
-        ind = null;
-        this.$store.state.tags.tagList.forEach((item, index) => {
-        if (item.label == "报名清册") {
-            if (flag == false) {
-            ind = index;
-            flag = true;
-            }
-            i++;
-        }
-        });
-        if (i > 1) {
-        this.$store.state.tags.tagList.splice(ind, 1);
-        }
-    },
-    computed: {
-        ...mapState({
-            userInfo: state => state.user.userInfo
-        }),
-        ids () {
-            let ids = [];
-            this.questionBankSelectionList.forEach(ele => {
-                ids.push(ele.id);
-            });
-            return ids.join(",");
-        },
-    },
-    methods: {
-        //准考证查看
-        handlePrint(row) {
-            var obj = row;
-            obj["name"] = "准考证信息";
-            this.$router.push({
-                path: `/applyexam/papers`,
-                query: obj,
-            });
-        },
-        questionBankOnLoad (page, params = {}) {
-            params = this.questionBankSearch;
-            params['examId'] = this.$route.query.id;
-            this.questionBankLoading = false;
-            getdata(page.currentPage, page.pageSize, Object.assign(params, this.questionBankQuery)).then(res => {
-                const data = res.data.data;
-                this.questionBankPage.total = data.total;
-                this.questionBankData = data.records;
-                this.questionBankLoading = false;
-                this.questionBankSelectionClear();
-            });
-        },
-        questionBankSelectionClear () {
-            this.questionBankSelectionList = [];
-            this.$refs.questionBankCrud.toggleSelection();
-        },
-        questionBankSelectionChange (list) {
-            this.questionBankSelectionList = list;
-        },
-        questionBankSearchChange (params, done) {
-            this.questionBankQuery = params;
-            this.questionBankPage.currentPage = 1;
-            this.questionBankOnLoad(this.questionBankPage, params);
-            done();
-        },
-        questionBankSearchReset () {
-            this.questionBankQuery = {};
-            this.questionBankOnLoad(this.questionBankPage);
-        },
-        questionBankCurrentChange (currentPage) {
-            this.questionBankPage.currentPage = currentPage;
-        },
-        questionBankSizeChange (pageSize) {
-            this.questionBankPage.pageSize = pageSize;
-        },
-        //取消报名
-        revoke(row, done, loading) {
-            this.$confirm("确定取消报名?", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            }).then(() => {
-                row.cancel = 2;
-                cancelTrainAudit(row).then(
-                () => {
-                    this.onLoad(this.page);
-                    this.$message({
-                    type: "success",
-                    message: "取消报名成功!",
-                    });
-                    done();
-                },
-                (error) => {
-                    window.console.log(error);
-                    loading();
-                }
-                );
-            });
-        },
-        //审核通过
-        auditSucess(row, done, loading) {
-            this.$confirm("确定审核通过?", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            }).then(() => {
-                row.cancel = 1;
-                auditSucess(row).then(
-                () => {
-                    this.onLoad(this.page);
-                    this.$message({
-                    type: "success",
-                    message: "操作成功!",
-                    });
-                    done();
-                },
-                (error) => {
-                    window.console.log(error);
-                    loading();
-                }
-                );
-            });
-        },
-
-        // 新增
-        questionBankRowSave (row, done, loading) {
-
-            adddata({ userId: row.name, examId: row.examName, applyTime: row.applyTime }).then(() => {
-                this.questionBankOnLoad(this.questionBankPage);
-                this.$message({
-                    type: "success",
-                    message: "操作成功!"
-                });
-                done();
-            }, error => {
-                window.console.log(error);
-                loading();
-            });
-        },
-
-        questionBankRowDel (row) {
-            this.$confirm("确定将选择数据删除?", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning"
-            })
-                .then(() => {
-                    return remove(row.id);
-                })
-                .then(() => {
-                    this.questionBankOnLoad(this.questionBankPage);
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!"
-                    });
-                });
-        },
-
-        questionBankHandleDelete () {
-            if (this.questionBankSelectionList.length === 0) {
-                this.$message.warning("请选择至少一条数据");
-                return;
-            }
-            this.$confirm("确定将选择数据删除?", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning"
-            })
-                .then(() => {
-                    return remove(this.ids);
-                })
-                .then(() => {
-                    this.questionBankOnLoad(this.questionBankPage);
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!"
-                    });
-                    this.$refs.questionBankCrud.toggleSelection();
-                });
-        },
-        //清册生成
-        handleExport() {
-            var obj ={};
-            obj["name"] = "报名清册信息";
-            obj["examId"] = this.$route.query.id;
-            this.$router.push({
-                path: `/applydetailed/papers`,
-                query: obj,
-            });
-        },
-
-        //导出数据
-        // handleExport() {
-        //     this.$confirm("是否导出清册数据?", "提示", {
-        //         confirmButtonText: "确定",
-        //         cancelButtonText: "取消",
-        //         type: "warning",
-        //     }).then(() => {
-        //         window.open(`/api/trainingRegistration/export-apply?examId=${this.$route.query.id}`);
-        //     });
-        // },
-        handleImport() {
-            this.excelBox = true;
-        },
-        handleTemplate() {
-            window.open(
-                `/api/trainingRegistration/export-template`
+  watch: {
+    "form.examname": {
+      // form是表单或者表格绑定的数据集,v-model='form'
+      handler(val) {
+        if (val) {
+          //地址截取,从县/区开始截取,并且取从县区第一个出现的位置开始
+          var address = val.formattedAddress.toString();
+          if (address.search("县") != -1) {
+            this.form.address = address.substring(
+              address.indexOf("县") + 1,
+              address.length
             );
-        },
-        uploadAfter(res, done, loading, column) {
-            window.console.log(column);
-            this.excelBox = false;
-            this.refreshChange();
-            done();
-        },
-        refreshChange() {
-            this.questionBankOnLoad(this.page, this.query);
-        },
+          }
+          if (address.search("区") != -1) {
+            this.form.address = address.substring(
+              address.indexOf("区") + 1,
+              address.length
+            );
+          }
+        }
+      },
+      immediate: true,
+    },
+  },
+  created() {
+    console.log(this.userInfo);
+
+    if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) {
+      this.questionBankOption.column[0].dicUrl =
+        "/api/blade-system/dept/lazy-tree-user?parentId=";
+    } else {
+      this.questionBankOption.column[0].dicUrl =
+        "/api/blade-system/dept/lazy-tree-user?parentId=" +
+        this.userInfo.dept_id;
     }
-}
+    this.questionBankSearch["cancel"] = 1;
+    this.questionBankSearch["auditStatus"] = 0;
+  },
+  mounted() {
+    var flag = false,
+      i = 0,
+      ind = null;
+    this.$store.state.tags.tagList.forEach((item, index) => {
+      if (item.label == "报名清册") {
+        if (flag == false) {
+          ind = index;
+          flag = true;
+        }
+        i++;
+      }
+    });
+    if (i > 1) {
+      this.$store.state.tags.tagList.splice(ind, 1);
+    }
+  },
+  computed: {
+    ...mapState({
+      userInfo: (state) => state.user.userInfo,
+    }),
+    ids() {
+      let ids = [];
+      this.questionBankSelectionList.forEach((ele) => {
+        ids.push(ele.id);
+      });
+      return ids.join(",");
+    },
+  },
+  methods: {
+    //准考证查看
+    handlePrint(row) {
+      var obj = row;
+      obj["name"] = "准考证信息";
+      this.$router.push({
+        path: `/applyexam/papers`,
+        query: obj,
+      });
+    },
+    questionBankOnLoad(page, params = {}) {
+      params = this.questionBankSearch;
+      params["examId"] = this.$route.query.id;
+      this.questionBankLoading = false;
+      getdata(
+        page.currentPage,
+        page.pageSize,
+        Object.assign(params, this.questionBankQuery)
+      ).then((res) => {
+        const data = res.data.data;
+        this.questionBankPage.total = data.total;
+        this.questionBankData = data.records;
+        this.questionBankLoading = false;
+        this.questionBankSelectionClear();
+      });
+    },
+    questionBankSelectionClear() {
+      this.questionBankSelectionList = [];
+      this.$refs.questionBankCrud.toggleSelection();
+    },
+    questionBankSelectionChange(list) {
+      this.questionBankSelectionList = list;
+    },
+    questionBankSearchChange(params, done) {
+      this.questionBankQuery = params;
+      this.questionBankPage.currentPage = 1;
+      this.questionBankOnLoad(this.questionBankPage, params);
+      done();
+    },
+    questionBankSearchReset() {
+      this.questionBankQuery = {};
+      this.questionBankOnLoad(this.questionBankPage);
+    },
+    questionBankCurrentChange(currentPage) {
+      this.questionBankPage.currentPage = currentPage;
+    },
+    questionBankSizeChange(pageSize) {
+      this.questionBankPage.pageSize = pageSize;
+    },
+    //取消报名
+    revoke(row, done, loading) {
+      this.$confirm("确定取消报名?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      }).then(() => {
+        row.cancel = 2;
+        cancelTrainAudit(row).then(
+          () => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "取消报名成功!",
+            });
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            loading();
+          }
+        );
+      });
+    },
+    //审核通过
+    auditSucess(row, done, loading) {
+      this.$confirm("确定审核通过?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      }).then(() => {
+        row.cancel = 1;
+        auditSucess(row).then(
+          () => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            loading();
+          }
+        );
+      });
+    },
+
+    // 新增
+    questionBankRowSave(row, done, loading) {
+      adddata({
+        userId: row.name,
+        examId: row.examName,
+        applyTime: row.applyTime,
+      }).then(
+        () => {
+          this.questionBankOnLoad(this.questionBankPage);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+          done();
+        },
+        (error) => {
+          window.console.log(error);
+          loading();
+        }
+      );
+    },
+
+    questionBankRowDel(row) {
+      this.$confirm("确定将选择数据删除?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+          return remove(row.id);
+        })
+        .then(() => {
+          this.questionBankOnLoad(this.questionBankPage);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+        });
+    },
+
+    questionBankHandleDelete() {
+      if (this.questionBankSelectionList.length === 0) {
+        this.$message.warning("请选择至少一条数据");
+        return;
+      }
+      this.$confirm("确定将选择数据删除?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+          return remove(this.ids);
+        })
+        .then(() => {
+          this.questionBankOnLoad(this.questionBankPage);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+          this.$refs.questionBankCrud.toggleSelection();
+        });
+    },
+    //清册生成
+    handleExport() {
+      var obj = {};
+      obj["name"] = "报名清册信息";
+      obj["examId"] = this.$route.query.id;
+      this.$router.push({
+        path: `/applydetailed/papers`,
+        query: obj,
+      });
+    },
+
+    //导出数据
+    // handleExport() {
+    //     this.$confirm("是否导出清册数据?", "提示", {
+    //         confirmButtonText: "确定",
+    //         cancelButtonText: "取消",
+    //         type: "warning",
+    //     }).then(() => {
+    //         window.open(`/api/trainingRegistration/export-apply?examId=${this.$route.query.id}`);
+    //     });
+    // },
+    handleImport() {
+      this.excelBox = true;
+    },
+    handleTemplate() {
+      window.open(`/api/trainingRegistration/export-template`);
+    },
+    uploadAfter(res, done, loading, column) {
+      window.console.log(column);
+      this.excelBox = false;
+      this.refreshChange();
+      done();
+    },
+    refreshChange() {
+      this.questionBankOnLoad(this.page, this.query);
+    },
+  },
+};
 </script>
 
 <style lang="scss" scoped>
diff --git a/src/views/trainExam/performance.vue b/src/views/trainExam/performance.vue
index f993d5c..c4fc148 100644
--- a/src/views/trainExam/performance.vue
+++ b/src/views/trainExam/performance.vue
@@ -2,7 +2,7 @@
  * @Author: Morpheus
  * @Date: 2021-07-05 16:31:54
  * @Last Modified by: liu
- * @Last Modified time: 2021-09-28 15:03:18
+ * @Last Modified time: 2021-10-26 15:44:52
  * menu-name 成绩管理
  */
 <template>
@@ -94,6 +94,14 @@
                 :type="type"
                 >缺考标记</el-button
               >
+              <el-button
+                icon="el-icon-s-flag"
+                @click="openzhengjian(row)"
+                :disabled="row.qualified != 0"
+                :size="size"
+                :type="type"
+                >打印证件</el-button
+              >
             </template>
           </avue-crud>
 
@@ -118,15 +126,28 @@
         </div>
       </el-card>
     </el-col>
+    <!-- <el-dialog
+      title="打印证件"
+      :visible.sync="dialogVisiblezhengjian"
+      :modal-append-to-body="false"
+    > -->
+    <div class="dialogVisiblezhengjian" v-if="dialogVisiblezhengjian">
+      <baoanz :data="baoanzdata" :close="1" @close="closezhengjian"></baoanz>
+    </div>
+    <!-- </el-dialog> -->
   </el-row>
 </template>
 
 <script>
+import baoanz from "../securityGuard/baoanz.vue";
 import { getList, update, updateAbsent } from "@/api/examapi/performance";
 import { mapGetters } from "vuex";
 import { getRoleDetail } from "@/api/system/role";
-import Qs from 'qs';
+import Qs from "qs";
 export default {
+  components: {
+    baoanz,
+  },
   data() {
     var validatePass = (rule, value, callback) => {
       console.log(value);
@@ -145,6 +166,8 @@
     };
 
     return {
+      dialogVisiblezhengjian: false,
+      baoanzdata: {},
       obj: {
         name: "张三",
       },
@@ -172,7 +195,7 @@
         dialogClickModal: false,
         // 操作栏宽度
         menu: true,
-        menuWidth: 215,
+        menuWidth: 295,
         labelWidth: 120,
         column: [
           {
@@ -263,6 +286,33 @@
           {
             label: "身份证号",
             prop: "account",
+            search: true,
+            searchSpan: 4,
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请输入保安姓名",
+                trigger: "blur",
+              },
+            ],
+            width: 140,
+          },
+          {
+            label: "准考证号",
+            prop: "candidateNo",
             search: true,
             searchSpan: 4,
             slot: true,
@@ -417,6 +467,7 @@
             editDisplay: true,
             // 表单编辑时是否为查看模式
             editDetail: false,
+            width: 68,
           },
           {
             label: "实操成绩",
@@ -434,6 +485,7 @@
             editDisplay: true,
             // 表单编辑时是否为查看模式
             editDetail: false,
+            width: 68,
             rules: [
               { validator: validatePass, required: true, trigger: "blur" },
             ],
@@ -454,6 +506,7 @@
             editDisplay: true,
             // 表单编辑时是否为查看模式
             editDetail: false,
+            width: 58,
             rules: [
               {
                 required: true,
@@ -469,6 +522,7 @@
             slot: true,
             search: true,
             searchSpan: 3,
+            width: 68,
             dicData: [
               {
                 label: "合格",
@@ -487,7 +541,6 @@
                 value: 3,
               },
             ],
-            width: 110,
             // 表单新增时是否禁止
             addDisabled: false,
             // 表单新增时是否可见
@@ -598,6 +651,19 @@
     },
   },
   methods: {
+    openzhengjian(row) {
+      this.baoanzdata = {
+        realName: row.securityName,
+        $sex: row.sex == 1 ? "男" : "女",
+        securitynumber: row.securityNumber,
+        paperTime: row.paperTime,
+        avatar: row.avatar,
+      };
+      this.dialogVisiblezhengjian = true;
+    },
+    closezhengjian() {
+      this.dialogVisiblezhengjian = false;
+    },
     questionBankOnLoad(page, params = {}) {
       //判断角色,如果是保安公司管理员或保安,只能查看当前公司的考试成绩
       var that = this;
@@ -722,7 +788,7 @@
         type: "warning",
       }).then(() => {
         //获取查询条件
-        console.log(this.questionBankSearch,456);
+        console.log(this.questionBankSearch, 456);
         var data = {
           account: this.questionBankSearch.account,
           companyName: this.questionBankSearch.companyName,
@@ -747,9 +813,7 @@
         data["examType"] = 2;
         //序列号url形式,用&拼接
         data = Qs.stringify(data);
-        window.open(
-          `/api/examScore/export-examScore?` + data
-        );
+        window.open(`/api/examScore/export-examScore?` + data);
       });
     },
   },
@@ -757,4 +821,14 @@
 </script>
 
 <style lang="scss" scoped>
+.morpheus-box {
+  position: relative;
+}
+.dialogVisiblezhengjian {
+  position: absolute;
+  background-color: #fff;
+  width: 100%;
+  height: 100%;
+  z-index: 10000 !important;
+}
 </style>
diff --git a/src/views/trainExam/singleperformance.vue b/src/views/trainExam/singleperformance.vue
index c08fff2..c0075b2 100644
--- a/src/views/trainExam/singleperformance.vue
+++ b/src/views/trainExam/singleperformance.vue
@@ -2,7 +2,7 @@
  * @Author: Morpheus
  * @Date: 2021-07-05 16:31:54
  * @Last Modified by: liu
- * @Last Modified time: 2021-09-28 15:06:04
+ * @Last Modified time: 2021-10-26 15:38:19
  * menu-name 成绩查看
  */
 <template>
@@ -108,7 +108,7 @@
 import { getList, update } from "@/api/examapi/performance";
 import { mapGetters } from "vuex";
 import { getRoleDetail } from "@/api/system/role";
-import Qs from 'qs';
+import Qs from "qs";
 export default {
   data() {
     var validatePass = (rule, value, callback) => {
@@ -209,7 +209,7 @@
               },
             ],
             // overHidden:true,
-            width: 210,
+            minWidth: 230,
           },
           {
             label: "姓名",
@@ -269,6 +269,33 @@
             width: 160,
           },
           {
+            label: "准考证号",
+            prop: "candidateNo",
+            search: true,
+            searchSpan: 4,
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请输入保安姓名",
+                trigger: "blur",
+              },
+            ],
+            width: 140,
+          },
+          {
             label: "所属公司",
             prop: "companyName",
             search: true,
@@ -291,6 +318,7 @@
             editDisplay: true,
             // 表单编辑时是否为查看模式
             editDetail: false,
+            overHidden: true,
             rules: [
               {
                 required: true,
@@ -298,7 +326,7 @@
                 trigger: "blur",
               },
             ],
-            width: 230,
+            minWidth: 230,
           },
           {
             label: "考试开始时间",
@@ -361,7 +389,7 @@
                 value: 3,
               },
             ],
-            width: 60,
+            width: 90,
             // 表单新增时是否禁止
             addDisabled: false,
             // 表单新增时是否可见
@@ -398,6 +426,7 @@
             editDisplay: true,
             // 表单编辑时是否为查看模式
             editDetail: false,
+            width: 68,
           },
           {
             label: "实操成绩",
@@ -415,6 +444,7 @@
             editDisplay: true,
             // 表单编辑时是否为查看模式
             editDetail: false,
+            width: 68,
             rules: [
               { validator: validatePass, required: true, trigger: "blur" },
             ],
@@ -435,6 +465,7 @@
             editDisplay: true,
             // 表单编辑时是否为查看模式
             editDetail: false,
+            width: 58,
             rules: [
               {
                 required: true,
@@ -451,6 +482,7 @@
             search: true,
             searchSpan: 3,
             width: 110,
+            width: 68,
             dicData: [
               {
                 label: "合格",
@@ -642,9 +674,7 @@
         data["examType"] = 2;
         //序列号url形式,用&拼接
         data = Qs.stringify(data);
-        window.open(
-          `/api/examScore/export-examScore?` + data
-        );
+        window.open(`/api/examScore/export-examScore?` + data);
       });
     },
   },

--
Gitblit v1.9.3