Browse Source

整治预检历史记录

maxiaoxiao 6 months ago
parent
commit
89b1aa5bee
1 changed files with 12 additions and 3 deletions
  1. 12 3
      src/views/complianceAnalysis/components/lsjl.vue

+ 12 - 3
src/views/complianceAnalysis/components/lsjl.vue

@@ -87,6 +87,7 @@ import { GetPage, Delect } from "@/api/ghss/hgxfx.js";
 import { Message, MessageBox } from "element-ui";
 import { GetXzResList, DelXzRes } from "../../../api/ghss/ghxz.js";
 import { SelectGdbhList, DeleteGdbh } from "../../../api/ghss/gdbh.js";
+import { getyjlist, deleteyj } from "@/api/stxf/tdzz.js";
 let dataSources;
 export default {
   props: {
@@ -165,6 +166,14 @@ export default {
               }
             });
           }
+          if (this.$props.type == "check") {
+            deleteyj(item.bsm).then((res) => {
+              if (res.code == 200) {
+                Message.success("删除成功!");
+                this.changeForm();
+              }
+            });
+          }
         })
         .catch(() => {});
     },
@@ -259,12 +268,12 @@ export default {
           }
         });
       } else if (this.$props.type == "check") {
-        GetPage({ ...this.pageObj }).then((res) => {
+        getyjlist({ ...this.pageObj }).then((res) => {
           setTimeout(() => {
             this.$emit("updateParent", "loading", false);
           }, 100);
-          this.listdisabled = res.data.length < 10;
-          this.datalist = [...this.datalist, ...res.data];
+          this.listdisabled = res.total < 10;
+          this.datalist = [...this.datalist, ...res.rows];
         });
       }
     },