Commit a18ffaca by huaying

fix: 添加loading

parent 48bdb5a9
<template>
<div>
<div v-loading="loadings">
<div class="search-bar">
<el-input v-model="params.orderNumber" @change="onSearch" prefix-icon="el-icon-search" clearable placeholder="请输入订单/退款/退换单号" style="width: 260px"></el-input>
<el-select v-model="params.orderType" @change="onSearch" clearable placeholder="全部订单类型" style="margin-left: 10px;width: 160px">
......@@ -257,6 +257,7 @@ export default {
dateRange: [],
total: 0
},
loadings: false,
tableData: [
// {
// orderNumber: '单号(订单/退款单)',
......@@ -375,6 +376,7 @@ export default {
return result;
},
getTableData() {
this.loadings = true;
const { memberId, pageSize, currentPage, orderType, channelType, dateRange, orderNumber } = this.params;
const params = { memberId, pageSize, currentPage, orderType, channelType, orderNumber };
if (Array.isArray(dateRange) && dateRange.length > 0) {
......@@ -391,6 +393,7 @@ export default {
return el;
});
this.params.total = page.totalCount;
this.loadings = false;
});
},
onSearch() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment