diff --git a/core/core-frontend/src/components/dashboard/DbCanvasAttr.vue b/core/core-frontend/src/components/dashboard/DbCanvasAttr.vue index 98c513af1f..425accb0f3 100644 --- a/core/core-frontend/src/components/dashboard/DbCanvasAttr.vue +++ b/core/core-frontend/src/components/dashboard/DbCanvasAttr.vue @@ -168,6 +168,7 @@ const saveSelfSubject = () => { position: absolute; top: 4px; right: 4px; + font-size: 12px; } } diff --git a/core/core-frontend/src/views/template-market/component/TemplateMarketV2Item.vue b/core/core-frontend/src/views/template-market/component/TemplateMarketV2Item.vue index 9de51114a8..fae06963d9 100644 --- a/core/core-frontend/src/views/template-market/component/TemplateMarketV2Item.vue +++ b/core/core-frontend/src/views/template-market/component/TemplateMarketV2Item.vue @@ -124,6 +124,8 @@ const templateInnerPreview = e => { .template-button { justify-content: center; width: 100%; + padding-bottom: 8px; + display: none; } .bottom-area { @@ -149,6 +151,11 @@ const templateInnerPreview = e => { color: deepskyblue; cursor: pointer; } +.testcase-template:hover { + .template-button { + display: block; + } +} .create-area { bottom: -38px !important; } diff --git a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue index 35ede323db..1a2903c342 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue @@ -212,6 +212,18 @@ const dfsName = (arr, id) => { return name } +const dfsChild = arr => { + return arr.filter(ele => { + if (ele.leaf) { + return true + } + if (!!ele.children?.length) { + ele.children = dfsChild(ele.children || []) + } + return !!ele.children?.length + }) +} + const getDsName = (id: string) => { return dfsName(state.dataSourceList, id) } @@ -860,9 +872,9 @@ const getDatasource = () => { getDatasourceList().then(res => { const _list = (res as unknown as DataSource[]) || [] if (_list && _list.length > 0 && _list[0].id === '0') { - state.dataSourceList = _list[0].children + state.dataSourceList = dfsChild(_list[0].children) } else { - state.dataSourceList = _list + state.dataSourceList = dfsChild(_list) } }) }