ucservice 1.3.0 → 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.
@@ -28342,6 +28342,73 @@ let location_url_location = {
28342
28342
  }
28343
28343
  }
28344
28344
  },
28345
+ listGisTrailNet: {
28346
+ //查询gis轨迹数据
28347
+
28348
+ /***
28349
+ **/
28350
+ url: '/scooper-app-msg/gis/queryGisTrails',
28351
+ method: 'GET',
28352
+ requestParam: {
28353
+ startTime: '',
28354
+ endTime: '',
28355
+ timespan: '',
28356
+ memId: '',
28357
+ accId: '',
28358
+ token: '',
28359
+ pageNumber: 1,
28360
+ pageSize: 50
28361
+ },
28362
+ responseParam: {
28363
+ code: '',
28364
+ //返回结果状态码
28365
+ message: '',
28366
+ systemTime: '',
28367
+ //yyyy-MM-dd HH:mm:ss
28368
+ data: {
28369
+ total: '',
28370
+ pageSize: '',
28371
+ pageNumber: '',
28372
+ list: [{
28373
+ altitude: 0,
28374
+ center: {
28375
+ longitude: 120.026576,
28376
+ latitude: 30.823369
28377
+ },
28378
+ childMapId: 0,
28379
+ corpId: 0,
28380
+ evtLevel: 0,
28381
+ extData: "",
28382
+ geoHash: "wtmr770xjumy",
28383
+ hasChild: false,
28384
+ id: 1,
28385
+ layerId: 1,
28386
+ layerLogicName: "person",
28387
+ mapId: 0,
28388
+ name: "单兵01",
28389
+ parentId: 0,
28390
+ permKey: "300000.000002.002",
28391
+ points: [{
28392
+ longitude: 0,
28393
+ latitude: 0
28394
+ }],
28395
+ posStatus: "offline",
28396
+ propKey: "6",
28397
+ rectMax: {
28398
+ longitude: 120.026576,
28399
+ latitude: 30.823369
28400
+ },
28401
+ rectMin: {
28402
+ longitude: 120.026576,
28403
+ latitude: 30.823369
28404
+ },
28405
+ speed: 0,
28406
+ type: "Point",
28407
+ updateTime: "2022-04-22 14:21:30"
28408
+ }]
28409
+ }
28410
+ }
28411
+ },
28345
28412
  listTypeLocationNet: {
28346
28413
  //按类型查询设备点位信息
28347
28414
 
@@ -30135,7 +30202,7 @@ let $ = __webpack_require__("1157");
30135
30202
 
30136
30203
  const loadJson = function (url, param, backSuccfn, async, method, headers) {
30137
30204
  method = method ? method : 'POST';
30138
- async = async == undefined ? true : async;
30205
+ async = async == undefined || async == '' ? true : async;
30139
30206
 
30140
30207
  for (let key in param) {
30141
30208
  //检测手机号码, 外地号码头部(非杭州)加00,本地号码加0
@@ -30154,7 +30221,7 @@ const loadJson = function (url, param, backSuccfn, async, method, headers) {
30154
30221
  }
30155
30222
 
30156
30223
  let ajaxContent = {
30157
- 'method': method,
30224
+ 'type': method,
30158
30225
  'url': url,
30159
30226
  'data': param,
30160
30227
  'async': async
@@ -31123,6 +31190,20 @@ const locationOp = sip => {
31123
31190
  }, '', net.method);
31124
31191
  });
31125
31192
  },
31193
+ gisList: function (param) {
31194
+ let net = location_url.listGisTrailNet;
31195
+ return new Promise((resolve, reject) => {
31196
+ loadJson(server_ + net.url, { ...param
31197
+ }, function (ret) {
31198
+ if (ret.code == 0) {
31199
+ resolve(ret);
31200
+ } else {
31201
+ console.log("获取GIS定位数据失败", ret.code);
31202
+ reject(ret.code);
31203
+ }
31204
+ }, '', net.method);
31205
+ });
31206
+ },
31126
31207
  locateDeviceByType: function (param) {
31127
31208
  let net = location_url.listTypeLocationNet;
31128
31209
  return new Promise((resolve, reject) => {
Binary file