|
@@ -53,7 +53,7 @@
|
|
<!-- <el-header height="40px" style="border-bottom: 1px solid #eee">余额充值</el-header> -->
|
|
<!-- <el-header height="40px" style="border-bottom: 1px solid #eee">余额充值</el-header> -->
|
|
<div style="margin-bottom:20px;">
|
|
<div style="margin-bottom:20px;">
|
|
<el-date-picker v-model="dataRange" :clearable="false" value-format="timestamp" format="yyyy-MM-dd" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width:260px;"></el-date-picker>
|
|
<el-date-picker v-model="dataRange" :clearable="false" value-format="timestamp" format="yyyy-MM-dd" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width:260px;"></el-date-picker>
|
|
- <el-button style="margin-left:10px;" type="primary" @click="onSearch">查询</el-button>
|
|
|
|
|
|
+ <el-button style="margin-left:10px;" type="primary" @click="onSearch" :loading="searchLoading">查询</el-button>
|
|
<el-button style="margin-left:10px;" type="danger" @click="onReset">重置</el-button>
|
|
<el-button style="margin-left:10px;" type="danger" @click="onReset">重置</el-button>
|
|
<el-button style="margin-left:10px;" type="warning" @click="onRecharge">充值申请提交</el-button>
|
|
<el-button style="margin-left:10px;" type="warning" @click="onRecharge">充值申请提交</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -237,7 +237,8 @@ export default {
|
|
// 预警电话列表
|
|
// 预警电话列表
|
|
warningList: [],
|
|
warningList: [],
|
|
// 总充值金额
|
|
// 总充值金额
|
|
- evidence_amounts: ''
|
|
|
|
|
|
+ evidence_amounts: '',
|
|
|
|
+ searchLoading: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -353,6 +354,7 @@ export default {
|
|
// 搜索
|
|
// 搜索
|
|
async onSearch() {
|
|
async onSearch() {
|
|
this.isLoading = true
|
|
this.isLoading = true
|
|
|
|
+ this.searchLoading = true
|
|
try {
|
|
try {
|
|
if (this.dataRange == null) {
|
|
if (this.dataRange == null) {
|
|
this.startTime = ''
|
|
this.startTime = ''
|
|
@@ -373,9 +375,11 @@ export default {
|
|
this.total = res.datas.total * this.pageSize
|
|
this.total = res.datas.total * this.pageSize
|
|
}
|
|
}
|
|
this.isLoading = false
|
|
this.isLoading = false
|
|
|
|
+ this.searchLoading = false
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log(error);
|
|
console.log(error);
|
|
this.isLoading = false
|
|
this.isLoading = false
|
|
|
|
+ this.searchLoading = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 重置
|
|
// 重置
|