feat: 解决上架问题

This commit is contained in:
duan
2025-03-07 18:30:30 +08:00
parent 8e52613f08
commit 0bd38e29c5
5 changed files with 30 additions and 25 deletions

View File

@@ -771,11 +771,9 @@ const submitForm = async (formEl: FormInstance | undefined) => {
"title": "新增商品",
"path": "/product/addgoods",
"fullPath": "/product/addgoods",
"affix": false,
"keepAlive": true,
"query": {}
})
router.push({ name: 'productIndex' });
router.push('/product/index');
}, 500);
} else {
ElMessage.error("请填写完整信息");

View File

@@ -37,19 +37,19 @@ const contentConfig: IContentConfig<UserPageQuery> = {
})
})
},
modifyAction: function (data) {
let obj = {
type: data.isGrounding ? 'sku' : 'product',
id: data.id,
isSale: data.value
}
return UserAPI.onOff(obj);
},
// modifyAction: function (data) {
// let obj = {
// type: data.isGrounding ? 'sku' : 'product',
// id: data.id,
// isSale: data.value
// }
// return null
// },
deleteAction: UserAPI.deleteByIds,
importsAction(data) {
// 模拟导入数据
console.log("importsAction", data);
return Promise.resolve();
// console.log("importsAction", data);
// return Promise.resolve();
},
exportsAction: async function (params) {
// 模拟获取到的是全量数据
@@ -83,8 +83,8 @@ const contentConfig: IContentConfig<UserPageQuery> = {
label: "上架",
align: "center",
prop: "status",
templet: "switch",
slotName: "status",
templet: "custom",
slotName: "shangjia",
},
{
label: "操作",