|
|
@@ -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 () {
|