mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-03 15:40:19 +08:00
字典类型批量删除调整
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user