ucservice 1.4.5 → 1.4.8
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 +99 -9
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +99 -9
- 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 +16 -9
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
|
@@ -614,7 +614,14 @@
|
|
|
614
614
|
me._opts.extra = extra;
|
|
615
615
|
|
|
616
616
|
//设置旋转了的视频样式
|
|
617
|
-
|
|
617
|
+
let videoLi = document.getElementById('videoRef').querySelectorAll('li')
|
|
618
|
+
me.VIDEO_DATA.forEach((item, index) => {
|
|
619
|
+
let tel = item.video
|
|
620
|
+
if (!tel&&item.id) {
|
|
621
|
+
videoLi[index].querySelector('video').style = ''
|
|
622
|
+
videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0)
|
|
623
|
+
}
|
|
624
|
+
})
|
|
618
625
|
},
|
|
619
626
|
|
|
620
627
|
/**
|
|
@@ -2091,13 +2098,13 @@
|
|
|
2091
2098
|
if(videoHeight * liHeight / videoWidth < liWidth){ //视频横向留白
|
|
2092
2099
|
$(video).css('width', liHeight);
|
|
2093
2100
|
$(video).css('height', 'auto');
|
|
2094
|
-
$(video).css('left', 'calc(' +
|
|
2095
|
-
$(video).css('top', 'calc(-' +
|
|
2101
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2102
|
+
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
2096
2103
|
}else { //视频纵向留白
|
|
2097
2104
|
$(video).css('width', 'auto');
|
|
2098
2105
|
$(video).css('height', liWidth);
|
|
2099
|
-
$(video).css('left', 'calc(' + liWidth
|
|
2100
|
-
$(video).css('top', 'calc(
|
|
2106
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
2107
|
+
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2101
2108
|
}
|
|
2102
2109
|
}else if(rotateIndex == 2){ //2
|
|
2103
2110
|
$(video).attr('class', 'video-box');
|
|
@@ -2118,13 +2125,13 @@
|
|
|
2118
2125
|
if(videoHeight * liHeight / videoWidth < liWidth){ //视频横向留白
|
|
2119
2126
|
$(video).css('width', liHeight);
|
|
2120
2127
|
$(video).css('height', 'auto');
|
|
2121
|
-
$(video).css('left', 'calc(' +
|
|
2122
|
-
$(video).css('top', 'calc(-' +
|
|
2128
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2129
|
+
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
2123
2130
|
}else { //视频纵向留白
|
|
2124
2131
|
$(video).css('width', 'auto');
|
|
2125
2132
|
$(video).css('height', liWidth);
|
|
2126
|
-
$(video).css('left', 'calc(' + liWidth
|
|
2127
|
-
$(video).css('top', 'calc(
|
|
2133
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
2134
|
+
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2128
2135
|
}
|
|
2129
2136
|
}
|
|
2130
2137
|
},
|