quanyawei
2024-01-25 a4831debee63c7071a261c5f6ecfa62fd535b2ab
src/views/list/devicesBasic.vue
@@ -1205,12 +1205,15 @@
  private createForm: any = null;
  private editRecord: any = {};
  private pagination: any = {
    total: 0,
    current: 1,
    pageSize: 5,
    showSizeChanger: false,
    showQuickJumper: false
    pageSize: 10,
    showSizeChanger: true,
    showQuickJumper: true,
    pageSizeOptions: ["10", "30", "60", "100"],
    showTotal: (total: number) => `共有 ${this.pagination.total} 条数据`, //分页中显示总的数据
  };
  private updateRecord1: any = {};
@@ -1380,6 +1383,14 @@
  }
  private columns: any[] = [
    {
      title: "序号",
      dataIndex: "key",
      key: "key",
      align: "center",
      customRender: (text:any, record:any, index:any) => `${index + 1}`,
      width: 60,
    },
    {
      title: "名称",
      dataIndex: "name"
@@ -1641,6 +1652,9 @@
  private current: number = 1
  private handlerTableChange(pagination: any, filter: any, sorter: any): void {
    this.current = pagination.current
    this.pagination.current = pagination.current;
    this.pagination.pageSize = pagination.pageSize;
    this.pagination.total = pagination.total;
    this.loadRuleData(pagination.current)
  }
@@ -2097,7 +2111,7 @@
            name: this.serch.name,
            mac: this.serch.name,
            page: pageSize,
            size: 8
            size: this.pagination.pageSize,
        })
        .then(res => {
          if(res.data.code === 0) {