refactor: 接口路径变更和删除依赖包

Former-commit-id: 528a17fec4091a54ae63c7cc612c7671d0ed56ae
This commit is contained in:
郝先瑞
2022-07-05 08:03:39 +08:00
parent 410c5ed56d
commit c14a00a14f
26 changed files with 510 additions and 359 deletions

View File

@@ -18,7 +18,7 @@ import {
Delete,
View,
} from '@element-plus/icons-vue';
import { listPageGoods, deleteGoods } from '@/api/pms/goods';
import { listSpuPages, deleteSpu } from '@/api/pms/goods';
import { listCascadeCategories } from '@/api/pms/category';
import { GoodsItem, GoodsQueryParam } from '@/types/api/pms/goods';
import { moneyFormatter } from '@/utils/filter';
@@ -59,7 +59,7 @@ const {
function handleQuery() {
state.loading = true;
listPageGoods(state.queryParams).then(({ data }) => {
listSpuPages(state.queryParams).then(({ data }) => {
state.goodsList = data.list;
state.total = data.total;
state.loading = false;
@@ -100,7 +100,7 @@ function handleDelete(row: any) {
type: 'warning',
})
.then(function () {
return deleteGoods(ids);
return deleteSpu(ids);
})
.then(() => {
ElMessage.success('删除成功');