From 4a2ae34a3cf85f5e8b0409b858cfbb12ef8b5ee2 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 02 八月 2023 11:18:51 +0800
Subject: [PATCH] 注掉暂不支持内容
---
src/views/client/client/index.vue | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/views/client/client/index.vue b/src/views/client/client/index.vue
index 1c38523..6b3fe15 100644
--- a/src/views/client/client/index.vue
+++ b/src/views/client/client/index.vue
@@ -27,7 +27,7 @@
:statistics="true"
:operates-list="operatesList"
/>
- <PagerView class="page" />
+ <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
</div>
<TableCommonView ref="tableListRef" v-loading="loading" :table-list="tableList">
<template slot="tableButton">
@@ -49,10 +49,12 @@
<script>
import AddClientManageDialog from "@/views/client/client/AddClientManageDialog.vue"
import { getClientList, getDeleteClient } from "@/api/client/client"
+import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
export default {
name: "CustomManage",
props: {},
+ mixins: [pageMixin],
components: {
AddClientManageDialog
},
@@ -122,7 +124,11 @@
// 璇锋眰鏁版嵁
async getData() {
this.loading = true
- await getClientList()
+ await getClientList({
+ keyword: "",
+ page: this.pagerOptions.currPage,
+ pageSize: this.pagerOptions.pageSize
+ })
.then((res) => {
console.log(res)
if (res.code === 200) {
@@ -138,7 +144,6 @@
}
}
}
-
return {
...item,
contact_name: contact_name,
@@ -146,6 +151,7 @@
}
})
this.tableList.tableInfomation = list || []
+ this.pagerOptions.totalCount = res.data.count
} else {
this.tableList.tableInfomation = []
}
--
Gitblit v1.8.0