diff --git a/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue b/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue index 262e2cc812..447decf6c1 100644 --- a/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue +++ b/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue @@ -163,7 +163,7 @@ onUnmounted(() => { .scale-input-number { height: 28px; - width: 60px !important; + width: 80px !important; margin-right: 16px; input { -webkit-appearance: none; diff --git a/core/core-frontend/src/views/visualized/data/dataset/form/DatasetUnion.vue b/core/core-frontend/src/views/visualized/data/dataset/form/DatasetUnion.vue index e8a672a383..df2e47a85d 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/form/DatasetUnion.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/form/DatasetUnion.vue @@ -176,19 +176,15 @@ const saveSqlNode = (val: SqlNode, cb) => { info: state.visualNode.info, tableName, type: 'sql' + }).then(res => { + nodeField.value = res as unknown as Field[] + nodeField.value.forEach(ele => { + ele.checked = true + }) + state.nodeList[0].currentDsFields = cloneDeep(res) + cb?.() + confirmEditUnion() }) - .then(res => { - nodeField.value = res as unknown as Field[] - nodeField.value.forEach(ele => { - ele.checked = true - }) - state.nodeList[0].currentDsFields = cloneDeep(res) - cb?.() - confirmEditUnion() - }) - .finally(() => { - editUnion.value = true - }) confirm() } return @@ -203,6 +199,14 @@ const setChangeStatus = (to, from) => { } const closeSqlNode = () => { + if ( + state.nodeList.length === 1 && + !state.nodeList[0].children?.length && + changeSqlId.value.length === 1 + ) { + editUnion.value = true + changeSqlId.value = [] + } if (state.visualNode?.confirm) { nextTick(() => { emits('joinEditor', [