|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<basic-container>
|
|
|
- <avue-crud :key="key" ref="crud" :option="option" :data="data" :search.sync="query" @on-load="onLoad"
|
|
|
+ <avue-crud :key="key" ref="crud" :option="option" :data="data" :search.sync="query" @on-load="onLoad" :table-loading="loading"
|
|
|
@search-reset="resetChange" :page.sync="page" :cell-style="cellStyle" @search-change="searchChange"
|
|
|
@resetColumn="resetColumnTwo('crud', 'option', 'optionList', 337.2)"
|
|
|
@saveColumn="saveColumnTwo('crud', 'option', 'optionList', 337.2)">
|
|
@@ -8,9 +8,9 @@
|
|
|
<el-button type="warning" icon="el-icon-download" size="small" @click="outExport">导出</el-button>
|
|
|
</template>
|
|
|
<template slot="header">
|
|
|
- <el-table :data="commodityData" border size="small" @header-click="cellClick" style="width: 100%">
|
|
|
+ <el-table :data="commodityData" border size="small" @header-click="cellClick" style="width: 100%" v-loading="loading">
|
|
|
<el-table-column v-for="(item, index) in commodityLabel" :key="index" :prop="item.prop"
|
|
|
- show-overflow-tooltip :label="item.label" />
|
|
|
+ show-overflow-tooltip :label="item.label"/>
|
|
|
</el-table>
|
|
|
</template>
|
|
|
<!-- <template slot="customerNameSearch">
|
|
@@ -91,6 +91,7 @@ export default {
|
|
|
components: { SearchQuery },
|
|
|
data() {
|
|
|
return {
|
|
|
+ loading:false,
|
|
|
key: 0,
|
|
|
data: [],
|
|
|
total: [],
|
|
@@ -465,6 +466,7 @@ export default {
|
|
|
// }
|
|
|
],
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
async created() {
|
|
|
this.option = await this.getColumnData(this.getColumnName(337.2), this.optionList);
|
|
@@ -590,6 +592,7 @@ export default {
|
|
|
bsType: 'CG,TKCG',
|
|
|
...Object.assign(params, this.query)
|
|
|
}
|
|
|
+ this.loading = true;
|
|
|
statisticsSaleDetail(queryParams).then(res => {
|
|
|
this.data = res.data.data.records
|
|
|
this.page.total = res.data.data.total
|
|
@@ -603,6 +606,7 @@ export default {
|
|
|
})
|
|
|
}).finally(() => {
|
|
|
this.$refs.crud.doLayout();
|
|
|
+ this.loading = false;
|
|
|
})
|
|
|
},
|
|
|
//自定义列保存
|