@@ -131,8 +131,8 @@ export default {
batchSaveSort() {
const sorts = []
this.list.map(item => {
- if (item.preferentialProductSort) {
- sorts.push(item.id + '-' + item.preferentialProductSort)
+ if (item.commonlyProductSort) {
+ sorts.push(item.id + '-' + item.commonlyProductSort)
}
})
saveGoodsSort({ newProducSorttList: sorts.join(','), modules: this.activeIndex }).then(response => {
+ if (item.preferredProductSort) {
+ sorts.push(item.id + '-' + item.preferredProductSort)