fix: bug fix

This commit is contained in:
dataeaseShu
2025-07-28 15:22:15 +08:00
parent 0dba9a1e1e
commit f6f3429a05
2 changed files with 18 additions and 10 deletions
+9 -9
View File
@@ -274,15 +274,15 @@ const save = async (formEl: FormInstance | undefined) => {
}
} else {
requestObj.tables = list
// const a = datasourceApi
// .add(requestObj)
// .then(() => {
// close()
// emit('refresh')
// })
// .finally(() => {
// saveLoading.value = false
// })
datasourceApi
.add(requestObj)
.then(() => {
close()
emit('refresh')
})
.finally(() => {
saveLoading.value = false
})
}
}
})
@@ -287,7 +287,11 @@ defineExpose({
</span>
</div>
<div v-if="configExpand" class="params-table">
<div
v-if="configExpand"
class="params-table"
:class="!advancedSettingPagination.length && 'bottom-border'"
>
<el-table :data="advancedSettingPagination" style="width: 100%">
<el-table-column prop="key" :label="t('model.parameters')" width="280" />
<el-table-column prop="name" :label="t('model.display_name')" width="280" />
@@ -451,6 +455,10 @@ defineExpose({
border-top: none;
border-bottom: none;
overflow-y: auto;
&.bottom-border {
border-bottom: 1px solid #dee0e3;
}
:deep(.ed-table .ed-table__cell) {
padding: 7px 0;
}