ucservice 1.0.9 → 1.1.2
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/README.en.md +36 -0
- package/README.md +37 -0
- package/dist/ucservice.common.js +116 -6
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +116 -6
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- 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 +1 -1
- package/src/net_url/account_net_url.js +17 -1
- package/src/net_url/dept_ry_url.js +13 -1
- package/src/net_url/location_url.js +47 -0
- package/src/net_url/meet_url.js +1 -1
- package/src/scooper.dispatch.js +3107 -0
package/README.en.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# ucservice
|
|
2
|
+
|
|
3
|
+
#### Description
|
|
4
|
+
使用janus,cometd等技术组建成配套叙简通信软件的通信服务组件
|
|
5
|
+
|
|
6
|
+
#### Software Architecture
|
|
7
|
+
Software architecture description
|
|
8
|
+
|
|
9
|
+
#### Installation
|
|
10
|
+
|
|
11
|
+
1. xxxx
|
|
12
|
+
2. xxxx
|
|
13
|
+
3. xxxx
|
|
14
|
+
|
|
15
|
+
#### Instructions
|
|
16
|
+
|
|
17
|
+
1. xxxx
|
|
18
|
+
2. xxxx
|
|
19
|
+
3. xxxx
|
|
20
|
+
|
|
21
|
+
#### Contribution
|
|
22
|
+
|
|
23
|
+
1. Fork the repository
|
|
24
|
+
2. Create Feat_xxx branch
|
|
25
|
+
3. Commit your code
|
|
26
|
+
4. Create Pull Request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#### Gitee Feature
|
|
30
|
+
|
|
31
|
+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# ucservice
|
|
2
|
+
|
|
3
|
+
#### 介绍
|
|
4
|
+
使用janus,cometd等技术组建成配套叙简通信软件的通信服务组件
|
|
5
|
+
|
|
6
|
+
#### 软件架构
|
|
7
|
+
软件架构说明
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
#### 安装教程
|
|
11
|
+
|
|
12
|
+
1. xxxx
|
|
13
|
+
2. xxxx
|
|
14
|
+
3. xxxx
|
|
15
|
+
|
|
16
|
+
#### 使用说明
|
|
17
|
+
|
|
18
|
+
1. xxxx
|
|
19
|
+
2. xxxx
|
|
20
|
+
3. xxxx
|
|
21
|
+
|
|
22
|
+
#### 参与贡献
|
|
23
|
+
|
|
24
|
+
1. Fork 本仓库
|
|
25
|
+
2. 新建 Feat_xxx 分支
|
|
26
|
+
3. 提交代码
|
|
27
|
+
4. 新建 Pull Request
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#### 特技
|
|
31
|
+
|
|
32
|
+
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
33
|
+
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
34
|
+
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
|
35
|
+
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
|
36
|
+
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
37
|
+
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/dist/ucservice.common.js
CHANGED
|
@@ -25516,8 +25516,26 @@ let account = {
|
|
|
25516
25516
|
//帐号显示名称
|
|
25517
25517
|
accType: '',
|
|
25518
25518
|
//帐号类型,该字段已弃用 0-管理员; 1-一般用户; 2-调度操作员
|
|
25519
|
-
memId: ''
|
|
25520
|
-
|
|
25519
|
+
memId: '',
|
|
25520
|
+
//通讯录成员ID (帐号关联成员)
|
|
25521
|
+
relDispUsername: '',
|
|
25522
|
+
useSbc: '',
|
|
25523
|
+
//是否启用边界网关0-否|1-是
|
|
25524
|
+
businessConfigs: '',
|
|
25525
|
+
//业务权限,eg: sip,JK,dispatch,whiteboard,appMsg,video$!$ 分隔符'$!$'后面的全部是账号拥有的权限
|
|
25526
|
+
sipTel: '',
|
|
25527
|
+
dispatchAccount: '',
|
|
25528
|
+
roleIds: 1,
|
|
25529
|
+
isOperAcc: false,
|
|
25530
|
+
centerId: 0,
|
|
25531
|
+
operLevel: 0,
|
|
25532
|
+
operType: 0,
|
|
25533
|
+
operatorId: 0,
|
|
25534
|
+
mainTel: '',
|
|
25535
|
+
viceTel: '',
|
|
25536
|
+
corpId: '',
|
|
25537
|
+
pocTel: '',
|
|
25538
|
+
operMobileTel: ''
|
|
25521
25539
|
},
|
|
25522
25540
|
responseParam: {
|
|
25523
25541
|
code: '',
|
|
@@ -26730,8 +26748,23 @@ let dept_ry = {
|
|
|
26730
26748
|
// F 传真号码
|
|
26731
26749
|
memEmail: '',
|
|
26732
26750
|
// F 电子邮箱
|
|
26733
|
-
dutyId: ''
|
|
26734
|
-
|
|
26751
|
+
dutyId: '',
|
|
26752
|
+
// F 职务id
|
|
26753
|
+
deptName: '',
|
|
26754
|
+
isActive: 1,
|
|
26755
|
+
dutyName: '',
|
|
26756
|
+
//职务名称
|
|
26757
|
+
memLevel: 1,
|
|
26758
|
+
accId: '',
|
|
26759
|
+
//帐号id
|
|
26760
|
+
memMsgLevel: '',
|
|
26761
|
+
businessConfigs: '',
|
|
26762
|
+
//业务权限
|
|
26763
|
+
isOperAcc: true,
|
|
26764
|
+
mainTel: '',
|
|
26765
|
+
operMobileTel: '',
|
|
26766
|
+
mobileTel: '',
|
|
26767
|
+
viceTel: ''
|
|
26735
26768
|
},
|
|
26736
26769
|
responseParam: {
|
|
26737
26770
|
code: '',
|
|
@@ -28301,6 +28334,69 @@ let location_url_location = {
|
|
|
28301
28334
|
}
|
|
28302
28335
|
}
|
|
28303
28336
|
},
|
|
28337
|
+
listTypeLocationNet: {
|
|
28338
|
+
//按类型查询设备点位信息
|
|
28339
|
+
|
|
28340
|
+
/***按类型查询,类型:1.移动点位:person, 2.固定点位:fixed, 3.视频监控:camera
|
|
28341
|
+
**/
|
|
28342
|
+
url: '/common-gis-web/data/gisquery/search',
|
|
28343
|
+
method: 'POST',
|
|
28344
|
+
requestParam: {
|
|
28345
|
+
mapId: '',
|
|
28346
|
+
//地图类型
|
|
28347
|
+
layers: '' //设备类型
|
|
28348
|
+
|
|
28349
|
+
},
|
|
28350
|
+
responseParam: {
|
|
28351
|
+
code: '',
|
|
28352
|
+
//返回结果状态码
|
|
28353
|
+
message: '',
|
|
28354
|
+
systemTime: '',
|
|
28355
|
+
//yyyy-MM-dd HH:mm:ss
|
|
28356
|
+
data: {
|
|
28357
|
+
total: '',
|
|
28358
|
+
pageSize: '',
|
|
28359
|
+
pageNumber: '',
|
|
28360
|
+
list: [{
|
|
28361
|
+
altitude: 0,
|
|
28362
|
+
center: {
|
|
28363
|
+
longitude: 120.026576,
|
|
28364
|
+
latitude: 30.823369
|
|
28365
|
+
},
|
|
28366
|
+
childMapId: 0,
|
|
28367
|
+
corpId: 0,
|
|
28368
|
+
evtLevel: 0,
|
|
28369
|
+
extData: "",
|
|
28370
|
+
geoHash: "wtmr770xjumy",
|
|
28371
|
+
hasChild: false,
|
|
28372
|
+
id: 1,
|
|
28373
|
+
layerId: 1,
|
|
28374
|
+
layerLogicName: "person",
|
|
28375
|
+
mapId: 0,
|
|
28376
|
+
name: "单兵01",
|
|
28377
|
+
parentId: 0,
|
|
28378
|
+
permKey: "300000.000002.002",
|
|
28379
|
+
points: [{
|
|
28380
|
+
longitude: 0,
|
|
28381
|
+
latitude: 0
|
|
28382
|
+
}],
|
|
28383
|
+
posStatus: "offline",
|
|
28384
|
+
propKey: "6",
|
|
28385
|
+
rectMax: {
|
|
28386
|
+
longitude: 120.026576,
|
|
28387
|
+
latitude: 30.823369
|
|
28388
|
+
},
|
|
28389
|
+
rectMin: {
|
|
28390
|
+
longitude: 120.026576,
|
|
28391
|
+
latitude: 30.823369
|
|
28392
|
+
},
|
|
28393
|
+
speed: 0,
|
|
28394
|
+
type: "Point",
|
|
28395
|
+
updateTime: "2022-04-22 14:21:30"
|
|
28396
|
+
}]
|
|
28397
|
+
}
|
|
28398
|
+
}
|
|
28399
|
+
},
|
|
28304
28400
|
|
|
28305
28401
|
/**
|
|
28306
28402
|
* MQTT订阅
|
|
@@ -28486,7 +28582,7 @@ let meet = {
|
|
|
28486
28582
|
|
|
28487
28583
|
/***查询当前所有会场信息
|
|
28488
28584
|
**/
|
|
28489
|
-
url: '/dispatch-web/api/meet/
|
|
28585
|
+
url: '/dispatch-web/api/meet/listMeets',
|
|
28490
28586
|
requestParam: {
|
|
28491
28587
|
token: ''
|
|
28492
28588
|
},
|
|
@@ -29929,7 +30025,7 @@ const loadJson = function (url, param, backSuccfn, async, method, headers) {
|
|
|
29929
30025
|
method = method ? method : 'POST';
|
|
29930
30026
|
async = async == undefined ? true : async;
|
|
29931
30027
|
|
|
29932
|
-
for (key in param) {
|
|
30028
|
+
for (let key in param) {
|
|
29933
30029
|
//检测手机号码, 外地号码头部(非杭州)加00,本地号码加0
|
|
29934
30030
|
if (/_phone01$/.test(key)) {
|
|
29935
30031
|
let tel = key.replace(/_phone01$/, "");
|
|
@@ -30913,6 +31009,20 @@ const locationOp = sip => {
|
|
|
30913
31009
|
}
|
|
30914
31010
|
}, '', net.method);
|
|
30915
31011
|
});
|
|
31012
|
+
},
|
|
31013
|
+
locateDeviceByType: function (param) {
|
|
31014
|
+
let net = location_url.listTypeLocationNet;
|
|
31015
|
+
return new Promise((resolve, reject) => {
|
|
31016
|
+
loadJson(server_ + net.url, { ...param
|
|
31017
|
+
}, function (ret) {
|
|
31018
|
+
if (ret.code == 0) {
|
|
31019
|
+
resolve(ret);
|
|
31020
|
+
} else {
|
|
31021
|
+
console.log("获取设备信息失败", ret.code);
|
|
31022
|
+
reject(ret.code);
|
|
31023
|
+
}
|
|
31024
|
+
}, '', net.method);
|
|
31025
|
+
});
|
|
30916
31026
|
}
|
|
30917
31027
|
};
|
|
30918
31028
|
};
|
|
Binary file
|