mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-25 16:07:19 +08:00
fix: 修改“岗位管理”-删除&批量删除-按钮功能错误:代码错误(应该是从操作日志拷贝过来的代码,没有修改完整),后端也做了对应修改。
This commit is contained in:
parent
c35a260495
commit
1fc2fea752
@ -166,8 +166,8 @@ export function usePostHook() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleDelete(row) {
|
async function handleDelete(row) {
|
||||||
await deletePostApi([row.logId]).then(() => {
|
await deletePostApi([row.postId]).then(() => {
|
||||||
message(`您删除了操作编号为${row.logId}的这条数据`, {
|
message(`您删除了编号为${row.postId}的这条岗位数据`, {
|
||||||
type: "success"
|
type: "success"
|
||||||
});
|
});
|
||||||
// 刷新列表
|
// 刷新列表
|
||||||
@ -182,7 +182,7 @@ export function usePostHook() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ElMessageBox.confirm(
|
ElMessageBox.confirm(
|
||||||
`确认要<strong>删除</strong>编号为<strong style='color:var(--el-color-primary)'>[ ${multipleSelection.value} ]</strong>的日志吗?`,
|
`确认要<strong>删除</strong>编号为<strong style='color:var(--el-color-primary)'>[ ${multipleSelection.value} ]</strong>的岗位数据吗?`,
|
||||||
"系统提示",
|
"系统提示",
|
||||||
{
|
{
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
@ -194,7 +194,7 @@ export function usePostHook() {
|
|||||||
)
|
)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await deletePostApi(multipleSelection.value).then(() => {
|
await deletePostApi(multipleSelection.value).then(() => {
|
||||||
message(`您删除了日志编号为[ ${multipleSelection.value} ]的数据`, {
|
message(`您删除了编号为[ ${multipleSelection.value} ]的岗位数据`, {
|
||||||
type: "success"
|
type: "success"
|
||||||
});
|
});
|
||||||
// 刷新列表
|
// 刷新列表
|
||||||
|
Loading…
x
Reference in New Issue
Block a user