| | |
| | | // 获取巡查任务数及各自问题数统计 |
| | | function fetchInspectionStatistic(area) { |
| | | // 两个系统之间的场景类型需要转换 |
| | | area.scensetypeid = transSceneType(area.scensetypeid); |
| | | const data = {...area} |
| | | data.scensetypeid = transSceneType(area.scensetypeid); |
| | | return post( |
| | | { |
| | | url: `/task/progress`, |
| | | data: area, |
| | | data: data, |
| | | }, |
| | | inspectUrl, |
| | | ).then(res => { |
| | |
| | | |
| | | // 获取各问题类型发生的数量统计 |
| | | function fetchProblemsStatistic(area) { |
| | | area.scensetypeid = transSceneType(area.scensetypeid); |
| | | const data = {...area} |
| | | data.scensetypeid = transSceneType(area.scensetypeid); |
| | | return post( |
| | | { |
| | | url: `/problemlist/getStatisticalResult`, |
| | | data: area, |
| | | data: data, |
| | | }, |
| | | inspectUrl, |
| | | ).then(res => { |
| | |
| | | |
| | | // |
| | | function fetchSubtasksByProType({ area, pType }) { |
| | | area.scensetypeid = transSceneType(area.scensetypeid); |
| | | const data = {...area} |
| | | data.scensetypeid = transSceneType(area.scensetypeid); |
| | | return post( |
| | | { |
| | | url: `/problemlist/type/subtask`, |
| | | params: { pType: pType }, |
| | | data: area, |
| | | data: data, |
| | | }, |
| | | inspectUrl, |
| | | ).then(res => { |
| | |
| | | } |
| | | |
| | | function fetchSubtaskSummaryByArea(area) { |
| | | area.scensetypeid = transSceneType(area.scensetypeid); |
| | | const data = {...area} |
| | | data.scensetypeid = transSceneType(area.scensetypeid); |
| | | return post( |
| | | { |
| | | url: `/subtask/summary/area`, |
| | | data: area, |
| | | data: data, |
| | | }, |
| | | inspectUrl, |
| | | ).then(res => { |
| | | res.data.data = getInspectionStatisticList(res.data.data); |
| | | return res.data; |
| | | // res.data = getInspectionStatisticList(res.data); |
| | | // return res; |
| | | // res.data.data = getInspectionStatisticList(res.data.data); |
| | | // return res.data; |
| | | res.data = getInspectionStatisticList(res.data); |
| | | return res; |
| | | }); |
| | | } |
| | | |