From 7692655063cbb653e4fe71dfe7c96562191c5df5 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 11 九月 2023 16:14:50 +0800 Subject: [PATCH] 图层管理详情界面修改,属性信息弹窗修改,空间查询修改 --- src/views/query/SpatialQuery.vue | 39 +++++++++++++++++++++++++++++++++++---- 1 files changed, 35 insertions(+), 4 deletions(-) diff --git a/src/views/query/SpatialQuery.vue b/src/views/query/SpatialQuery.vue index e8f81bb..ae5b9ac 100644 --- a/src/views/query/SpatialQuery.vue +++ b/src/views/query/SpatialQuery.vue @@ -77,7 +77,7 @@ > <template #default="scope"> <el-button - :icon="Location" + class="el-icon-map" size="small" @click.prevent="spaceLocation(scope.$index, scope.row)" > @@ -513,7 +513,19 @@ return ElMessage.error("绌洪棿鏌ヨ澶辫触"); } listData.value.count = data.count; - tableData.value = data.result; + var val = data.result.filter((res) => { + if (res.apprTime) { + res.apprTime = format(res.apprTime); + } + if (res.createtime) { + res.apprTime = format(res.createtime); + } + if (res.updatetime) { + res.apprTime = format(res.updatetime); + } + return res; + }); + tableData.value = val; }; const setQueySpatialFields = async () => { @@ -531,8 +543,17 @@ } }); - attributeData.value = std; - fieldOption.value = std; + var val = std.filter((res) => { + if (res.field.indexOf("_") > -1) { + var str = res.field.split("_"); + res.field = str[0] + str[1][0].toUpperCase() + str[1].slice(1); + return res; + } else { + return res; + } + }); + attributeData.value = val; + fieldOption.value = val; conditionChange(data.result[0]); setQueySpatialData(); }; @@ -786,6 +807,16 @@ color: #d6e4ff !important; } } + .el-icon-map { + background: url("../../assets/img/location.png") center no-repeat; + background-size: 100% 100%; + border: transparent; + } + .el-icon-map:before { + content: "瀹氫綅"; + font-size: 0; + visibility: hidden; + } } </style> <style lang="less" > -- Gitblit v1.9.3