feat: 解决上架问题
This commit is contained in:
@@ -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("请填写完整信息");
|
||||
|
||||
@@ -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: "操作",
|
||||
|
||||
Reference in New Issue
Block a user