File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff 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-
245226const emits = defineEmits ([' back' , ' refresh' ])
246227const back = () => {
247228 emits (' back' )
You can’t perform that action at this time.
0 commit comments