更改资产类目删除传递字段,由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({
|
||||
url: '/assets/category/deleteCategory',
|
||||
method: 'delete',
|
||||
params: { id },
|
||||
params: { bid },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ const onRowDel = (row: CategoryRow) => {
|
||||
type: 'warning',
|
||||
})
|
||||
.then(() => {
|
||||
deleteCategory(row.id).then(() => {
|
||||
deleteCategory(row.bid).then(() => {
|
||||
ElMessage.success('删除成功');
|
||||
getCategoryList();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user