yangfeng
2023-07-26 88e465272d8d6add756eb19764cdb9a59cdf7cf1
src/views/client/followupRecords/index.vue
@@ -3,7 +3,7 @@
    <SearchCommonView ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" />
    <div class="btn-pager">
      <PublicFunctionBtnView :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">
@@ -23,10 +23,12 @@
<script>
import AddFollowupRecordsDialog from "@/views/client/followupRecords/AddFollowupRecordsDialog"
import { getFollowRecordList, getDeleteFollowRecord } from "@/api/client/followupRecords.js"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
export default {
  name: "FollowupRecords",
  props: {},
  mixins: [pageMixin],
  components: {
    AddFollowupRecordsDialog
  },
@@ -94,7 +96,11 @@
    // 请求数据
    async getData() {
      this.loading = true
      await getFollowRecordList()
      await getFollowRecordList({
        keyword: "",
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
        .then((res) => {
          console.log(res)
          if (res.code === 200) {
@@ -109,6 +115,7 @@
                }
              })
              this.tableList.tableInfomation = list || []
              this.pagerOptions.totalCount = res.data.count
            } else {
              this.tableList.tableInfomation = []
            }