From d9d35c4e5b828e33c193aa75dc863357fed16e24 Mon Sep 17 00:00:00 2001 From: hekaiyu <13673834656@163.com> Date: Sun, 18 May 2025 19:28:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=9856=201.?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=80=9A=E8=BF=87=202.=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E5=88=97?= =?UTF-8?q?=203.=E4=B8=8B=E6=8B=89=E6=A1=86=E5=8F=AA=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E6=8F=8F=E8=BF=B0=EF=BC=8C=E4=B8=8D=E8=A6=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=B8=A6=E5=AD=97=E6=AF=8DSMZGZB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/thematicLibrary.vue | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/views/data/thematicLibrary.vue b/src/views/data/thematicLibrary.vue index 6ce6605..de30a5e 100644 --- a/src/views/data/thematicLibrary.vue +++ b/src/views/data/thematicLibrary.vue @@ -2,9 +2,9 @@
- + - {{ d.enName }} {{ d.cnName }} + {{ d.cnName }}
@@ -45,6 +45,7 @@ contentList:[], datatypequeryParam: { schemaMass:"", + schemaDesc:"", sourceType:3 }, queryParam: { @@ -76,14 +77,12 @@ dataIndex: 'tableMessName' }, { - title: '开始时间', - align:"center", - dataIndex: 'startTime' - }, - { - title: '最后更新时间', - align:"center", - dataIndex: 'endTime' + title: '数据类型', + align: "center", + dataIndex: 'tableMessName', + customRender: () => { + return this.datatypequeryParam.schemaDesc; + } }, { title: '标签类型', @@ -118,6 +117,7 @@ this.dataTypedataSources = res.result.result.DATA_CONN_SPECIAL if(res.result.result.DATA_CONN_SPECIAL.length > 0){ this.datatypequeryParam.schemaMass = res.result.result.DATA_CONN_SPECIAL[0].enName + this.datatypequeryParam.schemaDesc = res.result.result.DATA_CONN_SPECIAL[0].cnName } this.getTables(); } else { @@ -128,6 +128,11 @@ getTables(){ getAction("/dataManager/getDataManagerInfo",this.datatypequeryParam).then((res) => { if (res.result) { + // 根据 enName 查找对应的 cnName + const selectedOption = this.dataTypedataSources.find( + (d) => d.enName === this.datatypequeryParam.schemaMass + ) + this.datatypequeryParam.schemaDesc = selectedOption?selectedOption.cnName:"" this.dataSource = res.result; } else { this.$message.warning(res.message);