|
@@ -61,8 +61,8 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6" :sm="12">
|
|
|
- <a-button type="primary" @click="refresh" id="PurchasedServiceList-search">查询</a-button>
|
|
|
- <a-button style="margin-left: 8px" @click="resetSearchForm" id="PurchasedServiceList-resetSearchForm">重置</a-button>
|
|
|
+ <a-button type="primary" @click="refresh" :disabled="disabled" id="PurchasedServiceList-search">查询</a-button>
|
|
|
+ <a-button style="margin-left: 8px" :disabled="disabled" @click="resetSearchForm" id="PurchasedServiceList-resetSearchForm">重置</a-button>
|
|
|
<a-button style="margin-left: 8px" class="export-btn" @click="handleExport" id="PurchasedServiceList-handleExport">导出</a-button>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -119,6 +119,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ disabled: false,
|
|
|
loadData: parameter => {
|
|
|
const searchData = Object.assign(parameter, this.queryParam, {
|
|
|
freeChoiceFlag: 1
|
|
@@ -131,12 +132,14 @@ export default {
|
|
|
searchData.beginDate = ''
|
|
|
searchData.endDate = ''
|
|
|
}
|
|
|
+ this.disabled = true
|
|
|
return listCustomerBundle(searchData).then(res => {
|
|
|
const no = (res.data.pageNo - 1) * res.data.pageSize
|
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
|
const _item = res.data.list[i]
|
|
|
_item.no = no + i + 1
|
|
|
}
|
|
|
+ this.disabled = false
|
|
|
return res.data
|
|
|
})
|
|
|
},
|