mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-11 13:30:15 +08:00
添加加载状态
This commit is contained in:
@@ -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() {
|
||||||
//字符串拼接,开始时间,结束时间
|
//字符串拼接,开始时间,结束时间
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user