ucservice 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -766,6 +766,19 @@ export const locationOp = (sip) => {
766
766
  }, '', net.method);
767
767
  });
768
768
  },
769
+ gisList: function(param){
770
+ let net = location.listGisTrailNet;
771
+ return new Promise((resolve, reject) => {
772
+ loadJson(server_+net.url, { ...param }, function(ret){
773
+ if(ret.code == 0) {
774
+ resolve(ret);
775
+ }else{
776
+ console.log("获取GIS定位数据失败", ret.code);
777
+ reject(ret.code);
778
+ }
779
+ }, '', net.method);
780
+ });
781
+ },
769
782
  locateDeviceByType: function(param){
770
783
  let net = location.listTypeLocationNet;
771
784
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ucservice",
3
3
  "private": false,
4
- "version": "1.3.2",
4
+ "version": "1.3.3",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
@@ -130,6 +130,58 @@ let location = {
130
130
  }
131
131
  },
132
132
 
133
+ listGisTrailNet: { //查询gis轨迹数据
134
+ /***
135
+ **/
136
+ url: '/scooper-app-msg/gis/queryGisTrails',
137
+ method: 'GET',
138
+ requestParam: {
139
+ startTime: '',
140
+ endTime: '',
141
+ timespan: '',
142
+ memId: '',
143
+ accId: '',
144
+ token: '',
145
+ pageNumber: 1,
146
+ pageSize: 50
147
+ },
148
+ responseParam: {
149
+ code: '', //返回结果状态码
150
+ message: '',
151
+ systemTime: '', //yyyy-MM-dd HH:mm:ss
152
+ data: {
153
+ total: '',
154
+ pageSize: '',
155
+ pageNumber: '',
156
+ list: [{
157
+ altitude: 0,
158
+ center: {longitude: 120.026576, latitude: 30.823369},
159
+ childMapId: 0,
160
+ corpId: 0,
161
+ evtLevel: 0,
162
+ extData: "",
163
+ geoHash: "wtmr770xjumy",
164
+ hasChild: false,
165
+ id: 1,
166
+ layerId: 1,
167
+ layerLogicName: "person",
168
+ mapId: 0,
169
+ name: "单兵01",
170
+ parentId: 0,
171
+ permKey: "300000.000002.002",
172
+ points: [{longitude: 0, latitude: 0}],
173
+ posStatus: "offline",
174
+ propKey: "6",
175
+ rectMax: {longitude: 120.026576, latitude: 30.823369},
176
+ rectMin: {longitude: 120.026576, latitude: 30.823369},
177
+ speed: 0,
178
+ type: "Point",
179
+ updateTime: "2022-04-22 14:21:30"
180
+ }]
181
+ }
182
+ }
183
+ },
184
+
133
185
  listTypeLocationNet: { //按类型查询设备点位信息
134
186
  /***按类型查询,类型:1.移动点位:person, 2.固定点位:fixed, 3.视频监控:camera
135
187
  **/