1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| /**
| * 现场巡查任务相关数据接口
| */
| import { get, post } from '../../services/baseRequset';
| import { inspectUrl, inspectPicUrl } from '../../config/index';
| import { transSceneType } from '../../model/sceneType';
|
| export default {
| /**
| * 获取问题类型选项
| */
| fetchProblemType({ cityCode, districtCode, sceneTypeId }) {
| return get(
| {
| url: `/problemtype/search`,
| params: {
| taskTypeId: 1,
| cityCode,
| districtCode,
| sceneTypeId,
| },
| },
| inspectUrl,
| ).then(res => {
| return res.data;
| });
| },
| // 获取问题建议
| getSuggestion() {
| return get(
| {
| url: `/changeadvice`,
| },
| inspectUrl,
| ).then(res => {
| return res.data;
| });
| },
| };
|
|