|
|
@@ -88,6 +88,7 @@
|
|
|
</div>
|
|
|
<page :total="totalCount" :page-size="pageSize"
|
|
|
:current="nowPage" v-on:childEvent="listenPage"></page>
|
|
|
+ <loading v-if="showLoading"></loading>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -103,6 +104,7 @@
|
|
|
return len
|
|
|
}
|
|
|
import Page from '~components/common/page/pageComponent.vue'
|
|
|
+ import Loading from '~components/common/loading/PageLoading.vue'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
@@ -122,11 +124,13 @@
|
|
|
maxDay: false
|
|
|
},
|
|
|
keyWord: '',
|
|
|
- sorting: {}
|
|
|
+ sorting: {},
|
|
|
+ showLoading: false
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- Page
|
|
|
+ Page,
|
|
|
+ Loading
|
|
|
},
|
|
|
filters: {
|
|
|
date: function (date) {
|
|
|
@@ -182,6 +186,7 @@
|
|
|
commitSayPrice: function (purchaseMan) {
|
|
|
if (this.user.logged) {
|
|
|
if (this.checkAllSayPrice()) {
|
|
|
+ this.showLoading = true
|
|
|
this.sayPriceObj.spId = purchaseMan.id
|
|
|
this.sayPriceObj.currency = purchaseMan.currency || this.sayPriceObj.currency
|
|
|
this.$http.post('/seek/offer/saveOffer', this.sayPriceObj).then(response => {
|
|
|
@@ -193,9 +198,11 @@
|
|
|
} else {
|
|
|
this.$message.error(response.data.message)
|
|
|
}
|
|
|
+ this.showLoading = false
|
|
|
}, error => {
|
|
|
console.log(error)
|
|
|
this.$message.error('系统错误')
|
|
|
+ this.showLoading = false
|
|
|
})
|
|
|
} else {
|
|
|
if (!this.validSayPrice.unitPrice) {
|