| | |
| | | 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 = {};
|
| | |
| | | }
|
| | |
|
| | | private columns: any[] = [
|
| | | {
|
| | | title: "序号",
|
| | | dataIndex: "key",
|
| | | key: "key",
|
| | | align: "center",
|
| | | customRender: (text:any, record:any, index:any) => `${index + 1}`,
|
| | | width: 60,
|
| | | },
|
| | | {
|
| | | title: "名称",
|
| | | dataIndex: "name"
|
| | |
| | | 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)
|
| | | }
|
| | |
|
| | |
| | | name: this.serch.name,
|
| | | mac: this.serch.name,
|
| | | page: pageSize,
|
| | | size: 8
|
| | | size: this.pagination.pageSize,
|
| | | })
|
| | | .then(res => {
|
| | | if(res.data.code === 0) {
|