Commit 09e96b93 authored by 黄奎's avatar 黄奎

页面修改

parent d4e57bf2
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
<el-table-column prop="Gold" label="金象" min-width="2"> <el-table-column prop="Gold" label="金象" min-width="2">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination style="text-align:right" background @current-change="handleCurrentChange" :page-size="msg.PageSize"
:current-page.sync="msg.PageIndex" layout="prev, pager, next" :total="count">
</el-pagination>
</div> </div>
</div> </div>
</template> </template>
...@@ -86,10 +89,13 @@ ...@@ -86,10 +89,13 @@
data() { data() {
return { return {
msg: { msg: {
PageIndex: 1,
PageSize: 10,
Source: 0, Source: 0,
StartDate: '', StartDate: '',
EndDate: '', EndDate: '',
}, },
count: 0,
loading: false, loading: false,
options: [], options: [],
tableData: [], tableData: [],
...@@ -129,6 +135,10 @@ ...@@ -129,6 +135,10 @@
}) })
}, },
handleCurrentChange(val) {
this.msg.PageIndex = val;
this.getList()
},
//获取列表 //获取列表
getList() { getList() {
if (this.value != '' && this.value != null) { if (this.value != '' && this.value != null) {
...@@ -142,7 +152,8 @@ ...@@ -142,7 +152,8 @@
this.apipost("/api/Tenant/MallDistributorDayStatistics", this.msg, res => { this.apipost("/api/Tenant/MallDistributorDayStatistics", this.msg, res => {
this.loading = false this.loading = false
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tableData = res.data.data; this.tableData = res.data.data.pageData;
this.count=res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -277,9 +277,7 @@ ...@@ -277,9 +277,7 @@
}) })
} }
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getDataList() this.getDataList()
...@@ -290,7 +288,6 @@ ...@@ -290,7 +288,6 @@
StartDate: this.msg.StartDate, StartDate: this.msg.StartDate,
EndDate: this.msg.EndDate, EndDate: this.msg.EndDate,
OrderType: this.msg.OrderType, OrderType: this.msg.OrderType,
} }
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
this.GetLocalFile( this.GetLocalFile(
......
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