From 01dead4fe399f19d5bef4f5ad0e72229e0e6b6b3 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 10 Jan 2023 15:49:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A1=80=E6=BA=90=E5=85=B3=E7=B3=BB):=20?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E9=80=89=E6=A1=86=E4=BF=AE=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=A0=91=E5=BD=A2=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 数据源,数据集,仪表板的名称选框修改为树形结构 https://www.tapd.cn/55578866/prong/stories/view/1155578866001010929 --- frontend/src/views/dataset/group/Group.vue | 4 +- .../src/views/system/datasource/DsTree.vue | 2 +- .../src/views/system/relationship/index.vue | 326 ++++++++++++++---- 3 files changed, 261 insertions(+), 71 deletions(-) diff --git a/frontend/src/views/dataset/group/Group.vue b/frontend/src/views/dataset/group/Group.vue index 2e088cd9c4..11a7277c0e 100644 --- a/frontend/src/views/dataset/group/Group.vue +++ b/frontend/src/views/dataset/group/Group.vue @@ -923,7 +923,7 @@ export default { } } - const { queryType = 'dataset', id } = data + const { queryType = 'dataset', id, name } = data if (checkPermission(['relationship:read'])) { let hasSubRelation = false await getDatasetRelationship(id).then((res) => { @@ -938,7 +938,7 @@ export default { options.templateDel = msgContent options.confirmButtonText = undefined options.type = 'danger' - options.linkTo = this.linkTo.bind(this, { queryType, id }) + options.linkTo = this.linkTo.bind(this, { queryType, id, name }) this.withLink(options, this.$t('commons.delete')) return } diff --git a/frontend/src/views/system/datasource/DsTree.vue b/frontend/src/views/system/datasource/DsTree.vue index b3aa20e810..b546ca3449 100644 --- a/frontend/src/views/system/datasource/DsTree.vue +++ b/frontend/src/views/system/datasource/DsTree.vue @@ -760,7 +760,7 @@ export default { params.link = this.$t('datasource.click_to_check') params.content = this.$t('datasource.cannot_be_deleted_datasource') params.templateDel = msgContent - params.linkTo = this.linkTo.bind(this, { queryType, id }) + params.linkTo = this.linkTo.bind(this, { queryType, id, name: label }) this.withLink(params) return } diff --git a/frontend/src/views/system/relationship/index.vue b/frontend/src/views/system/relationship/index.vue index e94c940330..2394ecf622 100644 --- a/frontend/src/views/system/relationship/index.vue +++ b/frontend/src/views/system/relationship/index.vue @@ -1,11 +1,14 @@