Skip to content

Commit a7aec7f

Browse files
committed
fix(Data Source): The relationship management fields in the table should be consistent with the table structure fields.
1 parent 8425459 commit a7aec7f

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

frontend/src/views/ds/DataTable.vue

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const editField = (row: any) => {
211211
fieldDialog.value = true
212212
}
213213
214-
const setStatus = (row: any) => {
214+
const changeStatus = (row: any) => {
215215
currentField.value = row
216216
datasourceApi.saveField(currentField.value).then(() => {
217217
closeField()
@@ -223,25 +223,6 @@ const setStatus = (row: any) => {
223223
})
224224
}
225225
226-
const changeStatus = (row: any) => {
227-
if (!row.checked) {
228-
row.checked = true
229-
ElMessageBox.confirm(t('prompt.disable_field'), {
230-
type: 'warning',
231-
confirmButtonType: 'primary',
232-
tip: t('prompt.to_disable_it'),
233-
confirmButtonText: t('common.confirm2'),
234-
cancelButtonText: t('common.cancel'),
235-
autofocus: false,
236-
}).then(() => {
237-
row.checked = false
238-
setStatus(row)
239-
})
240-
return
241-
}
242-
setStatus(row)
243-
}
244-
245226
const emits = defineEmits(['back', 'refresh'])
246227
const back = () => {
247228
emits('back')

0 commit comments

Comments
 (0)