yangfeng
2023-07-26 88e465272d8d6add756eb19764cdb9a59cdf7cf1
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 = []
            }