fix(数据集): 修复修改数据集sql没有弹出字段确认的问题

This commit is contained in:
dataeaseShu 2024-04-11 17:05:11 +08:00
parent ea54a54f46
commit 1227d3328d
2 changed files with 17 additions and 13 deletions

View File

@ -163,7 +163,7 @@ onUnmounted(() => {
.scale-input-number {
height: 28px;
width: 60px !important;
width: 80px !important;
margin-right: 16px;
input {
-webkit-appearance: none;

View File

@ -176,8 +176,7 @@ const saveSqlNode = (val: SqlNode, cb) => {
info: state.visualNode.info,
tableName,
type: 'sql'
})
.then(res => {
}).then(res => {
nodeField.value = res as unknown as Field[]
nodeField.value.forEach(ele => {
ele.checked = true
@ -186,9 +185,6 @@ const saveSqlNode = (val: SqlNode, cb) => {
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', [