From dd918b4d0821873fbb2b60c9f7c8f538cfaef116 Mon Sep 17 00:00:00 2001 From: RenCheng Date: Sat, 8 Mar 2025 12:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=A4=E4=BA=92=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/dataCataloguing.vue | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/views/data/dataCataloguing.vue b/src/views/data/dataCataloguing.vue index 602a4ef..5992081 100644 --- a/src/views/data/dataCataloguing.vue +++ b/src/views/data/dataCataloguing.vue @@ -2,11 +2,11 @@ - + - + {{ d.tagName }} @@ -30,6 +30,7 @@ - + @@ -72,6 +73,7 @@ size="middle" :row-selection="rowSelection" bordered + :loading="loading" :rowKey="getRowKey" :pagination="false" :scroll="{ y: 800 }" @@ -122,6 +124,8 @@ import get from 'lodash.get' dataRefsSources:[], dataSource:[ ], + tagloading:false, + loading:false, columns: [ { title: '表名', @@ -215,13 +219,16 @@ import get from 'lodash.get' this.tagselectedRowKeys = selectedRowKeys this.tagselectedRowData = row }, + gattable(){ + this.getalltable(); + this.gettagTables(); + }, getdatatagSources(){ idcTableTaglist(this.tagqueryParam).then((res) => { if (res.success) { this.datatagSources = res.result.records; this.queryRefsParam.tagId = res.result.records[0].id; - this.getalltable(); - this.gettagTables(); + this.gattable(); } else { this.$message.warning(res.message); } @@ -234,6 +241,7 @@ import get from 'lodash.get' } }); }, + addtag(){ var that = this; this.selectedRowData.forEach(item => { @@ -243,8 +251,7 @@ import get from 'lodash.get' "schemaName": item.schemaName }).then((res) => { if (res.success) { - that.getalltable(); - that.gettagTables(); + that.gattable(); } else { that.$message.warning(res.message); } @@ -256,8 +263,7 @@ import get from 'lodash.get' this.tagselectedRowKeys.forEach(item => { idcTableTagRefdelete({id: item}).then((res) => { if (res.success) { - that.getalltable(); - that.gettagTables(); + that.gattable(); } else { that.$message.warning(res.message); } @@ -266,21 +272,25 @@ import get from 'lodash.get' }, getalltable(){ this.queryParam.tagId = this.queryRefsParam.tagId + this.loading = true; getAllTable(this.queryParam).then((res) => { if (res.success) { this.dataSource = res.result; } else { this.$message.warning(res.message); } + this.loading = false; }); }, gettagTables(){ + this.tagloading = true; getTableTagRefs(this.queryRefsParam).then((res) => { if (res.success) { this.dataRefsSources = res.result.records; } else { this.$message.warning(res.message); } + this.tagloading = false; }); }, }