From c944b75d31800702f57c511c49c76db35949a3b0 Mon Sep 17 00:00:00 2001
From: xy <271556543@qq.com>
Date: Mon, 25 Sep 2023 15:45:18 +0800
Subject: [PATCH] 2023-9-25
---
src/components/XyTable/index.vue | 1 +
src/views/assets/land.vue | 16 +--
src/views/component/imports.vue | 5 -
src/views/component/map.vue | 50 +++++---
src/views/dashboard/index.vue | 190 +++++++++++++++++++++++++++----
5 files changed, 211 insertions(+), 51 deletions(-)
diff --git a/src/components/XyTable/index.vue b/src/components/XyTable/index.vue
index d0a6726..f9079d5 100644
--- a/src/components/XyTable/index.vue
+++ b/src/components/XyTable/index.vue
@@ -995,6 +995,7 @@ export default {
::v-deep .el-table {
margin-bottom: 0 !important;
+
}
.xy-table__setting {
font-size: 14px;
diff --git a/src/views/assets/land.vue b/src/views/assets/land.vue
index d9bde48..cb2bad8 100644
--- a/src/views/assets/land.vue
+++ b/src/views/assets/land.vue
@@ -308,12 +308,12 @@
-
-
-
-
-
-
+
@@ -336,7 +336,7 @@ import headerContent from "@/components/LxHeader/XyContent.vue";
import history from '@/views/assets/history.vue';
import lease from '@/views/assets/lease.vue';
// import drawer from "@/views/component/drawer.vue";
-// import imports from "./imports.vue";
+import imports from "@/views/component/imports.vue";
import atlas from "@/views/assets/atlas.vue";
// import assetsHistoryList from '@/views/assets/assetsHistoryList.vue'
export default {
@@ -349,7 +349,7 @@ export default {
lease,
atlas,
// drawer,
- // imports,
+ imports,
// assetsHistoryList
},
diff --git a/src/views/component/imports.vue b/src/views/component/imports.vue
index 91e71ab..9b47201 100644
--- a/src/views/component/imports.vue
+++ b/src/views/component/imports.vue
@@ -129,11 +129,6 @@ export default {
width: 200
};
});
- this.table.unshift({
- key: 'id',
- title: 'id',
- width: 140
- })
}
},
},
diff --git a/src/views/component/map.vue b/src/views/component/map.vue
index 522b959..02825ad 100644
--- a/src/views/component/map.vue
+++ b/src/views/component/map.vue
@@ -97,9 +97,9 @@
-
-
-
+
+
+
@@ -134,12 +134,13 @@
总共 {{total}} 条
- -
+
-
{{ item.name }}
+
{{ Object.hasOwn(item,'id_house_properties_land_id_relation') ? '土地' : '房产' }}
{{ wxAreas[item.area-1] }}
-
{{ item.shijimianji }} m²
-
房
+
+
{{ item.id_house_properties_land_id_relation ? '权属合一' : '权属分离' }}
{{ jianzhuleixing(item.jianzhuleixing) }}
{{ zichanleixing(item.zichanleixing) }}
@@ -272,7 +273,7 @@ export default {
loading: false,
dragging: false,
searchShow: true,
- hasHouse: 1, //1全部 2有 3无
+ hasHouse: 1, //1土地 2房产 3无
selectList: {
table_name: "assets",
filter: [
@@ -289,7 +290,7 @@ export default {
],
},
select: {
- table_name: "assets",
+ //table_name: "assets",
filter: [
{
key: "suoshuqu",
@@ -382,14 +383,35 @@ export default {
},
async getList() {
this.loading = true;
- const res = await index({
+ let opt = {
page: 1,
page_size: 9999,
...this.select,
- });
- this.total = res.total;
- this.list = res.data;
- this.loading = false;
+ table_name: this.hasHouse === 1 ? 'lands' : 'houses'
+ }
+ if (this.hasHouse === 3) {
+ delete opt.table_name
+
+ let promise = [];
+ promise.push(index({
+ ...opt,
+ table_name: 'lands'
+ }))
+ promise.push(index({
+ ...opt,
+ table_name: 'houses'
+ }))
+
+ const res = await Promise.all(promise)
+ this.total = res.reduce((a,b) => a + b.total,0);
+ this.list = Array.from(res, i => i.data).reduce((a,b) => a.concat(b),[]);
+ this.loading = false;
+ } else {
+ const res = await index(opt);
+ this.total = res.total;
+ this.list = res.data;
+ this.loading = false;
+ }
},
addCluster() {
if (this.cluster) {
@@ -544,7 +566,7 @@ export default {
let custom_form = JSON.parse(decode);
this.customForm.customFormId = custom_form.custom_form_id;
this.customForm.tableName = custom_form.table_name;
- this.select.table_name = custom_form.table_name;
+ //this.select.table_name = custom_form.table_name;
} catch (err) {
console.warn(err);
}
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index b6e8df0..5bb59dc 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -1,20 +1,35 @@
-
+
+
+
+
租凭合同
+
+
+ 临期
+ 已过期
+ 合约中
+
+
+
+
+
+