lilei %!s(int64=2) %!d(string=hai) anos
pai
achega
bb2d6c833c
Modificáronse 1 ficheiros con 8 adicións e 5 borrados
  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 {