From 5fdf2847acbd899888ec36c5e1ec7ed64c35d378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 10 Jul 2025 17:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 8 +++ src/main.js | 3 + src/utils/common.js | 15 ++++- src/views/sanqing/index.html | 1 - src/views/sanqing/main-gis/index.html | 3 +- src/views/sanqing/main-gis/index.js | 83 +++++++++++++++++++++++---- src/views/sanqing/popover/index.html | 69 +++++++++++++--------- src/views/sanqing/popover/index.js | 15 ++++- src/views/sanqing/popover/index.scss | 20 +++++++ 9 files changed, 173 insertions(+), 44 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index fbea89b..1d992f7 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -7,3 +7,11 @@ export function getStatistic (query) { params: query }) } + +export function getThreeList (query) { + return request({ + url: '/api/asset/three/listNoParams', + method: 'get', + params: query + }) +} diff --git a/src/main.js b/src/main.js index e5ab2e8..cf6a776 100644 --- a/src/main.js +++ b/src/main.js @@ -13,6 +13,7 @@ import message from '@/utils/message.js'; // import '@/permission'; // permission control import VScaleScreen from 'v-scale-screen'; import { getDicts } from "@/api/system/dict/data"; +import { selectDictLabel } from "@/utils/common"; // 过滤器 Object.keys(filters).forEach(key => { Vue.filter(key, filters[key]); @@ -37,6 +38,8 @@ Vue.use(ElementUI); // Vue.use(Dropdown); Vue.use(VScaleScreen); +Vue.prototype.selectDictLabel = selectDictLabel + // 全局方法挂载 Vue.prototype.getDicts = getDicts new Vue({ diff --git a/src/utils/common.js b/src/utils/common.js index c7b1834..926eae5 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -11,7 +11,7 @@ export function startAnim (ev) { /** * 生成uuid - * @returns + * @returns */ export function generateUUID () { var d = new Date().getTime(); //Timestamp @@ -140,3 +140,16 @@ export function getDay (_date, fmt) { } return fmt; } + +// 回显数据字典 +export function selectDictLabel(datas, value) { + + var actions = []; + Object.keys(datas).some((key) => { + if (datas[key].dictValue == ('' + value)) { + actions.push(datas[key].dictLabel); + return true; + } + }) + return actions.join(''); +} diff --git a/src/views/sanqing/index.html b/src/views/sanqing/index.html index db8b5e5..2c4317f 100644 --- a/src/views/sanqing/index.html +++ b/src/views/sanqing/index.html @@ -11,7 +11,6 @@
资产编码
-11111111
+{{data.zcdm}}
资产名称
-11111111
+{{data.zcmc}}
三清类型
-11111111
+{{data.threeAssetType}}
资产类型
-11111111
+{{data.threeDetailType}}
用地面积
-11111111
+用地面积(亩)
+{{data.ydmj}}
建筑面积(㎡)
-11111111
+{{data.jzmj}}
所在组
-11111111
+{{data.szz}}
权属性质
-11111111
+{{data.natureOwnership}}
权属是否存在争议
-11111111
+{{data.qssfczzy}}
权属主体
-11111111
+{{data.qszt}}
是否委托代管
-11111111
+{{data.sfwtdg}}
联系电话
-11111111
+{{data.lxdh}}
23年盘活方式
-11111111
+{{data.phfs23}}
23年效益(万元)
-11111111
+{{data.xy23}}
24年盘活方式
-11111111
+{{data.phfs24}}
24年效益(万元)
-11111111
+{{data.xy24}}
盘活情况
-11111111
+{{data.phqk}}
资产闲置原因
-11111111
+{{data.xzyy}}
是否能正常使用
-11111111
+{{data.sfnzcsy}}
完善后使用
-11111111
+{{data.wshsy}}
不能使用
-11111111
+{{data.bnsy}}
盘活措施
-11111111
+{{data.phcs}}
盘活时限
-11111111
+{{data.phsx}}
资产统计年度
-11111111
+{{data.zctjnd}}
备注
-11111111
+{{data.bz}}
+附件
+
+
+
+
+