|
@@ -75,6 +75,7 @@
|
|
import { GetPage, GetFxjg, Delect } from "@/api/ghss/hgxfx.js";
|
|
import { GetPage, GetFxjg, Delect } from "@/api/ghss/hgxfx.js";
|
|
import { Message, MessageBox } from "element-ui";
|
|
import { Message, MessageBox } from "element-ui";
|
|
import { rest } from "lodash";
|
|
import { rest } from "lodash";
|
|
|
|
+import { GetXzResList } from "../../../api/ghss/ghxz.js";
|
|
let dataSources;
|
|
let dataSources;
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
@@ -146,6 +147,9 @@ export default {
|
|
this.$emit("updateParent", "nowObj", item);
|
|
this.$emit("updateParent", "nowObj", item);
|
|
let next = this.$props.type == "hgxfx" ? "scjg" : "xzjg";
|
|
let next = this.$props.type == "hgxfx" ? "scjg" : "xzjg";
|
|
this.$emit("updateParent", "activeTabs", next);
|
|
this.$emit("updateParent", "activeTabs", next);
|
|
|
|
+ if (this.$props.type != "hgxfx") {
|
|
|
|
+ this.bus.$emit("xzjgBSM", item.bsm);
|
|
|
|
+ }
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
},
|
|
},
|
|
@@ -159,6 +163,8 @@ export default {
|
|
this.$emit("updateParent", "loading", true);
|
|
this.$emit("updateParent", "loading", true);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.getData();
|
|
this.getData();
|
|
|
|
+ console.log(111);
|
|
|
|
+
|
|
}, 500);
|
|
}, 500);
|
|
},
|
|
},
|
|
changeForm() {
|
|
changeForm() {
|
|
@@ -179,15 +185,30 @@ export default {
|
|
|
|
|
|
getData() {
|
|
getData() {
|
|
this.$emit("updateParent", "loading", true);
|
|
this.$emit("updateParent", "loading", true);
|
|
- GetPage({ ...this.pageObj }).then((res) => {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.$emit("updateParent", "loading", false);
|
|
|
|
- }, 100);
|
|
|
|
- // this.pageObj.total = res.recordstotal;
|
|
|
|
- // this.pageObj.page = res.page;
|
|
|
|
- // this.pageObj.allpage = res.totalpages;
|
|
|
|
- this.datalist = [...this.datalist, ...res.data];
|
|
|
|
- });
|
|
|
|
|
|
+ if (this.$props.type == "hgxfx") {
|
|
|
|
+ GetPage({ ...this.pageObj }).then((res) => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$emit("updateParent", "loading", false);
|
|
|
|
+ }, 100);
|
|
|
|
+ this.datalist = [...this.datalist, ...res.data];
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ let tempObj = { ...this.pageObj }
|
|
|
|
+ console.log(tempObj.page,'tempObj.page');
|
|
|
|
+ let obj = {
|
|
|
|
+ startTime: tempObj.kssj,
|
|
|
|
+ endTime: tempObj.jssj,
|
|
|
|
+ name: tempObj.xmmc,
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ };
|
|
|
|
+ GetXzResList(obj).then((res) => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$emit("updateParent", "loading", false);
|
|
|
|
+ }, 100);
|
|
|
|
+ this.datalist = res.data.items;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
zoomItem(item) {
|
|
zoomItem(item) {
|
|
this.now = item.bsm;
|
|
this.now = item.bsm;
|
|
@@ -214,6 +235,15 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
|
|
+ beforeDestroy() {
|
|
|
|
+ this.pageObj = {
|
|
|
|
+ kssj: "",
|
|
|
|
+ sj: [],
|
|
|
|
+ jssj: "",
|
|
|
|
+ xmmc: "",
|
|
|
|
+ page: 1,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|