|
@@ -12,7 +12,7 @@
|
|
<template #region>
|
|
<template #region>
|
|
<!-- clearable -->
|
|
<!-- clearable -->
|
|
<el-cascader
|
|
<el-cascader
|
|
- v-model="pageObj.id"
|
|
|
|
|
|
+ v-model="pageObj.xzqh"
|
|
:show-all-levels="false"
|
|
:show-all-levels="false"
|
|
:options="store.state.region_tree"
|
|
:options="store.state.region_tree"
|
|
placeholder="行政区"
|
|
placeholder="行政区"
|
|
@@ -81,9 +81,7 @@
|
|
import tablePage from "@/components/mapView/tablePage.vue";
|
|
import tablePage from "@/components/mapView/tablePage.vue";
|
|
import customForm from "@/components/mapView/custom-form.vue";
|
|
import customForm from "@/components/mapView/custom-form.vue";
|
|
import handleModal from "./handleModal.vue";
|
|
import handleModal from "./handleModal.vue";
|
|
-import { GetPage } from "@/api/ghss/hgxfx.js";
|
|
|
|
-import { GetXzResList } from "../../../api/ghss/ghxz.js";
|
|
|
|
-
|
|
|
|
|
|
+import { GetList } from "@/api/Idleland.js";
|
|
import { ysForm, xzForm, TableHeader, TableHeader2 } from "./config";
|
|
import { ysForm, xzForm, TableHeader, TableHeader2 } from "./config";
|
|
let dataSources;
|
|
let dataSources;
|
|
export default {
|
|
export default {
|
|
@@ -103,13 +101,13 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
pageObj: {
|
|
pageObj: {
|
|
- kssj: "",
|
|
|
|
- sj: [],
|
|
|
|
- jssj: "",
|
|
|
|
- xmmc: "",
|
|
|
|
- page: 1,
|
|
|
|
|
|
+ key: "",
|
|
|
|
+ xzqh: "4602",
|
|
|
|
+ xzyy: "",
|
|
|
|
+ czzt: "",
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
},
|
|
},
|
|
-
|
|
|
|
datalist: [{}],
|
|
datalist: [{}],
|
|
formConfig: ysForm,
|
|
formConfig: ysForm,
|
|
cloumn: TableHeader,
|
|
cloumn: TableHeader,
|
|
@@ -154,62 +152,26 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
this.formConfig = this.$props.type == 0 ? ysForm : xzForm;
|
|
this.formConfig = this.$props.type == 0 ? ysForm : xzForm;
|
|
this.cloumn = this.$props.type == 0 ? TableHeader : TableHeader2;
|
|
this.cloumn = this.$props.type == 0 ? TableHeader : TableHeader2;
|
|
- this.getData();
|
|
|
|
|
|
+ this.getTableData();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- changetype() {
|
|
|
|
- // switch (this.$props.type) {
|
|
|
|
- // case 0:
|
|
|
|
- // this.formConfig = ysForm;
|
|
|
|
- // break;
|
|
|
|
- // case 1:
|
|
|
|
- // this.formConfig = xzForm;
|
|
|
|
- // break;
|
|
|
|
- // case 2:
|
|
|
|
- // this.formConfig = ysForm;
|
|
|
|
- // break;
|
|
|
|
- // default:
|
|
|
|
- // break;
|
|
|
|
- // }
|
|
|
|
|
|
+ searchFun(page) {
|
|
|
|
+ this.getTableData({
|
|
|
|
+ pageNum: page.pageIndex,
|
|
|
|
+ pageSize: page.size,
|
|
|
|
+ ...this.pageObj,
|
|
|
|
+ });
|
|
},
|
|
},
|
|
- getData() {
|
|
|
|
|
|
+ getTableData() {
|
|
this.$emit("updateParent", "loading", true);
|
|
this.$emit("updateParent", "loading", true);
|
|
- if (this.$props.type == "hgxfx") {
|
|
|
|
- GetPage({ ...this.pageObj }).then((res) => {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.$emit("updateParent", "loading", false);
|
|
|
|
- }, 100);
|
|
|
|
- this.listdisabled = res.data.length < 10;
|
|
|
|
- this.datalist = [...this.datalist, ...res.data];
|
|
|
|
- });
|
|
|
|
- } else if (this.$props.type == "ghxz") {
|
|
|
|
- //规划选址历史记录
|
|
|
|
- let tempObj = { ...this.pageObj };
|
|
|
|
- let obj = {
|
|
|
|
- startTime: tempObj.kssj,
|
|
|
|
- endTime: tempObj.jssj,
|
|
|
|
- name: tempObj.xmmc,
|
|
|
|
- pageNum: this.pageObj.page,
|
|
|
|
- pageSize: 10,
|
|
|
|
- };
|
|
|
|
- GetXzResList(obj).then((res) => {
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // this.$emit("updateParent", "loading", false);
|
|
|
|
- // }, 100);
|
|
|
|
- // this.datalist = [...this.datalist, ...res.data.items];
|
|
|
|
- });
|
|
|
|
- } else if (this.$props.type == "gdbh") {
|
|
|
|
- //耕保历史记录
|
|
|
|
- // SelectGdbhList({ ...this.pageObj }).then((res) => {
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // this.$emit("updateParent", "loading", false);
|
|
|
|
- // }, 100);
|
|
|
|
- // if (res.code == 200) {
|
|
|
|
- // this.listdisabled = res.rows.length < 10;
|
|
|
|
- // this.datalist = [...this.datalist, ...res.rows];
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.$props.type == 0) {
|
|
|
|
+ GetList(this.pageObj).then((res) => {
|
|
|
|
+ this.$emit("updateParent", "loading", false);
|
|
|
|
+ this.table = res.data;
|
|
|
|
+ });
|
|
|
|
+ // } else if (this.$props.type == "ghxz") {
|
|
|
|
+ // } else if (this.$props.type == "gdbh") {
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
addPolygon(geojson) {},
|
|
addPolygon(geojson) {},
|
|
reset() {
|
|
reset() {
|
|
@@ -227,7 +189,7 @@ export default {
|
|
},
|
|
},
|
|
changerdxz() {
|
|
changerdxz() {
|
|
this.rdxz = !this.rdxz;
|
|
this.rdxz = !this.rdxz;
|
|
- this.getData();
|
|
|
|
|
|
+ this.getTableData();
|
|
},
|
|
},
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|