From cc1c0a396698648256c350f6f0fe2cb2f0b02c7e Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 27 Mar 2024 15:44:10 +0800
Subject: [PATCH] 许可按钮放出,备案审批按钮放出

---
 src/views/qualificationExamination/registrationTrainingQuery.vue |  152 +++++++++++++++++++++++++++++++++-----------------
 1 files changed, 101 insertions(+), 51 deletions(-)

diff --git a/src/views/qualificationExamination/registrationTrainingQuery.vue b/src/views/qualificationExamination/registrationTrainingQuery.vue
index 2054152..e16e3d1 100644
--- a/src/views/qualificationExamination/registrationTrainingQuery.vue
+++ b/src/views/qualificationExamination/registrationTrainingQuery.vue
@@ -1,13 +1,14 @@
-/*
- * @Author: Morpheus
- * @Date: 2021-07-07 17:30:05
- * @Last Modified by: Morpheus
- * @Last Modified time: 2021-07-10 16:06:14
- * menu-name 报名培训查询
- */
+/* * @Author: Morpheus * @Date: 2021-07-07 17:30:05 * @Last Modified by:
+Morpheus * @Last Modified time: 2021-07-10 16:06:14 * menu-name 报名培训查询 */
 <template>
-  <basic-container>
+  <basic-container
+    :class="[
+      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
+    ]"
+  >
     <avue-crud
+      class="tablesss"
       :option="option"
       :table-loading="loading"
       :data="data"
@@ -73,6 +74,7 @@
         pageSize: 10,
         currentPage: 1,
         total: 0,
+        ...this.$store.state.control.changePageSize,
       },
       selectionList: [],
       option: {
@@ -80,7 +82,7 @@
         delBtn: false,
         editBtn: false,
         addBtn: false,
-        selection: false,
+        selection: true,
         menu: false,
 
         searchShowBtn: false,
@@ -94,6 +96,7 @@
         index: true,
         viewBtn: true,
         dialogClickModal: false,
+        ...this.$store.state.control.clearOtherBut,
 
         column: [
           // {
@@ -120,8 +123,9 @@
           // },//上面不显示
           {
             label: "姓名",
-            prop: "name",
-            width: 100,
+            prop: "realName",
+            width: 78,
+            searchLabelWidth: 50,
             rules: [
               {
                 required: true,
@@ -130,7 +134,7 @@
               },
             ],
             search: true,
-            searchSpan: 5,
+            searchSpan: 4,
           },
           {
             label: "性别",
@@ -205,34 +209,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",
@@ -258,15 +262,21 @@
                 trigger: "blur",
               },
             ],
-            width: 160,
+            width: 175,
             // search: true,
             // searchSpan: 4,
             // 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,
@@ -279,9 +289,32 @@
             // search: true,
             // searchSpan: 4,
           },
+          // {
+          //   label: "保安公司",
+          //   prop: "deptId",
+          //   // width: 70,
+          //   // search: true,
+          //   // searchSpan: 4,
+          //   dicUrl:
+          //     "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+          //   props: {
+          //     label: "title",
+          //     value: "id",
+          //   },
+          //   // search: true,
+          //   // type: "tree",
+          //   rules: [
+          //     {
+          //       required: true,
+          //       message: "请输入组织机构",
+          //       trigger: "blur",
+          //     },
+          //   ],
+          //   overHidden: true,
+          // },
           {
-            label: "组织机构",
-            prop: "deptId",
+            label: "企业名称",
+            prop: "deptName",
             // width: 70,
             // search: true,
             // searchSpan: 4,
@@ -292,7 +325,7 @@
               value: "id",
             },
             // search: true,
-            type: "select",
+            // type: "tree",
             rules: [
               {
                 required: true,
@@ -304,7 +337,7 @@
           },
           {
             label: "培训公司名称",
-            prop: "trainingUnitName",
+            prop: "trainUnitName",
             rules: [
               {
                 required: true,
@@ -415,6 +448,9 @@
       return ids.join(",");
     },
   },
+  mounted() {
+    this.$store.commit("setWindowSizeHeightAdd");
+  },
   methods: {
     rowSave(row, done, loading) {
       adddata(row).then(
@@ -500,6 +536,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;
@@ -510,8 +550,19 @@
       ).then((res) => {
         const data = res.data.data;
         this.page.total = data.total;
-        this.data = data.records;
-        console.log(this.data, "getLispereregistrationTrainingQuery");
+        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());
+          if (d[k]["sex"] == -1) {
+            d[k]["sex"] = "";
+          }
+        }
+        this.data = d;
+        // console.log(this.data, "getLispereregistrationTrainingQuery");
+        this.$store.commit("setWindowSizeHeightAdd");
         this.loading = false;
         // this.selectionClear();
       });
@@ -564,5 +615,4 @@
 };
 </script>
 
-<style>
-</style>
+<style></style>

--
Gitblit v1.9.3