添加加载状态

This commit is contained in:
admin-lmm
2023-08-30 11:55:30 +08:00
parent cc31572b0f
commit 80a67f92fa
2 changed files with 9 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
<div class="header-txt">运营汇总</div> <div class="header-txt">运营汇总</div>
<el-button type="primary" @click="goAccount">开户信息</el-button> <el-button type="primary" @click="goAccount">开户信息</el-button>
</div> </div>
<div class="header"> <div class="header" v-loading="loading">
<template v-if="operationStatus == null"> <template v-if="operationStatus == null">
<div class="foot1"> <div class="foot1">
<div style="margin: 12px 0">没有查询到结算账户</div> <div style="margin: 12px 0">没有查询到结算账户</div>
@@ -317,7 +317,7 @@
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
:before-close="orderClose" :before-close="orderClose"
> >
<el-table :data="orderList"> <el-table :data="orderList" v-loading="loading">
<el-table-column property="orderCode" label="订单编号" /> <el-table-column property="orderCode" label="订单编号" />
<el-table-column property="settleAmount" label="结算金额(元)" /> <el-table-column property="settleAmount" label="结算金额(元)" />
<el-table-column property="clearingStatus" label="清分状态"> <el-table-column property="clearingStatus" label="清分状态">
@@ -356,6 +356,7 @@ export default {
dicts: ["bill_status"], dicts: ["bill_status"],
data() { data() {
return { return {
loading: true,
operationStatus: null, operationStatus: null,
adapayMember: {}, adapayMember: {},
// 开启 // 开启
@@ -407,12 +408,14 @@ export default {
}, },
selectAdapayMember() { selectAdapayMember() {
console.log("this.merchantId", this.merchantId); console.log("this.merchantId", this.merchantId);
// this.loading = true;
let param = { let param = {
merchantId: this.merchantId, merchantId: this.merchantId,
}; };
selectAdapayMember(param).then((response) => { selectAdapayMember(param).then((response) => {
console.log("查询结算账户", response); console.log("查询结算账户", response);
this.operationStatus = response.data; this.operationStatus = response.data;
this.loading = false;
// console.log("this.operationStatus", this.operationStatus.bankAcctType); // console.log("this.operationStatus", this.operationStatus.bankAcctType);
// 商家性质: // 商家性质:
if (response.data != null) { if (response.data != null) {
@@ -440,12 +443,15 @@ export default {
this.adapayMember = response.data; this.adapayMember = response.data;
}); });
}, },
// 订单流水请求
getOrderList() { getOrderList() {
this.loading = true;
console.log("this.getOrderParams", this.getOrderParams); console.log("this.getOrderParams", this.getOrderParams);
getOrderReportDetail(this.getOrderParams).then((res) => { getOrderReportDetail(this.getOrderParams).then((res) => {
console.log("获取订单列表res", res); console.log("获取订单列表res", res);
this.orderList = res.rows; this.orderList = res.rows;
this.orderTotal = res.total; this.orderTotal = res.total;
this.loading = false;
// console.log("this.orderTotal", this.orderTotal); // console.log("this.orderTotal", this.orderTotal);
}); });
}, },
@@ -531,7 +537,6 @@ export default {
this.reportQueryParams.pageNum = 1; this.reportQueryParams.pageNum = 1;
this.reportTotal = 0; this.reportTotal = 0;
this.getList(); this.getList();
// this.getOrderList();
}, },
defaultDate() { defaultDate() {
//字符串拼接,开始时间,结束时间 //字符串拼接,开始时间,结束时间

View File

@@ -329,8 +329,8 @@
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>