更改资产类目删除传递字段,由id改为bid
This commit is contained in:
@@ -56,11 +56,11 @@ export function updateCategory(data: object) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 删除分类
|
// 删除分类
|
||||||
export function deleteCategory(id: number) {
|
export function deleteCategory(bid: string) {
|
||||||
return newService({
|
return newService({
|
||||||
url: '/assets/category/deleteCategory',
|
url: '/assets/category/deleteCategory',
|
||||||
method: 'delete',
|
method: 'delete',
|
||||||
params: { id },
|
params: { bid },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ const onRowDel = (row: CategoryRow) => {
|
|||||||
type: 'warning',
|
type: 'warning',
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
deleteCategory(row.id).then(() => {
|
deleteCategory(row.bid).then(() => {
|
||||||
ElMessage.success('删除成功');
|
ElMessage.success('删除成功');
|
||||||
getCategoryList();
|
getCategoryList();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user