| | |
| | | fetchInspectionStatistic, |
| | | fetchSubtaskSummaryByArea, |
| | | } from '../../services/inspection/fetchInspection'; |
| | | import dayjs from "dayjs"; |
| | | |
| | | /** |
| | | * 现场巡查监管相关信息获取逻辑 |
| | |
| | | fetchInspection(page) { |
| | | this.setData({ inspectionLoading: true }); |
| | | const { provinceCode, cityCode, districtCode, townCode, sceneTypeValue, time } = this.data; |
| | | const eTime = dayjs(time).endOf('M').format('YYYY-MM-DD HH:mm:ss') |
| | | fetchSubtaskSummaryByArea({ |
| | | provincecode: provinceCode, |
| | | citycode: cityCode, |
| | |
| | | towncode: townCode, |
| | | scensetypeid: sceneTypeValue[0], |
| | | starttime: time, |
| | | endtime: time, |
| | | endtime: eTime, |
| | | }) |
| | | .then(res => { |
| | | this.setData({ |