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);