From 8858f4f8a592ae81bbbefa0e86c8ccb37d747186 Mon Sep 17 00:00:00 2001 From: hekaiyu <13673834656@163.com> Date: Sun, 22 Jun 2025 02:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/dataCleansing.vue | 12 +++++++- src/views/data/dataManage.vue | 7 +++-- src/views/data/thematicLibrary.vue | 10 +++---- .../dataSearch/applicationlibrary/index.vue | 19 ++++++++---- .../dataSearch/integrationlibrary/index.vue | 29 +++++++++++-------- src/views/dataSearch/sourceDatabase/index.vue | 7 +++-- 6 files changed, 55 insertions(+), 29 deletions(-) diff --git a/src/views/data/dataCleansing.vue b/src/views/data/dataCleansing.vue index 1cefc03..519155e 100644 --- a/src/views/data/dataCleansing.vue +++ b/src/views/data/dataCleansing.vue @@ -5,7 +5,7 @@
- + {{ d.cnName }}   @@ -100,6 +100,8 @@ export default { websock: {}, datatypequeryParam: { schemaMass: "", + mdl: "", + hn: "", sourceType: 1 }, dataTypeList:[], @@ -189,11 +191,16 @@ export default { this.dataTypeList =this.existingDataTypes[value][this.shipNumber[0]] this.cleaningData.shipNumber = this.shipNumber[0] this.cleaningData.dataType = this.dataTypeList[0].enName + + this.datatypequeryParam.mdl = value + this.datatypequeryParam.hn = this.shipNumber[0] }, changeshipNumber(value) { this.dataTypeList =this.existingDataTypes[this.cleaningData.shipModel][value] this.cleaningData.shipNumber = value this.cleaningData.dataType = this.dataTypeList[0].enName + + this.datatypequeryParam.hn = value }, calculateScrollY() { // 获取父容器高度(需减去表格内其他元素的高度,如分页栏) @@ -252,6 +259,9 @@ export default { this.cleaningData.shipModel = this.shipModel[0] this.cleaningData.shipNumber = this.shipNumber[0] this.cleaningData.dataType = this.dataTypeList[0].enName + + this.datatypequeryParam.mdl = this.shipModel[0] + this.datatypequeryParam.hn = this.shipNumber[0] } else { this.$message.warning(res.message); } diff --git a/src/views/data/dataManage.vue b/src/views/data/dataManage.vue index f95e71c..5727db2 100644 --- a/src/views/data/dataManage.vue +++ b/src/views/data/dataManage.vue @@ -202,9 +202,10 @@ getselect(){ getAction("/dataType/getExistingDataTypes", {}).then((res) => { if (res.success) { - this.dataTypedataSources = res.result.result.DATA_CONN_STANDARD - if(res.result.result.DATA_CONN_STANDARD.length > 0){ - this.datatypequeryParam.schemaMass = res.result.result.DATA_CONN_STANDARD[0].cnName + console.log(res) + this.dataTypedataSources = res.result.result.standard + if(res.result.result.standard.length > 0){ + this.datatypequeryParam.schemaMass = res.result.result.standard[0].cnName } this.getTables(); } else { diff --git a/src/views/data/thematicLibrary.vue b/src/views/data/thematicLibrary.vue index bc0a834..10c3a8d 100644 --- a/src/views/data/thematicLibrary.vue +++ b/src/views/data/thematicLibrary.vue @@ -79,7 +79,7 @@ { title: '数据类型', align: "center", - dataIndex: 'tableMessName', + dataIndex: 'schemaDesc', customRender: () => { return this.datatypequeryParam.schemaDesc; } @@ -109,10 +109,10 @@ getselect(){ getAction("/dataType/getExistingDataTypes", {}).then((res) => { if (res.success) { - 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.dataTypedataSources = res.result.result.special + if(res.result.result.special.length > 0){ + this.datatypequeryParam.schemaMass = res.result.result.special[0].enName + this.datatypequeryParam.schemaDesc = res.result.result.special[0].cnName } this.getTables(); } else { diff --git a/src/views/dataSearch/applicationlibrary/index.vue b/src/views/dataSearch/applicationlibrary/index.vue index fe0f7d8..247a195 100644 --- a/src/views/dataSearch/applicationlibrary/index.vue +++ b/src/views/dataSearch/applicationlibrary/index.vue @@ -14,7 +14,7 @@ - + {{ d.cnName }} @@ -110,8 +110,9 @@ export default { activeTaskId: null, // 查询条件 queryParam: { - sourceType: 2, + sourceType: 3, schemaMass: null, + schemaDesc: null, massKey: null }, pagination: { @@ -124,6 +125,7 @@ export default { onShowSizeChange: (current, pageSize) => (this.pageSize = pageSize) }, tableParams: { + sourceType: 3, schemaMass: null, tableName: null, startTime: null, @@ -194,7 +196,8 @@ export default { if (res.success) { this.dataTypedataSources = res.result.result.special if (res.result.result.special.length > 0) { - this.queryParam.schemaMass = res.result.result.special[0].cnName + this.queryParam.schemaMass = res.result.result.special[0].enName + this.queryParam.schemaDesc = res.result.result.special[0].cnName } this.getMetaDataTypeTree(); } else { @@ -234,7 +237,7 @@ export default { this.treeDate.push({ key: 'type_' + index, type: 'parentType', - title: element, + title: this.queryParam.schemaDesc, children: childrenList }) }); @@ -242,12 +245,17 @@ export default { }) }, handleTypeChange(value) { + const selectedOption = this.dataTypedataSources.find( + (d) => d.enName === this.queryParam.schemaMass + ) + this.queryParam.schemaDesc = selectedOption?selectedOption.cnName:"" + this.queryParam.schemaMass = value this.getMetaDataTypeTree() }, onSelect(selectedKeys, info) { if (info.node.dataRef.type && info.node.dataRef.type == 'childern') { - this.tableParams.schemaMass = info.node.$parent.dataRef.title + this.tableParams.schemaMass = this.queryParam.schemaMass this.tableParams.tableName = info.node.dataRef.key this.getTableDataList() } @@ -275,7 +283,6 @@ export default { this.$refs.editdataseachForm.initForm(this.tableParams.schemaMass, this.tableParams.tableName, filteredColumn, record); }, getTableDataList() { - console.log(this.tableParams) if (this.tableParams.schemaMass == null || this.tableParams.tableName == null) { this.$message.warning('必须选择查询的表') return diff --git a/src/views/dataSearch/integrationlibrary/index.vue b/src/views/dataSearch/integrationlibrary/index.vue index 35e8ebe..51157ae 100644 --- a/src/views/dataSearch/integrationlibrary/index.vue +++ b/src/views/dataSearch/integrationlibrary/index.vue @@ -218,20 +218,23 @@ export default { ); }, changeshipModel(value) { - this.queryParam.shipModel = value - var number = Object.keys(this.existingDataTypes[value]) - this.shipNumber = [] - number.forEach((element, index) => { - this.shipNumber.push(element); - }); - this.dataTypeList = this.existingDataTypes[value][this.shipNumber[0]] - this.queryParam.mdl = this.shipNumber[0] - this.queryParam.schemaMass = this.dataTypeList[0].cnName + this.queryParam.shipModel = value + var number = Object.keys(this.existingDataTypes[value]) + this.shipNumber = [] + number.forEach((element, index) => { + this.shipNumber.push(element); + }); + this.dataTypeList = this.existingDataTypes[value][this.shipNumber[0]] + this.queryParam.mdl = value + this.queryParam.hn = this.shipNumber[0] + this.queryParam.schemaMass = this.dataTypeList[0].cnName + this.getMetaDataTypeTree() }, changeshipNumber(value) { - this.dataTypeList = this.existingDataTypes[this.queryParam.shipModel][value] - this.queryParam.mdl = value - this.queryParam.schemaMass = this.dataTypeList[0].cnName + this.dataTypeList = this.existingDataTypes[this.queryParam.shipModel][value] + this.queryParam.hn = value + this.queryParam.schemaMass = this.dataTypeList[0].cnName + this.getMetaDataTypeTree() }, getselect() { getAction("/dataType/getExistingDataTypes", {}).then((res) => { @@ -246,6 +249,8 @@ export default { this.shipNumber.push(element); }); this.dataTypeList = this.existingDataTypes[this.shipModel[0]][this.shipNumber[0]] + console.log(this.existingDataTypes) + console.log(this.dataTypeList) this.queryParam.mdl = this.shipModel[0] this.queryParam.hn = this.shipNumber[0] this.queryParam.schemaMass = this.dataTypeList[0].cnName diff --git a/src/views/dataSearch/sourceDatabase/index.vue b/src/views/dataSearch/sourceDatabase/index.vue index 80f02d6..0cd0ae7 100644 --- a/src/views/dataSearch/sourceDatabase/index.vue +++ b/src/views/dataSearch/sourceDatabase/index.vue @@ -225,13 +225,16 @@ export default { this.shipNumber.push(element); }); this.dataTypeList = this.existingDataTypes[value][this.shipNumber[0]] - this.queryParam.mdl = this.shipNumber[0] + this.queryParam.mdl = value + this.queryParam.hn = this.shipNumber[0] this.queryParam.schemaMass = this.dataTypeList[0].cnName + this.getMetaDataTypeTree() }, changeshipNumber(value) { this.dataTypeList = this.existingDataTypes[this.queryParam.shipModel][value] - this.queryParam.mdl = value + this.queryParam.hn = value this.queryParam.schemaMass = this.dataTypeList[0].cnName + this.getMetaDataTypeTree() }, getselect() { getAction("/dataType/getExistingDataTypes", {}).then((res) => {