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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
| /*!
| * 地图数据管理
| */
| import Vue from 'vue'
|
| /**
| * 获取地图列表
| * @param params
| * @param flag
| * @returns {*}
| */
| const mapList = (params = {}, flag = false) => Vue.prototype.$dataRoomAxios.get('/visual/bigScreen/map/list', params, flag)
|
| /**
| * 新增地图
| * @param params
| * @param flag
| * @returns {*}
| */
| const mapAdd = (params = {}, flag = false) => Vue.prototype.$dataRoomAxios.post('/visual/bigScreen/map/add', params, flag)
|
| /**
| * 更新地图
| * @param params
| * @param flag
| * @returns {*}
| */
| const mapUpdate = (params = {}, flag = false) => Vue.prototype.$dataRoomAxios.post('/visual/bigScreen/map/update', params, flag)
|
| /**
| * 删除地图
| * @param id
| */
| const mapDelete = (id = '-1') => Vue.prototype.$dataRoomAxios.post(`/visual/bigScreen/map/delete/${id}`)
|
| /**
| * 级联删除地图
| * @param id
| */
| const mapCascadeDelete = (id = '-1') => Vue.prototype.$dataRoomAxios.post(`/visual/bigScreen/map/cascadingDelete/${id}`)
|
| /**
| * 根据父编码解析父级json中的子级
| * @param code
| */
| const getMapChildFromGeoJson = (code = '-1') => Vue.prototype.$dataRoomAxios.get(`/visual/bigScreen/map/getMapChildFromGeoJson/${code}`)
|
| /**
| * 上传地图json
| * @param params
| * @param flag
| */
| const uploadGeoJson = (params = {}, flag = false) => Vue.prototype.$dataRoomAxios.post('/visual/bigScreen/map/upload', params, flag)
|
| /**
| * 编码重复校验
| * @param params
| * @param flag
| */
| const repeatCheck = (params = {}, flag = false) => Vue.prototype.$dataRoomAxios.post('/visual/bigScreen/map/repeat/code', params, flag)
|
| /**
| * 名称重复校验
| * @param params
| * @param flag
| */
| const nameRepeatCheck = (params = {}, flag = false) => Vue.prototype.$dataRoomAxios.post('/visual/bigScreen/map/repeat/name', params, flag)
|
| /**
| * 根据父编码解析父级json中的子级
| * @param id
| */
| const mapInfo = (id = '-1') => Vue.prototype.$dataRoomAxios.get(`/visual/bigScreen/map/info/${id}`)
|
| export {
| mapList,
| mapAdd,
| mapUpdate,
| mapDelete,
| mapCascadeDelete,
| getMapChildFromGeoJson,
| uploadGeoJson,
| repeatCheck,
| nameRepeatCheck,
| mapInfo
| }
|
|