mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix(Data Source): The relationship management fields in the table should be consistent with the table structure fields.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user