| | |
| | | UNSAFE_componentWillMount () { |
| | | // 组件加载时,获取菜单数据 |
| | | this.loadconfig() |
| | | // this.loadmaindata() |
| | | |
| | | // this.setState({ |
| | | // data: [1,2,3,4,5,6,7,8,9,10].map((item, index) => { |
| | | // return { |
| | | // key: index, |
| | | // ID: item + 'mainkey', |
| | | // ExRateName: '$', |
| | | // SupplierName: '天猫' + item + '店', |
| | | // SupShortName: '天猫', |
| | | // SupplierCode: '201922' + item, |
| | | // OrgName: '阿里巴巴', |
| | | // OrgCode: '302999', |
| | | // PlanDate: '2019-11-' + (item < 10 ? '0' + item : item) |
| | | // } |
| | | // }), |
| | | // total: 329 |
| | | // }) |
| | | } |
| | | |
| | | shouldComponentUpdate (nextProps, nextState) { |