From 7a175d049f2de72795b7d81baa4d41f59b3b7ef1 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 13 Aug 2021 20:48:28 +0800
Subject: [PATCH] 保安公司修改  字段, 加处罚,资格审查调整  搜索 字段  成绩查询  保安服务单位   报名列表

---
 src/views/qualificationExamination/registrationTrainingQuery.vue |   87 ++++++++++++++++++++++++++-----------------
 1 files changed, 52 insertions(+), 35 deletions(-)

diff --git a/src/views/qualificationExamination/registrationTrainingQuery.vue b/src/views/qualificationExamination/registrationTrainingQuery.vue
index a83e357..eded444 100644
--- a/src/views/qualificationExamination/registrationTrainingQuery.vue
+++ b/src/views/qualificationExamination/registrationTrainingQuery.vue
@@ -120,7 +120,7 @@
           // },//上面不显示
           {
             label: "姓名",
-            prop: "name",
+            prop: "realName",
             width: 100,
             searchLabelWidth: 50,
             rules: [
@@ -206,34 +206,34 @@
             //     trigger: "blur"
             // }],
           },
-          {
-            label: "体重(kg)",
-            prop: "weight",
-            width: 90,
-            rules: [
-              {
-                required: true,
-                message: "请输入体重",
-                trigger: "blur",
-              },
-            ],
-            // addDisplay: true,
-            // editDisplay: true,
-            // viewDisplay: true,
-            // searchSpan: 5,
-            // dicUrl: "/api/blade-system/dict-biz/dictionary?code=experienceType",
-            // props: {
-            //     label: "dictValue",
-            //     value: "dictKey"
-            // },
-            // search: true,
-            // type: "select",
-            // rules: [{
-            //     required: true,
-            //     message: "请选择工作经验",
-            //     trigger: "blur"
-            // }],
-          },
+          // {
+          //   label: "体重(kg)",
+          //   prop: "weight",
+          //   width: 90,
+          //   rules: [
+          //     {
+          //       required: true,
+          //       message: "请输入体重",
+          //       trigger: "blur",
+          //     },
+          //   ],
+          //   // addDisplay: true,
+          //   // editDisplay: true,
+          //   // viewDisplay: true,
+          //   // searchSpan: 5,
+          //   // dicUrl: "/api/blade-system/dict-biz/dictionary?code=experienceType",
+          //   // props: {
+          //   //     label: "dictValue",
+          //   //     value: "dictKey"
+          //   // },
+          //   // search: true,
+          //   // type: "select",
+          //   // rules: [{
+          //   //     required: true,
+          //   //     message: "请选择工作经验",
+          //   //     trigger: "blur"
+          //   // }],
+          // },
           {
             label: "电话",
             prop: "phone",
@@ -265,9 +265,15 @@
             // overHidden: true
           },
           {
-            label: "学历证书",
-            prop: "academicUrl",
+            label: "学历",
+            prop: "education",
             width: 110,
+            type: "select",
+            dicUrl: "/api/blade-system/dict-biz/dictionary?code=xueliType",
+            props: {
+              label: "dictValue",
+              value: "dictKey",
+            },
             rules: [
               {
                 required: true,
@@ -281,7 +287,7 @@
             // searchSpan: 4,
           },
           {
-            label: "组织机构",
+            label: "保安公司",
             prop: "deptId",
             // width: 70,
             // search: true,
@@ -293,7 +299,7 @@
               value: "id",
             },
             // search: true,
-            type: "select",
+            // type: "tree",
             rules: [
               {
                 required: true,
@@ -305,7 +311,7 @@
           },
           {
             label: "培训公司名称",
-            prop: "trainingUnitName",
+            prop: "trainUnitName",
             rules: [
               {
                 required: true,
@@ -501,6 +507,10 @@
     refreshChange() {
       this.onLoad(this.page, this.query);
     },
+    getyears() {
+      var d = new Date();
+      return d.getFullYear();
+    },
     onLoad(page, params = {}) {
       // this.loading = false;
       this.loading = true;
@@ -511,7 +521,14 @@
       ).then((res) => {
         const data = res.data.data;
         this.page.total = data.total;
-        this.data = data.records;
+        var d = data.records;
+        for (var k in d) {
+          // if(d[k])
+          var sfz = d[k].idCardNo.substring(6, 10);
+          d[k]["age"] = this.getyears() - sfz;
+          // console.log(this.getyears());
+        }
+        this.data = d;
         console.log(this.data, "getLispereregistrationTrainingQuery");
         this.loading = false;
         // this.selectionClear();

--
Gitblit v1.9.3