Browse Source

首页我要报价实时刷新

gaoxm 7 years ago
parent
commit
1d931901a1
1 changed files with 8 additions and 2 deletions
  1. 8 2
      components/home/floor/FloorList.vue

+ 8 - 2
components/home/floor/FloorList.vue

@@ -100,7 +100,8 @@
         purchaseManList: {
           content: []
         },
-        listTemplate: []
+        listTemplate: [],
+        isChange: false
       }
     },
     mounted () {
@@ -180,7 +181,11 @@
       },
       purchaseManListData () {
         let list = this.$store.state.applyPurchase.purchaseManList.purchaseManList.data
-        if (list.content) {
+        if (this.isChange) {
+          this.purchaseManList.content = []
+          this.listTemplate = list
+          this.isChange = false
+        } else if (list.content) {
           for (let i = 0; i < list.content.length; i++) {
             this.purchaseManList.content.push(list.content[i])
           }
@@ -228,6 +233,7 @@
       resetList: function () {
         this.currentSayPriceIndex = -1
         this.timerIndex = 0
+        this.isChange = true
         this.$store.dispatch('applyPurchase/loadPurchaseManList', {pageNumber: this.nowPage, pageSize: this.pageSize, enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null})
       },
       cancelSayPrice: function () {