浏览代码

土地闲置处置接口联调

maxiaoxiao 7 月之前
父节点
当前提交
0a21f0d722

+ 2 - 2
src/views/Idleland/components/config.js

@@ -55,13 +55,13 @@ export const reasonList = [
 ]
 export const TableHeader = [
   { label: "项目名称", prop: "xmmc" },
-  { label: "面积(亩)", prop: "crmj", width: '80px' },
+  { label: "面积(亩)", prop: "crmj", width: '80px', slot: "mj" },
   { label: "约定动工日期", prop: "ydkgsj", },
   { label: "操作", prop: "PHONE", slot: "action" },
 ]
 export const TableHeader2 = [
   { label: "土地使用权人", prop: "srf", },
-  { label: "面积(亩)", prop: "crmj", width: '80px' },
+  { label: "面积(亩)", prop: "crmj", width: '80px', slot: "mj" },
   { label: "土地证号", prop: "cqzh" },
   { label: "操作", prop: "PHONE", slot: "action" },
 ]

+ 1 - 10
src/views/Idleland/components/details.vue

@@ -8,12 +8,7 @@
         </span>
         <i class="el-icon-close" @click="closeInster"></i>
       </div>
-      <el-tabs
-        type="border-card"
-        class="xz_box info"
-        v-model="activeTabs"
-        stretch
-      >
+      <el-tabs type="border-card" class="xz_box" v-model="activeTabs" stretch>
         <el-tab-pane label="基本信息" name="jbxx">
           <Info :data="jbxxData"></Info>
         </el-tab-pane>
@@ -148,10 +143,6 @@ export default {
   width: 400px;
   max-width: 400px;
 }
-.inter_result {
-  // height: 580px;
-  height: 695px;
-}
 
 .sm-function-module-query {
   max-height: 800px !important;

+ 9 - 7
src/views/Idleland/components/info.vue

@@ -1,12 +1,8 @@
 <template>
   <div class="inter_result">
+    <!-- :header-cell-style="cellstyle" -->
     <el-table
-      :header-cell-style="cellstyle"
-      :data="
-        data.length > 0
-          ? data.filter((item) => item.name !== 'id' && item.name !== 'geom')
-          : []
-      "
+      :data="data.filter((item) => item.name !== 'id')"
       height="500"
       :class="fileList ? '' : 'infotabel'"
       style="width: 100%"
@@ -60,7 +56,13 @@ export default {
 };
 </script>
 
-<style>
+<style lang="scss">
+.inter_result {
+  // height: 580px;
+  height: 695px;
+}
+.datatable {
+}
 .infotabel {
   height: 100% !important;
 }

+ 17 - 11
src/views/Idleland/components/list.vue

@@ -64,6 +64,9 @@
       ref="tableDialogRef"
       @currentChange="searchFun"
     >
+      <template #mj="{ row }">
+        {{ Number(row.crmj).toFixed(2) }}
+      </template>
       <template #action="{ row }">
         <span class="usable" @click="detail(row)">详情</span>
         <span class="usable" v-if="type == 0" @click="judge(row)"> 判定 </span>
@@ -125,12 +128,13 @@ export default {
         total: 20,
       },
       now: "",
+      tempdataLayerId: "",
     };
   },
   mounted() {
     this.formConfig = this.$props.type == 0 ? ysForm : xzForm;
     this.cloumn = this.$props.type == 0 ? TableHeader : TableHeader2;
-    this.pageObj.isConfirm = this.$props.type == 2;
+    this.pageObj.isConfirm = this.$props.type != 0;
     this.pageObj.isDisposal = this.$props.type == 2;
   },
   methods: {
@@ -207,7 +211,17 @@ export default {
       // });
     },
 
-    reset() {},
+    reset() {
+      this.pageObj = {
+        key: "",
+        xzqh: "",
+        idleReason: "",
+        isConfirm: this.$props.type != 0,
+        pageNum: 1,
+        pageSize: 10,
+        isDisposal: this.$props.type == 2,
+      };
+    },
     detail(row) {
       this.flyTo(row);
       this.bus.$emit("handleView", row, this.$props.type);
@@ -231,15 +245,7 @@ export default {
       }
     },
   },
-  beforeDestroy() {
-    this.pageObj = {
-      kssj: "",
-      sj: [],
-      jssj: "",
-      xmmc: "",
-      page: 1,
-    };
-  },
+  beforeDestroy() {},
 };
 </script>
 

+ 2 - 6
src/views/Idleland/components/xzgl.vue

@@ -15,7 +15,6 @@
 </template>
 
 <script>
-let dataSources;
 import List from "./list.vue";
 export default {
   components: {
@@ -33,15 +32,12 @@ export default {
     });
   },
   methods: {
-    reset() {
-      // if (dataSources) viewer.dataSources.remove(dataSources);
-      // dataSources = undefined;
-    },
+    reset() {},
   },
   watch: {
     activeTabs(newValue) {
+      this.$refs[newValue].reset();
       this.$refs[newValue].searchFun();
-      // this.$refs.tjzl.getData();
     },
   },
   beforeDestroy() {

+ 0 - 1
src/views/Idleland/index.vue

@@ -54,7 +54,6 @@ export default {
       this[name] = updata;
     },
     handleView(row, type) {
-      console.log("handleView", this.$refs);
       this.$refs.detailModal.handleView(row, type);
     },
   },