fix(Data Source): The relationship management fields in the table should be consistent with the table structure fields.

This commit is contained in:
dataeaseShu
2025-12-03 14:54:15 +08:00
committed by dataeaseShu
parent 8425459095
commit a7aec7f6bc
+1 -20
View File
@@ -211,7 +211,7 @@ const editField = (row: any) => {
fieldDialog.value = true
}
const setStatus = (row: any) => {
const changeStatus = (row: any) => {
currentField.value = row
datasourceApi.saveField(currentField.value).then(() => {
closeField()
@@ -223,25 +223,6 @@ const setStatus = (row: any) => {
})
}
const changeStatus = (row: any) => {
if (!row.checked) {
row.checked = true
ElMessageBox.confirm(t('prompt.disable_field'), {
type: 'warning',
confirmButtonType: 'primary',
tip: t('prompt.to_disable_it'),
confirmButtonText: t('common.confirm2'),
cancelButtonText: t('common.cancel'),
autofocus: false,
}).then(() => {
row.checked = false
setStatus(row)
})
return
}
setStatus(row)
}
const emits = defineEmits(['back', 'refresh'])
const back = () => {
emits('back')