Commit b2af4ba6 authored by 黄奎's avatar 黄奎

页面修改

parent 305e5c9c
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<div class="salesStatistics" v-loading="loading"> <div class="salesStatistics" v-loading="loading">
<div class="el-card__header"> <div class="el-card__header">
<span>数据概况</span> <span>数据概况</span>
<div style="display: flex;flex-direction: row;align-items: center;display:none;">
<el-button type="primary" class="el-button--small" @click="Export">导出全部</el-button>
</div>
</div> </div>
<div class="content"> <div class="content">
<div style="display: flex;flex-direction: row;align-items: center"> <div style="display: flex;flex-direction: row;align-items: center">
...@@ -89,8 +87,8 @@ ...@@ -89,8 +87,8 @@
data() { data() {
return { return {
msg: { msg: {
PageIndex: 1, pageIndex: 1,
PageSize: 10, pageSize: 1000,
Source: 0, Source: 0,
StartDate: '', StartDate: '',
EndDate: '', EndDate: '',
...@@ -136,7 +134,7 @@ ...@@ -136,7 +134,7 @@
}) })
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.PageIndex = val; this.msg.pageIndex = val;
this.getList() this.getList()
}, },
//获取列表 //获取列表
...@@ -153,27 +151,12 @@ ...@@ -153,27 +151,12 @@
this.loading = false this.loading = false
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tableData = res.data.data.pageData; this.tableData = res.data.data.pageData;
this.count=res.data.data.count; this.count = res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}) })
}, },
Export() {
let msg = {
PlatformType: this.msg.PlatformType,
StartDate: this.msg.StartDate,
EndDate: this.msg.EndDate,
OrderType: this.msg.OrderType,
}
msg = JSON.parse(JSON.stringify(msg));
this.GetLocalFile(
"/api/Statistics/GetSellExcel",
msg,
"销售统计.xls"
);
},
empty() { empty() {
this.msg.Source = 0; this.msg.Source = 0;
this.value = ''; this.value = '';
......
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