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.
- package/dist/ucservice.common.js +83 -2
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +83 -2
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +2 -2
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/index.js +13 -0
- package/package.json +1 -1
- package/src/common-request.js +2 -2
- package/src/net_url/location_url.js +52 -0
package/dist/ucservice.umd.js
CHANGED
|
@@ -28351,6 +28351,73 @@ let location_url_location = {
|
|
|
28351
28351
|
}
|
|
28352
28352
|
}
|
|
28353
28353
|
},
|
|
28354
|
+
listGisTrailNet: {
|
|
28355
|
+
//查询gis轨迹数据
|
|
28356
|
+
|
|
28357
|
+
/***
|
|
28358
|
+
**/
|
|
28359
|
+
url: '/scooper-app-msg/gis/queryGisTrails',
|
|
28360
|
+
method: 'GET',
|
|
28361
|
+
requestParam: {
|
|
28362
|
+
startTime: '',
|
|
28363
|
+
endTime: '',
|
|
28364
|
+
timespan: '',
|
|
28365
|
+
memId: '',
|
|
28366
|
+
accId: '',
|
|
28367
|
+
token: '',
|
|
28368
|
+
pageNumber: 1,
|
|
28369
|
+
pageSize: 50
|
|
28370
|
+
},
|
|
28371
|
+
responseParam: {
|
|
28372
|
+
code: '',
|
|
28373
|
+
//返回结果状态码
|
|
28374
|
+
message: '',
|
|
28375
|
+
systemTime: '',
|
|
28376
|
+
//yyyy-MM-dd HH:mm:ss
|
|
28377
|
+
data: {
|
|
28378
|
+
total: '',
|
|
28379
|
+
pageSize: '',
|
|
28380
|
+
pageNumber: '',
|
|
28381
|
+
list: [{
|
|
28382
|
+
altitude: 0,
|
|
28383
|
+
center: {
|
|
28384
|
+
longitude: 120.026576,
|
|
28385
|
+
latitude: 30.823369
|
|
28386
|
+
},
|
|
28387
|
+
childMapId: 0,
|
|
28388
|
+
corpId: 0,
|
|
28389
|
+
evtLevel: 0,
|
|
28390
|
+
extData: "",
|
|
28391
|
+
geoHash: "wtmr770xjumy",
|
|
28392
|
+
hasChild: false,
|
|
28393
|
+
id: 1,
|
|
28394
|
+
layerId: 1,
|
|
28395
|
+
layerLogicName: "person",
|
|
28396
|
+
mapId: 0,
|
|
28397
|
+
name: "单兵01",
|
|
28398
|
+
parentId: 0,
|
|
28399
|
+
permKey: "300000.000002.002",
|
|
28400
|
+
points: [{
|
|
28401
|
+
longitude: 0,
|
|
28402
|
+
latitude: 0
|
|
28403
|
+
}],
|
|
28404
|
+
posStatus: "offline",
|
|
28405
|
+
propKey: "6",
|
|
28406
|
+
rectMax: {
|
|
28407
|
+
longitude: 120.026576,
|
|
28408
|
+
latitude: 30.823369
|
|
28409
|
+
},
|
|
28410
|
+
rectMin: {
|
|
28411
|
+
longitude: 120.026576,
|
|
28412
|
+
latitude: 30.823369
|
|
28413
|
+
},
|
|
28414
|
+
speed: 0,
|
|
28415
|
+
type: "Point",
|
|
28416
|
+
updateTime: "2022-04-22 14:21:30"
|
|
28417
|
+
}]
|
|
28418
|
+
}
|
|
28419
|
+
}
|
|
28420
|
+
},
|
|
28354
28421
|
listTypeLocationNet: {
|
|
28355
28422
|
//按类型查询设备点位信息
|
|
28356
28423
|
|
|
@@ -30144,7 +30211,7 @@ let $ = __webpack_require__("1157");
|
|
|
30144
30211
|
|
|
30145
30212
|
const loadJson = function (url, param, backSuccfn, async, method, headers) {
|
|
30146
30213
|
method = method ? method : 'POST';
|
|
30147
|
-
async = async == undefined ? true : async;
|
|
30214
|
+
async = async == undefined || async == '' ? true : async;
|
|
30148
30215
|
|
|
30149
30216
|
for (let key in param) {
|
|
30150
30217
|
//检测手机号码, 外地号码头部(非杭州)加00,本地号码加0
|
|
@@ -30163,7 +30230,7 @@ const loadJson = function (url, param, backSuccfn, async, method, headers) {
|
|
|
30163
30230
|
}
|
|
30164
30231
|
|
|
30165
30232
|
let ajaxContent = {
|
|
30166
|
-
'
|
|
30233
|
+
'type': method,
|
|
30167
30234
|
'url': url,
|
|
30168
30235
|
'data': param,
|
|
30169
30236
|
'async': async
|
|
@@ -31132,6 +31199,20 @@ const locationOp = sip => {
|
|
|
31132
31199
|
}, '', net.method);
|
|
31133
31200
|
});
|
|
31134
31201
|
},
|
|
31202
|
+
gisList: function (param) {
|
|
31203
|
+
let net = location_url.listGisTrailNet;
|
|
31204
|
+
return new Promise((resolve, reject) => {
|
|
31205
|
+
loadJson(server_ + net.url, { ...param
|
|
31206
|
+
}, function (ret) {
|
|
31207
|
+
if (ret.code == 0) {
|
|
31208
|
+
resolve(ret);
|
|
31209
|
+
} else {
|
|
31210
|
+
console.log("获取GIS定位数据失败", ret.code);
|
|
31211
|
+
reject(ret.code);
|
|
31212
|
+
}
|
|
31213
|
+
}, '', net.method);
|
|
31214
|
+
});
|
|
31215
|
+
},
|
|
31135
31216
|
locateDeviceByType: function (param) {
|
|
31136
31217
|
let net = location_url.listTypeLocationNet;
|
|
31137
31218
|
return new Promise((resolve, reject) => {
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|