From 208246a88f9ef91a45d540f0101f016cf782edd2 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Thu, 09 Dec 2021 11:22:20 +0800
Subject: [PATCH] 现实表现及资格审查参数更改

---
 src/views/home/index.vue |   38 +++++++++++++++++++++++++++++---------
 src/api/index/index.js   |    8 ++++++++
 2 files changed, 37 insertions(+), 9 deletions(-)

diff --git a/src/api/index/index.js b/src/api/index/index.js
index e1668cb..ab8b2e1 100644
--- a/src/api/index/index.js
+++ b/src/api/index/index.js
@@ -184,3 +184,11 @@
     params: param
   })
 }
+// 现实表现弹窗接口
+export const xsbxPages = params => {
+  return request({
+    url: "/api/information/selectBxc",
+    method: "post",
+    params: params
+  });
+};
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index fe40664..36308d9 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -755,6 +755,7 @@
   seCountI,
   selectExtypeUser,
   qualificationPages,
+  xsbxPages,
   selectCf,
   selectCl,
   selectYs,
@@ -889,7 +890,7 @@
       );
     },
     getCarPosition() {
-      getNewPosition({ type: 2, workerId: "861636056082414" }).then(result => {
+      getNewPosition({ type: 2, workerId: "赣AD77669" }).then(result => {
         var res = result.data.data;
         if (JSON.stringify(res) != "{}") {
           this.carGps = {
@@ -1222,6 +1223,7 @@
               cardNumber: m.gunNum,
               id: m.id
             };
+            debugger
             this.mapData[3]["geoData"].push([
               Number(m.longitude),
               Number(m.latitude)
@@ -1329,7 +1331,7 @@
         this.getPunishList(1);
       } else if (type === "xs") {
         this.gridData.title = "现实表现差人员清单";
-        this.getQualificationPages(1);
+        this.getXsbxPages(1);
       }
     },
     getWgTable() {
@@ -1390,7 +1392,7 @@
       });
     },
     changePage(page) {
-      if (this.gridData.type === "zg" || this.gridData.type === "xs") {
+      if (this.gridData.type === "zg") {
         this.getQualificationPages(page);
       } else if (this.gridData.type === "wg") {
         this.gridData.data = this.dialogTable.wgTable.slice(
@@ -1411,7 +1413,29 @@
         this.getPunishList(page);
       } else if (this.gridData.type === "ywdx_gs") {
         this.showDialogTable(this.gridData.type);
+      } else if (this.gridData.type === "xs") {
+        this.getXsbxPages(page);
       }
+    },
+  // 现实表现差弹框
+    getXsbxPages(page) {
+      this.gridData.current = page;
+      this.dialogloading = true;
+      this.gridData.data = [];
+      let types = this.poorPerformanceType.toString()
+      let params = {
+        current: this.gridData.current,
+        size: 10,
+        jurisdiction: this.value1,
+        type:types
+      };
+      xsbxPages(params).then(res => {
+        if (res.data.code === 200) {
+          this.gridData.data = res.data.data.records;
+          this.gridData.total = res.data.data.total;
+        }
+        this.dialogloading = false;
+      });
     },
     getQualificationPages(page) {
       this.gridData.current = page;
@@ -1420,13 +1444,9 @@
       let params = {
         current: this.gridData.current,
         size: 10,
-        jurisdiction: this.value1
+        jurisdiction: this.value1,
+        examinationType: 1
       };
-      if (this.gridData.type === "zg") {
-        Object.assign(params, { examinationType: 1 });
-      } else if (this.gridData.type === "xs") {
-        Object.assign(params, { score: 3 });
-      }
       qualificationPages(params).then(res => {
         if (res.data.code === 200) {
           this.gridData.data = res.data.data.records;

--
Gitblit v1.9.3