| | |
| | | // 定义接口来定义对象的类型 |
| | | interface stateType { |
| | | tableData: [], |
| | | departmentList: [], |
| | | hotCount: [], |
| | | confinedSpaceCount: [], |
| | | liftingCount: [], |
| | | groundBreakingCount: [], |
| | | openCircuitCout: [], |
| | | heightCount: [], |
| | | temporaryPowerCount: [], |
| | | blindPlatePluggingCount: [], |
| | | departmentList: Array<any>, |
| | | hotCount: Array<any>, |
| | | confinedSpaceCount: Array<any>, |
| | | liftingCount: Array<any>, |
| | | groundBreakingCount: Array<any>, |
| | | openCircuitCout: Array<any>, |
| | | heightCount: Array<any>, |
| | | temporaryPowerCount: Array<any>, |
| | | blindPlatePluggingCount: Array<any>, |
| | | searchDates: Array<any>, |
| | | startTime: String, |
| | | endTime: String |
| | |
| | | heightCount: [], |
| | | temporaryPowerCount: [], |
| | | blindPlatePluggingCount: [], |
| | | searchDates: '', |
| | | searchDates: [], |
| | | startTime: '', |
| | | endTime: '' |
| | | }); |
| | |
| | | |
| | | // 获取列表 |
| | | const getListByPage = async () => { |
| | | console.log(state.searchDates) |
| | | const data = { startTime: state.searchDates[0], endTime: state.searchDates[1] }; |
| | | let res = await workAppointApi().getAllRecords(data); |
| | | if (res.data.code === '200') { |