diff --git a/core/core-frontend/src/views/visualized/data/dataset/index.vue b/core/core-frontend/src/views/visualized/data/dataset/index.vue index 57ee7ac3f7..352cb67886 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/index.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/index.vue @@ -420,6 +420,23 @@ const defaultProps = { label: 'name' } +const defaultTab = [ + { + title: t('chart.data_preview'), + name: 'dataPreview' + }, + { + title: '结构预览', + name: 'structPreview' + } +] +const tablePanes = ref([]) +const tablePaneList = computed(() => { + return nodeInfo.weight >= 7 ? [...defaultTab, ...tablePanes.value] : [...defaultTab] +}) +const panelLoad = paneInfo => { + tablePanes.value = paneInfo +} const datasetListTree = ref() watch(nickName, (val: string) => { @@ -587,19 +604,17 @@ const getMenuList = (val: boolean) => {