|
|
@@ -125,7 +125,7 @@ function fullscreen() {
|
|
|
' </div>' +
|
|
|
' <div class="row" style="padding:0px 5px 0px 5px;text-align:center;margin:0px">' +
|
|
|
' <select class="form-control" id="full_video_list" style="width:200px;float:left;display:none;"></select>' +
|
|
|
- ' <div class="col-md-4 hidden" style="padding-left:0">' +
|
|
|
+ ' <div class="col-md-4 " style="padding-left:0">' +
|
|
|
' <div class="input-group" style="padding-left:0">' +
|
|
|
' <input type="text" id="full_video_pos" style="height:42px" class="form-control" placeholder="时间偏移值">' +
|
|
|
' <span class="input-group-btn">' +
|
|
|
@@ -138,7 +138,7 @@ function fullscreen() {
|
|
|
' <button type="button" class="btn btn-info" onclick="doAction(\'stop\')"><i class="icon icon-pause icon-2x"></i></button>' +
|
|
|
' <button type="button" class="btn btn-info" onclick="doAction(\'fast\')"><i class="icon icon-forward icon-2x"></i><span id=\"full_fast_info\"></span></button>' +
|
|
|
' <button type="button" class="btn btn-info" onclick="doAction(\'slow\')"><span id=\"full_slow_info\"></span><i class="icon icon-backward icon-2x"></i></button>' +
|
|
|
- ' <button type="button" class="btn btn-danger hidden" style="width:51px;height:42px" id="full_video_btn_start" onclick="doAction(\'video_start\')"><img style="width:30px" src="/images/movie.png"></img></i></button>' +
|
|
|
+ ' <button type="button" class="btn btn-danger " style="width:51px;height:42px" id="full_video_btn_start" onclick="doAction(\'video_start\')"><img style="width:30px" src="/images/movie.png"></img></i></button>' +
|
|
|
' <button type="button" class="btn btn-danger hidden" style="width:51px;height:42px" id="full_video_btn_stop" onclick="doAction(\'video_stop\')"><i class="icon icon-stop icon-2x"></i></button>' +
|
|
|
' <button type="button" class="btn btn-success" onclick="doAction(\'screenshot\')"><i class="icon icon-camera icon-2x"></i></button>' +
|
|
|
' </div>' +
|
|
|
@@ -185,33 +185,34 @@ function getUserCheckCount() {
|
|
|
"id": $.checkTask.id,
|
|
|
"checked_person": $.checkTask.checked_person
|
|
|
};
|
|
|
- post_common_service("/task/getUserCount/", param, function (userList) {
|
|
|
- if(userList){
|
|
|
+ post_common_service("/task/getUserCount/", param, function(userList) {
|
|
|
+ if (userList) {
|
|
|
$("#checked_count").html(userList.length);
|
|
|
- }else{
|
|
|
- $("#checked_count").html(0);
|
|
|
+ } else {
|
|
|
+ $("#checked_count").html(0);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function checkUserCount() {
|
|
|
var param = {
|
|
|
- "id":$.checkTask.id,
|
|
|
- "checked_person":$.checkTask.checked_person,
|
|
|
- "class_type":$.checkTask.class_type
|
|
|
+ "id": $.checkTask.id,
|
|
|
+ "checked_person": $.checkTask.checked_person,
|
|
|
+ "class_type": $.checkTask.class_type
|
|
|
};
|
|
|
- post_common_service("/task/getUserCount/", param, function(data){
|
|
|
- if(data>=2){
|
|
|
+ post_common_service("/task/getUserCount/", param, function(data) {
|
|
|
+ if (data >= 2) {
|
|
|
layer.msg("本周期稽查次数已满,不能再被稽查!", {
|
|
|
- time: 2000//20s后自动关闭
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
});
|
|
|
}
|
|
|
-function showCheckDetailCount(){
|
|
|
-
|
|
|
+
|
|
|
+function showCheckDetailCount() {
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function initCheckAppealBtns() {
|
|
|
@@ -439,17 +440,33 @@ function genPicstr(imgSrc) {
|
|
|
var src = imgSrc;
|
|
|
if (!src.startWith("http"))
|
|
|
src = base_image_server_url + src;
|
|
|
+
|
|
|
+ var ispic = true;
|
|
|
+ var videosrc = src;
|
|
|
+ if (src.indexOf('.avi') != -1) {
|
|
|
+ src = src.split('.avi')[0] + "_screen_0.png"
|
|
|
+ ispic = false;
|
|
|
+ }
|
|
|
+ if (src.indexOf('.mov') != -1) {
|
|
|
+ src = src.split('.mov')[0] + "_screen_0.png"
|
|
|
+ ispic = false;
|
|
|
+ }
|
|
|
+ if (src.indexOf('.mp4') != -1) {
|
|
|
+ src = src.split('.mp4')[0] + "_screen_0.png"
|
|
|
+ ispic = false;
|
|
|
+ }
|
|
|
+
|
|
|
var pic = '<div class="img_item" style="width:100px;height:90px;float:left;">' +
|
|
|
'<a href="javascript:void(0)" onclick="removeImg(this)" style="float:right;position:relative;z-index:100;"><span class="label label-danger"><i class="icon icon-remove-circle"></i> 删除</span></a>' +
|
|
|
- '<a class="card lightbox-toggle" data-group="image-group-1" data-lightbox-group="example-3" href="' + src + '" style="position:absolute">' +
|
|
|
- '<img class="pic-class img-thumbnail" path="' + imgSrc + '" style="width:100px;height:70px;" src="' + src + '" alt="">' +
|
|
|
+ (ispic ? '<a class="card lightbox-toggle" data-group="image-group-1" data-lightbox-group="example-3" href="' + src + '" style="position:absolute">' : '<a class="card" onclick="video_paly(\'' + videosrc + '\')" href="javascript:void(0)" style="position:absolute">') +
|
|
|
+ '<img class="pic-class img-thumbnail" path="' + imgSrc + '" style="width:100px;height:70px;" src="' + src + '" alt="">' + (ispic ? '' : '<i class="icon icon-play-circle" style=" font-size: 30px;position: absolute;top: 20px;left: 40px;color: white;"></i>') +
|
|
|
'</a>' +
|
|
|
'</div>';
|
|
|
if (ISCLIENT) {
|
|
|
pic = '<div class="img_item" style="width:100px;height:90px;float:left;">' +
|
|
|
'<a href="javascript:void(0)" onclick="removeImg(this)" style="float:right;position:relative;z-index:100;"><span class="label label-danger"><i class="icon icon-remove-circle"></i> 删除</span></a>' +
|
|
|
- '<a class="card" onclick="showClientImg(\'' + src + '\')" href="javascript:void(0)" style="position:absolute">' +
|
|
|
- '<img class="pic-class img-thumbnail" path="' + imgSrc + '" style="width:100px;height:70px;" src="' + src + '" alt="">' +
|
|
|
+ '<a class="card" onclick="' + (ispic ? 'showClientImg(\'' + src + '\')' : '') + '" href="javascript:void(0)" style="position:absolute">' +
|
|
|
+ '<img class="pic-class img-thumbnail" path="' + imgSrc + '" style="width:100px;height:70px;" src="' + src + '" alt="">' + (ispic ? '' : '<i class="icon icon-play-circle" style=" font-size: 30px;position: absolute;top: 20px;left: 40px;color: white;"></i>') +
|
|
|
'</a>' +
|
|
|
'</div>';
|
|
|
}
|
|
|
@@ -495,37 +512,37 @@ function showChangeUser() {
|
|
|
}
|
|
|
|
|
|
function changePerson(id) {
|
|
|
- var flag=true;
|
|
|
+ var flag = true;
|
|
|
var param = {
|
|
|
- "id":$.checkTask.id,
|
|
|
- "checked_person":id,
|
|
|
- "class_type":$.checkTask.class_type
|
|
|
+ "id": $.checkTask.id,
|
|
|
+ "checked_person": id,
|
|
|
+ "class_type": $.checkTask.class_type
|
|
|
};
|
|
|
- post_common_service("/task/getUserCount/", param, function(data){
|
|
|
- if(data && data.length>=2){
|
|
|
+ post_common_service("/task/getUserCount/", param, function(data) {
|
|
|
+ if (data && data.length >= 2) {
|
|
|
layer.msg("本周期稽查次数已满,不能再被稽查!", {
|
|
|
- time: 2000,//20s后自动关闭
|
|
|
- offset:'r'
|
|
|
+ time: 2000, //20s后自动关闭
|
|
|
+ offset: 'r'
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
// $('#checked_person').html(id);
|
|
|
var param1 = {
|
|
|
"id": $.checkTask.id,
|
|
|
"checked_person": id,
|
|
|
}
|
|
|
- post_common_service("task/update/", param1, function (task_data) {
|
|
|
+ post_common_service("task/update/", param1, function(task_data) {
|
|
|
//重置当前任务
|
|
|
$.checkTask = task_data;
|
|
|
//获取用户信息
|
|
|
- get_common_service('user/getUserById/' + id, null, function (data) {
|
|
|
- changePersonContent(data);
|
|
|
- })
|
|
|
- //更新用户次数表
|
|
|
- no_return_common_service('task/updateUserCount/', param, function (data) {
|
|
|
+ get_common_service('user/getUserById/' + id, null, function(data) {
|
|
|
+ changePersonContent(data);
|
|
|
+ })
|
|
|
+ //更新用户次数表
|
|
|
+ no_return_common_service('task/updateUserCount/', param, function(data) {
|
|
|
// changePersonContent(data);
|
|
|
})
|
|
|
layer.close(changePersonLayer);
|
|
|
- }, function (error) {
|
|
|
+ }, function(error) {
|
|
|
alert(error);
|
|
|
});
|
|
|
}
|