|
@@ -1,6 +1,10 @@
|
|
|
<template>
|
|
|
<div class="xzlist">
|
|
|
<div class="tdTitle">整治项目</div>
|
|
|
+ <span class="clearBtn" @click="cockpit">
|
|
|
+ <i class="el-icon-thumb"></i>
|
|
|
+ 图斑详情查询
|
|
|
+ </span>
|
|
|
<custom-form ref="formRef" :model="pageObj" :config="formConfig">
|
|
|
<template #type>
|
|
|
<el-select v-model="pageObj.idleReason" placeholder="项目类型">
|
|
@@ -28,7 +32,6 @@
|
|
|
:cloumn="cloumn"
|
|
|
:table="table"
|
|
|
:indexed="false"
|
|
|
- :showTotal="false"
|
|
|
layout="prev, pager,next"
|
|
|
ref="tableDialogRef"
|
|
|
@currentChange="searchFun"
|
|
@@ -41,7 +44,6 @@
|
|
|
<span class="usable" @click="handle(row)"> 对比 </span>
|
|
|
</template>
|
|
|
</tablePage>
|
|
|
- <!-- <handleModal ref="handleRef" @close="searchFun()"></handleModal> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -49,7 +51,7 @@
|
|
|
import tablePage from "@/components/mapView/tablePage.vue";
|
|
|
import customForm from "@/components/mapView/custom-form.vue";
|
|
|
|
|
|
-import { GetList, idleLandList } from "@/api/Idleland.js";
|
|
|
+import { GetList } from "@/api/Idleland.js";
|
|
|
import { xzForm, TableHeader, reasonList } from "./config";
|
|
|
import { loadGeoJSON } from "@/utils/MapHelper/help.js";
|
|
|
let geoSources = {};
|
|
@@ -57,7 +59,6 @@ export default {
|
|
|
components: {
|
|
|
tablePage,
|
|
|
customForm,
|
|
|
- // handleModal,
|
|
|
},
|
|
|
props: {
|
|
|
type: {
|
|
@@ -85,7 +86,7 @@ export default {
|
|
|
cloumn: TableHeader,
|
|
|
reasonList: reasonList,
|
|
|
table: {
|
|
|
- data: [],
|
|
|
+ data: [{}],
|
|
|
total: 20,
|
|
|
},
|
|
|
now: "",
|
|
@@ -96,6 +97,9 @@ export default {
|
|
|
this.reset();
|
|
|
},
|
|
|
methods: {
|
|
|
+ cockpit() {
|
|
|
+ this.$emit("cockpit");
|
|
|
+ },
|
|
|
searchFun(page = {}) {
|
|
|
this.getTableData({
|
|
|
...this.pageObj,
|
|
@@ -106,27 +110,15 @@ export default {
|
|
|
getTableData() {
|
|
|
this.$emit("updateParent", "loading", true);
|
|
|
this.removeGeoJSON();
|
|
|
- if (this.$props.type == 0) {
|
|
|
- GetList(this.pageObj).then((res) => {
|
|
|
- this.$emit("updateParent", "loading", false);
|
|
|
- this.table = {
|
|
|
- ...res.data,
|
|
|
- total: res.data.count,
|
|
|
- data: res.data.list,
|
|
|
- };
|
|
|
- this.active_tableData(res.data.list);
|
|
|
- });
|
|
|
- } else {
|
|
|
- idleLandList(this.pageObj).then((res) => {
|
|
|
- this.$emit("updateParent", "loading", false);
|
|
|
- this.table = {
|
|
|
- ...res.data,
|
|
|
- total: res.data.count,
|
|
|
- data: res.data.list,
|
|
|
- };
|
|
|
- this.active_tableData(res.data.list);
|
|
|
- });
|
|
|
- }
|
|
|
+ GetList(this.pageObj).then((res) => {
|
|
|
+ this.$emit("updateParent", "loading", false);
|
|
|
+ this.table = {
|
|
|
+ ...res.data,
|
|
|
+ total: res.data.count,
|
|
|
+ data: res.data.list,
|
|
|
+ };
|
|
|
+ this.active_tableData(res.data.list);
|
|
|
+ });
|
|
|
},
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
// if (rowIndex === this.scrollTop_index) {
|
|
@@ -192,13 +184,10 @@ export default {
|
|
|
},
|
|
|
detail(row) {
|
|
|
this.flyTo(row);
|
|
|
- this.bus.$emit("handleView", row, this.$props.type);
|
|
|
- },
|
|
|
- judge(row) {
|
|
|
- this.$refs.handleRef.Init(row, "judge");
|
|
|
+ this.bus.$emit("handleView", row);
|
|
|
},
|
|
|
handle(row) {
|
|
|
- this.$refs.handleRef.Init(row, "deal");
|
|
|
+ this.$emit('contrast', row);
|
|
|
},
|
|
|
changerdxz() {
|
|
|
this.pageObj.isConfirm = !this.pageObj.isConfirm;
|