This commit is contained in:
张成
2026-02-08 19:15:37 +08:00
parent 463d7921c1
commit 45abb735e3

View File

@@ -48,6 +48,13 @@ export default {
this.showEditWarp(params.row) this.showEditWarp(params.row)
}, },
}, },
{
title: '清空',
type: 'warning',
click: () => {
this.clearConfirm(params.row)
},
}
] ]
return uiTool.getBtn(h, btns) return uiTool.getBtn(h, btns)
@@ -93,6 +100,16 @@ export default {
this.init() this.init()
}) })
}, },
async clearConfirm(row) {
uiTool.showConfirm({
content: '你确定清空吗?',
}, async () => {
row.value = null
await paramSetupServer.edit(row)
this.$Message.success('清空成功!')
this.init()
})
},
async delConfirm(row) { async delConfirm(row) {
uiTool.delConfirm(async () => { uiTool.delConfirm(async () => {
await paramSetupServer.del(row) await paramSetupServer.del(row)