delete admin

This commit is contained in:
2026-05-13 13:31:18 +03:30
parent 2bef84e089
commit f994a61567
4 changed files with 84 additions and 14 deletions
@@ -36,16 +36,12 @@
</template>
<Icon icon="vuesax-linear:edit" color="#4572E9" />
</a-tooltip>
<!-- <a-tooltip
placement="bottom"
class="cursor-pointer"
@click="emits('delete', record.id)"
>
<a-tooltip placement="bottom" class="cursor-pointer" @click="emits('delete', record.id)">
<template #title>
<span>حذف</span>
<span>حذف مدیر</span>
</template>
<Icon icon="vuesax-linear:trash" color="#EB3535" />
</a-tooltip>-->
<Icon icon="vuesax-linear:user-remove" color="#EB3535" />
</a-tooltip>
</div>
</template>
</BaseTable>
+10 -3
View File
@@ -2,7 +2,14 @@
<div>
<!-- <BasicMainCard>-->
<div class="flex w-full h-full">
<tbl ref="table" class="w-full h-full" @info="info" @edit="edit" @add="add" />
<tbl
ref="table"
class="w-full h-full"
@info="info"
@edit="edit"
@add="add"
@delete="deleteManager"
/>
<!-- <BasicMenu :menu="menu" width="13rem" @onChange="tabSelected" />
<component :is="selectedComponent" class="mr-5" />-->
@@ -161,8 +168,8 @@ const resetData = () => {
}
}
//delete
const deleteItem = (id: number) => confirmDeleteItem('کاربر', id, deleteUser, refreshTable)
//delete — DELETE /admin/user/:id
const deleteManager = (id: number) => confirmDeleteItem('مدیر', id, deleteUser, refreshTable)
/* Modal.confirm({
title: 'آیا از حذف کاربر اطمینان دارید؟',