字典类型批量删除调整

This commit is contained in:
Jason 2022-08-17 12:01:59 +08:00
parent 259db657e1
commit 7ab5a00508
2 changed files with 6 additions and 6 deletions

View File

@ -82,7 +82,7 @@
v-perms="['setting:dict:data:del']"
link
type="danger"
@click="handleDelete(row.id)"
@click="handleDelete([row.id])"
>
删除
</el-button>
@ -153,9 +153,9 @@ const handleEdit = async (data: any) => {
editRef.value?.setFormData({ ...data, typeValue: type?.dictType })
}
const handleDelete = async (id: any[] | number) => {
const handleDelete = async (ids: any[] | number) => {
await feedback.confirm('确定要删除?')
await dictDataDelete({ id })
await dictDataDelete({ ids })
feedback.msgSuccess('删除成功')
getLists()
}

View File

@ -89,7 +89,7 @@
v-perms="['setting:dict:type:del']"
link
type="danger"
@click="handleDelete(row.id)"
@click="handleDelete([row.id])"
>
删除
</el-button>
@ -144,9 +144,9 @@ const handleEdit = async (data: any) => {
}
//
const handleDelete = async (id: any[] | number) => {
const handleDelete = async (ids: any[]) => {
await feedback.confirm('确定要删除?')
await dictTypeDelete({ id })
await dictTypeDelete({ ids })
feedback.msgSuccess('删除成功')
getLists()
}