|
|
@ -125,7 +125,6 @@
|
|
|
|
id: props.columns?.id || 0
|
|
|
|
id: props.columns?.id || 0
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
createMessage.success(res.message)
|
|
|
|
createMessage.success(res.message)
|
|
|
|
if (res.data) vid.value = res.data
|
|
|
|
|
|
|
|
emits('updateCol', TableColDragRef.value.getColList())
|
|
|
|
emits('updateCol', TableColDragRef.value.getColList())
|
|
|
|
if (!b) visible.value = false
|
|
|
|
if (!b) visible.value = false
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -142,9 +141,11 @@
|
|
|
|
showNumCol: checked.value
|
|
|
|
showNumCol: checked.value
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vid.value) Apidata.id = vid.value
|
|
|
|
editColumnSet(Object.assign(Apidata, permissionsInfo())).then((res) => {
|
|
|
|
editColumnSet(Object.assign(Apidata, permissionsInfo())).then((res) => {
|
|
|
|
loading.value = false
|
|
|
|
loading.value = false
|
|
|
|
createMessage.success(res.message)
|
|
|
|
createMessage.success(res.message)
|
|
|
|
|
|
|
|
if (res.data) vid.value = res.data
|
|
|
|
emits('updateCol', TableColDragRef.value.colData)
|
|
|
|
emits('updateCol', TableColDragRef.value.colData)
|
|
|
|
if (!b) visible.value = false
|
|
|
|
if (!b) visible.value = false
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|