From 6b9717d6a189fd4334f4af71ce98661a82ef4ed7 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 31 Dec 2021 15:33:34 +0800
Subject: [PATCH] 新增用户身份证号码账户校验,考试情况统计修改

---
 src/views/securityAnalysis/child/examination.vue |   54 +++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 39 insertions(+), 15 deletions(-)

diff --git a/src/views/securityAnalysis/child/examination.vue b/src/views/securityAnalysis/child/examination.vue
index c6f46d8..7024111 100644
--- a/src/views/securityAnalysis/child/examination.vue
+++ b/src/views/securityAnalysis/child/examination.vue
@@ -9,6 +9,7 @@
       :option="option1"
       :data="data1"
       :page.sync="page1"
+      :search.sync="search"
       :table-loading="loading1"
       @on-load="getPractitionersPageInfo(page1)"
       @search-change="searchChange"
@@ -36,6 +37,7 @@
         total: 0,
         ...this.$store.state.control.changePageSize,
       },
+      search:{},
       query1: {},
       data1: [],
       option1: {
@@ -64,9 +66,17 @@
             search: true,
           },
           {
+            label: "学校名称",
+            prop: "trainingUnitName",
+            disabled: true,
+            search: true,
+            minWidth:160
+          },
+          {
             label: "考试场次",
             prop: "examName",
             disabled: true,
+            minWidth:160
           },
           {
             label: "考试时间",
@@ -88,14 +98,38 @@
             prop: "allGrade",
             disabled: true,
           },
+          {
+            label: "是否合格",
+            prop: "qualified",
+            type: "select",
+            search: true,
+            searchSpan: 4,
+            dicData: [
+              {
+                label: "合格",
+                value: 0,
+              },
+              {
+                label: "不合格",
+                value: 1,
+              },
+              {
+                label: "暂未录实操成绩",
+                value: 2,
+              },
+              {
+                label: "缺考,成绩无效",
+                value: 3,
+              },
+            ],
+          },
         ],
       },
     };
   },
   methods: {
     getPractitionersPageInfo(page, params = {}) {
-      // this.data1 = this.czdata;
-      // console.log(page);
+      params = this.search;
       params = {
         ...params,
         ...this.card,
@@ -126,19 +160,9 @@
       this.getPractitionersPageInfo(this.page1);
     },
     searchChange(params, done) {
-      if (params.czname == undefined) {
-        this.data1 = this.czdata;
-        done();
-        return;
-      }
-      var text = new RegExp(params.czname, "g"),
-        d = [];
-      for (let k in this.czdata) {
-        if (text.test(this.czdata[k].czname)) {
-          d.push(this.czdata[k]);
-        }
-      }
-      this.data1 = d;
+      this.query1 = params;
+      this.query1.currentPage = 1;
+      this.getPractitionersPageInfo(this.page1, params);
       done();
     },
     searchReset(done) {

--
Gitblit v1.9.3