Bladeren bron

列表调整

maxiaoxiao 7 maanden geleden
bovenliggende
commit
44a7ec257b

+ 1 - 0
src/components/mapView/tablePage.vue

@@ -21,6 +21,7 @@
         :key="index"
         show-overflow-tooltip
         :width="item.width || null"
+        :fixed="item.fixed"
       >
         <template #default="scope">
           <slot

+ 4 - 3
src/views/Idleland/components/config.js

@@ -60,10 +60,11 @@ export const TableHeader = [
   { label: "操作", prop: "PHONE", slot: "action" },
 ]
 export const TableHeader2 = [
-  { label: "土地使用权人", prop: "srf", },
+  { label: "项目名称", prop: "xmmc" },
+  { label: "土地使用权人", prop: "srf",  },
   { label: "面积(亩)", prop: "crmj", width: '80px', slot: "mj" },
-  { label: "土地证号", prop: "cqzh" },
-  { label: "操作", prop: "PHONE", slot: "action" },
+  // { label: "土地证号", prop: "cqzh" },
+  { label: "操作", prop: "PHONE", slot: "action", fixed: "right", width: '100px' },
 ]
 
 // 详情字段

+ 3 - 6
src/views/Idleland/components/list.vue

@@ -136,10 +136,7 @@ export default {
   mounted() {
     this.formConfig = this.$props.type == 0 ? ysForm : xzForm;
     this.cloumn = this.$props.type == 0 ? TableHeader : TableHeader2;
-    this.pageObj.isConfirm = this.$props.type != 0;
-    this.pageObj.isDisposal = this.$props.type == 2;
-    this.pageObj.startTime = store.state.cockpit_date[0];
-    this.pageObj.endTime = store.state.cockpit_date[1];
+    this.reset();
   },
   methods: {
     searchFun(page = {}) {
@@ -232,8 +229,8 @@ export default {
         pageNum: 1,
         pageSize: 10,
         isDisposal: this.$props.type == 2,
-        startTime: store.state.cockpit_date[0],
-        endTime: store.state.cockpit_date[1],
+        // startTime: store.state.cockpit_date[0],
+        // endTime: store.state.cockpit_date[1],
       };
     },
     detail(row) {

+ 4 - 4
src/views/Idleland/components/tjzl.vue

@@ -83,8 +83,8 @@ export default {
       this.$emit("updateParent", "loading", true);
       this.params = {
         districtCode: this.region,
-        startTime: store.state.cockpit_date[0],
-        endTime: store.state.cockpit_date[1],
+        // startTime: store.state.cockpit_date[0],
+        // endTime: store.state.cockpit_date[1],
       };
       this.GetOverview();
       if (this.region == "4602") this.GetDistrict();
@@ -106,8 +106,8 @@ export default {
       district(this.params).then((res) => {
         res.data.forEach((jdData) => {
           this.jdData.x_data.push(jdData.districtName);
-          this.jdData.result[0].push(jdData.confirmAre);
-          this.jdData.result[1].push(jdData.disposalArea);
+          this.jdData.result[0].push(jdData.confirmAre.toFixed(2));
+          this.jdData.result[1].push(jdData.disposalArea.toFixed(2));
           this.jdData.result[2].push((jdData.idleRate * 100).toFixed(2));
           this.jdData.result[3].push((jdData.disposalRate * 100).toFixed(2));
         });