|
@@ -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];
|
|
|
});
|
|
|
}
|
|
|
},
|