|
@@ -144,7 +144,7 @@
|
|
|
type="date"
|
|
|
placeholder="答题日期">
|
|
|
</el-date-picker>
|
|
|
- <el-button size="small" style="margin-right: 30px;" type="primary" @click="handleFilter">查询</el-button>
|
|
|
+ <el-button size="small" style="margin-right: 30px;" type="primary" @click="handleFilterAnswerList">查询</el-button>
|
|
|
<el-empty v-if="answerList.length==0" :image-size="200"></el-empty>
|
|
|
<div v-else>
|
|
|
<el-table size="small" :data="answerList" border style="margin-top: 30px;width: 960px">
|
|
@@ -155,7 +155,7 @@
|
|
|
<el-table-column align="center" prop="rownum" label="当前排名"></el-table-column>
|
|
|
</el-table>
|
|
|
<div class="myPage">
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ <el-pagination @size-change="handleSizeChangeAnswerList" @current-change="handleCurrentChangeAnswerList"
|
|
|
:current-page="currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="10"
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total">
|
|
|
</el-pagination>
|
|
@@ -172,7 +172,7 @@
|
|
|
type="date"
|
|
|
placeholder="抽奖日期">
|
|
|
</el-date-picker>
|
|
|
- <el-button size="small" style="margin-right: 30px;" type="primary" @click="handleFilter">查询</el-button>
|
|
|
+ <el-button size="small" style="margin-right: 30px;" type="primary" @click="handleFilterPrizeList">查询</el-button>
|
|
|
<el-empty v-if="prizeList.length==0" :image-size="200"></el-empty>
|
|
|
<div v-else>
|
|
|
<el-table size="small" :data="prizeList" border style="margin-top: 30px;width: 960px">
|
|
@@ -182,7 +182,7 @@
|
|
|
<el-table-column align="center" prop="prizeName" label="奖品"></el-table-column>
|
|
|
</el-table>
|
|
|
<div class="myPage">
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ <el-pagination @size-change="handleSizeChangePrizeList" @current-change="handleCurrentChangePrizeList"
|
|
|
:current-page="currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="10"
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total">
|
|
|
</el-pagination>
|
|
@@ -348,19 +348,37 @@ export default {
|
|
|
handleFilter() {
|
|
|
this.listQuery.page = 1
|
|
|
this.getFirstList();
|
|
|
- this.getAnswerList();
|
|
|
- this.getPrizeList();
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
this.listQuery.limit = val;
|
|
|
this.getFirstList();
|
|
|
- this.getAnswerList();
|
|
|
- this.getPrizeList();
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
this.listQuery.page = val;
|
|
|
this.getFirstList();
|
|
|
+ },
|
|
|
+ handleFilterAnswerList() {
|
|
|
+ this.listQuery.page = 1
|
|
|
+ this.getAnswerList();
|
|
|
+ },
|
|
|
+ handleSizeChangeAnswerList(val) {
|
|
|
+ this.listQuery.limit = val;
|
|
|
this.getAnswerList();
|
|
|
+ },
|
|
|
+ handleCurrentChangeAnswerList(val) {
|
|
|
+ this.listQuery.page = val;
|
|
|
+ this.getAnswerList();
|
|
|
+ },
|
|
|
+ handleFilterPrizeList() {
|
|
|
+ this.listQuery.page = 1
|
|
|
+ this.getPrizeList();
|
|
|
+ },
|
|
|
+ handleSizeChangePrizeList(val) {
|
|
|
+ this.listQuery.limit = val;
|
|
|
+ this.getPrizeList();
|
|
|
+ },
|
|
|
+ handleCurrentChangePrizeList(val) {
|
|
|
+ this.listQuery.page = val;
|
|
|
this.getPrizeList();
|
|
|
},
|
|
|
handleClickTabs(val) {
|