lilei 2 лет назад
Родитель
Сommit
bb2d6c833c
1 измененных файлов с 8 добавлено и 5 удалено
  1. 8 5
      src/views/common/custList.vue

+ 8 - 5
src/views/common/custList.vue

@@ -44,12 +44,12 @@ export default {
       default: false
     },
     mainFlag: {
-      type: Number,
-      default: 1
+      type: Boolean,
+      default: true
     },
     satelliteFlag: {
-      type: Number,
-      default: 1
+      type: Boolean,
+      default: false
     }
   },
   data () {
@@ -69,7 +69,10 @@ export default {
       const fetchId = this.lastFetchId
       this.data = []
       this.fetching = true
-      const params = { pageNo: 1, pageSize: 20, mainFlag: this.mainFlag }
+      const params = { pageNo: 1, pageSize: 20, mainFlag: this.mainFlag ? 1 : 0 }
+      if (this.satelliteFlag) {
+        params.satelliteFlag = 1
+      }
       if (this.itemSn) {
         params.customerSn = this.itemSn
       } else {