前端财务中心页面添加分页

This commit is contained in:
Lemon
2023-07-07 09:11:55 +08:00
parent 37a8562861
commit bbaa7aed67
2 changed files with 5 additions and 2 deletions

View File

@@ -171,6 +171,7 @@ export default {
getMerchantOrderList(param).then((response) => { getMerchantOrderList(param).then((response) => {
console.log("getMerchantOrderList", response) console.log("getMerchantOrderList", response)
this.merchantOrderList = response.rows; this.merchantOrderList = response.rows;
this.total = response.total;
}) })
} }
} }

View File

@@ -167,7 +167,6 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total > 0" v-show="total > 0"
:total="total" :total="total"
@@ -176,6 +175,7 @@
@pagination="getFinancialMerchantList" @pagination="getFinancialMerchantList"
/> />
</div> </div>
</template> </template>
<script> <script>
@@ -244,8 +244,10 @@ export default {
// 获取运营商列表 // 获取运营商列表
getFinancialMerchantList() { getFinancialMerchantList() {
getFinancialMerchantList().then((response) => { getFinancialMerchantList().then((response) => {
console.log("merchantList", response) console.log("response", response)
this.merchantList = response.rows; this.merchantList = response.rows;
console.log("response.total", response.total)
this.total = response.total;
}) })
}, },
// 取消按钮 // 取消按钮