ucservice 1.4.4 → 1.4.7
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 +101 -21
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +101 -21
- 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 +26 -0
- package/package.json +1 -1
- package/src/net_url/record_url.js +46 -1
- package/src/scooper.video.js +18 -18
package/index.js
CHANGED
|
@@ -1113,6 +1113,32 @@ export const recordOp = (sip) => {
|
|
|
1113
1113
|
}, '', net.method);
|
|
1114
1114
|
});
|
|
1115
1115
|
},
|
|
1116
|
+
callRecordListPage: function(param){
|
|
1117
|
+
let net = record.queryCallRecordNet;
|
|
1118
|
+
return new Promise((resolve, reject) => {
|
|
1119
|
+
loadJson(server_+net.url, { ...param }, function(ret){
|
|
1120
|
+
if(ret.code == 0) {
|
|
1121
|
+
resolve(ret);
|
|
1122
|
+
}else{
|
|
1123
|
+
console.log("分页查询通话录音录像表失败", ret.code);
|
|
1124
|
+
reject(ret.code);
|
|
1125
|
+
}
|
|
1126
|
+
}, '', net.method);
|
|
1127
|
+
});
|
|
1128
|
+
},
|
|
1129
|
+
meetRecordListPage: function(param){
|
|
1130
|
+
let net = record.queryMeetingRecordNet;
|
|
1131
|
+
return new Promise((resolve, reject) => {
|
|
1132
|
+
loadJson(server_+net.url, { ...param }, function(ret){
|
|
1133
|
+
if(ret.code == 0) {
|
|
1134
|
+
resolve(ret);
|
|
1135
|
+
}else{
|
|
1136
|
+
console.log("分页查询会议录音录像表失败", ret.code);
|
|
1137
|
+
reject(ret.code);
|
|
1138
|
+
}
|
|
1139
|
+
}, '', net.method);
|
|
1140
|
+
});
|
|
1141
|
+
},
|
|
1116
1142
|
notifyPageList: function(param){
|
|
1117
1143
|
let net = record.queryRecordNotifyNet;
|
|
1118
1144
|
return new Promise((resolve, reject) => {
|
package/package.json
CHANGED
|
@@ -39,10 +39,55 @@ let record = {
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
|
|
42
|
+
queryCallRecordNet: { //获取通话录音录像
|
|
43
|
+
url: '/scooper-record/data/call/queryCallRecords',
|
|
44
|
+
method: 'GET',
|
|
45
|
+
requestParam: {
|
|
46
|
+
token: '',
|
|
47
|
+
timeMin: '',
|
|
48
|
+
timeMax: '',
|
|
49
|
+
pageNumber: 1,
|
|
50
|
+
fileType: 0, //0:录音,1:录像
|
|
51
|
+
pageSize: 10
|
|
52
|
+
},
|
|
53
|
+
responseParam: {
|
|
54
|
+
code: '', //返回结果状态码
|
|
55
|
+
message: '',
|
|
56
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
57
|
+
data: {
|
|
58
|
+
pageNumber: 1,
|
|
59
|
+
pageSize: 10,
|
|
60
|
+
total: 1884,
|
|
61
|
+
list: []
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
queryMeetingRecordNet: { //获取会议录音录像
|
|
66
|
+
url: '/scooper-record/data/meeting/queryMeetingRecords',
|
|
67
|
+
method: 'GET',
|
|
68
|
+
requestParam: {
|
|
69
|
+
token: '',
|
|
70
|
+
timeMin: '',
|
|
71
|
+
timeMax: '',
|
|
72
|
+
pageNumber: 1,
|
|
73
|
+
pageSize: 10
|
|
74
|
+
},
|
|
75
|
+
responseParam: {
|
|
76
|
+
code: '', //返回结果状态码
|
|
77
|
+
message: '',
|
|
78
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
79
|
+
data: {
|
|
80
|
+
pageNumber: 1,
|
|
81
|
+
pageSize: 10,
|
|
82
|
+
total: 1884,
|
|
83
|
+
list: []
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
42
87
|
queryVideoNet: { //分页查询录像 (通话录像/会议录像)
|
|
43
88
|
/***录像查询接口
|
|
44
89
|
**/
|
|
45
|
-
url: '/scooper-record/data/
|
|
90
|
+
url: '/scooper-record/data/video/queryVideo',
|
|
46
91
|
requestParam: {
|
|
47
92
|
token: '',
|
|
48
93
|
recType: '', //录像类型 1:通话录像(调度&平台)2:会议录像
|
package/src/scooper.video.js
CHANGED
|
@@ -2086,18 +2086,18 @@
|
|
|
2086
2086
|
$(video).attr('class', 'video-box');
|
|
2087
2087
|
video.style.position = 'absolute';
|
|
2088
2088
|
video.style.transform = 'rotate(270deg)';
|
|
2089
|
-
$(video).css('max-height', '');
|
|
2090
|
-
$(video).css('max-width', '');
|
|
2091
|
-
if(
|
|
2092
|
-
$(video).css('width', 'auto');
|
|
2093
|
-
$(video).css('height', liWidth);
|
|
2094
|
-
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2095
|
-
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
2096
|
-
}else { //视频纵向留白
|
|
2089
|
+
$(video).css('max-height', 'none');
|
|
2090
|
+
$(video).css('max-width', 'none');
|
|
2091
|
+
if(videoHeight * liHeight / videoWidth < liWidth){ //视频横向留白
|
|
2097
2092
|
$(video).css('width', liHeight);
|
|
2098
2093
|
$(video).css('height', 'auto');
|
|
2099
2094
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2100
|
-
$(video).css('top', 'calc(-' + liHeight /
|
|
2095
|
+
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
2096
|
+
}else { //视频纵向留白
|
|
2097
|
+
$(video).css('width', 'auto');
|
|
2098
|
+
$(video).css('height', liWidth);
|
|
2099
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
2100
|
+
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2101
2101
|
}
|
|
2102
2102
|
}else if(rotateIndex == 2){ //2
|
|
2103
2103
|
$(video).attr('class', 'video-box');
|
|
@@ -2113,18 +2113,18 @@
|
|
|
2113
2113
|
$(video).attr('class', 'video-box');
|
|
2114
2114
|
video.style.position = 'absolute';
|
|
2115
2115
|
video.style.transform = 'rotate(90deg)';
|
|
2116
|
-
$(video).css('max-height', '');
|
|
2117
|
-
$(video).css('max-width', '');
|
|
2118
|
-
if(
|
|
2119
|
-
$(video).css('width', 'auto');
|
|
2120
|
-
$(video).css('height', liWidth);
|
|
2121
|
-
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2122
|
-
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
2123
|
-
}else { //视频纵向留白
|
|
2116
|
+
$(video).css('max-height', 'none');
|
|
2117
|
+
$(video).css('max-width', 'none');
|
|
2118
|
+
if(videoHeight * liHeight / videoWidth < liWidth){ //视频横向留白
|
|
2124
2119
|
$(video).css('width', liHeight);
|
|
2125
2120
|
$(video).css('height', 'auto');
|
|
2126
2121
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2127
|
-
$(video).css('top', 'calc(-' + liHeight /
|
|
2122
|
+
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
2123
|
+
}else { //视频纵向留白
|
|
2124
|
+
$(video).css('width', 'auto');
|
|
2125
|
+
$(video).css('height', liWidth);
|
|
2126
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
2127
|
+
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
2130
|
},
|