yangfeng
2023-08-01 ebddc02611b0373c1d5bfa342bd781fb5eb82009
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
  },
@@ -61,7 +63,8 @@
        visible: false,
        title: "新建",
        infomation: {}
      }
      },
      saleChanceName: ""
    }
  },
  created() {
@@ -94,7 +97,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 +116,7 @@
                }
              })
              this.tableList.tableInfomation = list || []
              this.pagerOptions.totalCount = res.data.count
            } else {
              this.tableList.tableInfomation = []
            }
@@ -134,7 +142,7 @@
      console.log(row)
      this.editConfig.visible = true
      this.editConfig.title = "编辑"
      this.editConfig.infomation = { ...row }
      this.editConfig.infomation = { ...row, sale_chance_name: "", sales_leads_name: "" }
    },
    // 删除
    delClick(id) {
@@ -149,7 +157,7 @@
        .then((response) => {
          if (response.code === 200) {
            this.$message.success("删除成功")
            this.getUserList()
            this.getData()
          } else {
            this.$message.warning("删除失败")
          }