import * as React from 'react' import { CessBaseTable, Button, Icon } from 'cess-ui' import { RouteComponentProps } from 'react-router-dom' import './index.less' interface IProps extends RouteComponentProps {} interface IState { data: any page: number } export default class ${className} extends React.Component { private breadcrumbList: Array<{ path?: string; name: string }> = [ { name: '搜索场景', }, ] constructor(props: IProps) { super(props) this.state = { data: {list: [], totalCount: 0}, page: 1 } } private async getList(page: number = 1, pageSize: number = 10) { // 获取列表信息 const data = {list: [], totalCount: 0} this.setState({ data: data, }) } public render() { const { data, page } = this.state const columns: any[] = [ { title: '序号', key: 'sceneId', width: 80, render(item: any, record: any, index: number) { return index + 1 + (page - 1) * 10 }, }, ] const actions = [ , ] return (
this.getList(page, pageSize), }}>
) } }