代码优化
This commit is contained in:
@@ -181,7 +181,6 @@
|
||||
*/
|
||||
async function getGroupBindGoods() {
|
||||
let res = await getProdGroupDetail(option.id)
|
||||
console.log(res)
|
||||
pageData.bindGoodsList = res.productList.filter(v=>{
|
||||
return pageData.query.categoryId === '' ? true : (v.categoryId==pageData.query.categoryId)&&(v.name.includes(pageData.query.name))
|
||||
})
|
||||
@@ -209,7 +208,6 @@
|
||||
*/
|
||||
function setCategory(category) {
|
||||
pageData.query.categoryId = category.id
|
||||
console.log(pageData.query.categoryId );
|
||||
pageData.categoryName = category.name
|
||||
}
|
||||
|
||||
@@ -221,7 +219,6 @@
|
||||
if (!res) {
|
||||
return
|
||||
}
|
||||
console.log(pageData.goodsList);
|
||||
await updateProdGroup({
|
||||
...option,
|
||||
productIds: [...pageData.bindGoodsList.map(v => v.id), ...pageData.goodsList.filter(v => v.checked)
|
||||
|
||||
Reference in New Issue
Block a user