quanyawei
2023-10-07 0c70804c83d63f5dd1c29550aa6eac60bd8dac1a
fix:责任单位修改
1 files modified
13 ■■■■■ changed files
src/views/list/Unit.vue 13 ●●●●● patch | view | raw | blame | history
src/views/list/Unit.vue
@@ -207,9 +207,10 @@
  private pagination:any={
    total:0,
    current:1,
    pageSize:5,
    showSizeChanger: false,
    showQuickJumper: false,
    pageSize:10,
    showSizeChanger: true,
    showQuickJumper: true,
    showTotal: (total:number) => `共有 ${this.pagination.total} 条数据`,  //分页中显示总的数据
  };
    @Watch('serch.name')
@@ -294,7 +295,7 @@
            areaCode:this.serch.areaCode,
            current: this.pagination.current,
            page:1,
            size: 20
            size: this.pagination.pageSize
        }).then(res=>{
          this.dataSource = res.data.data.item
          this.pagination.total = res.data.data.total
@@ -304,8 +305,10 @@
        })
    }
    private handlerTableChange(pagination: any, filter: any, sorter: any): void {
  private handlerTableChange(pagination: any, filter: any, sorter: any): void {
      console.log(pagination)
      this.pagination.current = pagination.current
      this.pagination.pageSize = pagination.pageSize
      this.pagination.total = pagination.total
      this.handleSearch()
    }