yangfeng
2023-08-01 ebddc02611b0373c1d5bfa342bd781fb5eb82009
src/views/sales/contractManage/index.vue
@@ -13,7 +13,7 @@
        ::statistics="true"
        :operates-list="operatesList"
      />
      <PagerView class="page" />
      <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
    </div>
    <TableCommonView ref="tableListRef" :table-list="tableList">
      <template slot="tableButton">
@@ -33,10 +33,12 @@
<script>
import AddContractManageDialog from "@/views/sales/contractManage/AddContractManageDialog"
import { getContractList, getDelContract } from "@/api/sales/contractManage"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
export default {
  name: "ContractManage",
  props: {},
  mixins: [pageMixin],
  components: {
    AddContractManageDialog
  },
@@ -99,7 +101,11 @@
    // 请求数据
    async getData() {
      this.loading = true
      await getContractList()
      await getContractList({
        keyword: "",
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
        .then((res) => {
          console.log(res)
          if (res.code === 200) {
@@ -110,6 +116,7 @@
                }
              })
              this.tableList.tableInfomation = list || []
              this.pagerOptions.totalCount = res.data.count
            } else {
              this.tableList.tableInfomation = []
            }
@@ -150,7 +157,7 @@
        .then((response) => {
          if (response.code === 200) {
            this.$message.success("删除成功")
            this.getUserList()
            this.getData()
          } else {
            this.$message.warning("删除失败")
          }