Ver código fonte

商品排序修复

e 5 anos atrás
pai
commit
df1e37c158

+ 2 - 2
src/views/goods/list-commonly.vue

@@ -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 => {

+ 2 - 2
src/views/goods/list-preferred.vue

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