|
@@ -1,7 +1,7 @@
|
|
|
function initCheck() {
|
|
function initCheck() {
|
|
|
addBreadMenu("/view/mytask/check.html", "视频稽查");
|
|
addBreadMenu("/view/mytask/check.html", "视频稽查");
|
|
|
$('#ex1').slider({ tooltip: 'hide' });
|
|
$('#ex1').slider({ tooltip: 'hide' });
|
|
|
- $("#ex1").on("slideStop", function (slideEvt) {
|
|
|
|
|
|
|
+ $("#ex1").on("slideStop", function(slideEvt) {
|
|
|
setVideoProcess(slideEvt.value);
|
|
setVideoProcess(slideEvt.value);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -9,7 +9,7 @@ function initCheck() {
|
|
|
|
|
|
|
|
$("#tabcontent").css("height", ($("#video_content").height() - 80) + "px");
|
|
$("#tabcontent").css("height", ($("#video_content").height() - 80) + "px");
|
|
|
|
|
|
|
|
- if(ISCLIENT) {
|
|
|
|
|
|
|
+ if (ISCLIENT) {
|
|
|
event = document.createEvent('MessageEvent');
|
|
event = document.createEvent('MessageEvent');
|
|
|
var origin = window.location.protocol + '//' + window.location.host;
|
|
var origin = window.location.protocol + '//' + window.location.host;
|
|
|
event.initMessageEvent('setvideoposition', true, true, getVideoPosition(null), origin, 1234, window, null);
|
|
event.initMessageEvent('setvideoposition', true, true, getVideoPosition(null), origin, 1234, window, null);
|
|
@@ -52,10 +52,10 @@ function initCheck() {
|
|
|
// })
|
|
// })
|
|
|
$("#lane").val($.checkTask.checked_location);
|
|
$("#lane").val($.checkTask.checked_location);
|
|
|
// setLaneSelect("#lane", $.checkTask.checked_location);
|
|
// setLaneSelect("#lane", $.checkTask.checked_location);
|
|
|
- get_common_service('user/getUserById/' + $.checkTask.checked_person, null, function (data) {
|
|
|
|
|
- changePersonContent(data);
|
|
|
|
|
- })
|
|
|
|
|
- //查询评分情况
|
|
|
|
|
|
|
+ get_common_service('user/getUserById/' + $.checkTask.checked_person, null, function(data) {
|
|
|
|
|
+ changePersonContent(data);
|
|
|
|
|
+ })
|
|
|
|
|
+ //查询评分情况
|
|
|
queryCheckScores();
|
|
queryCheckScores();
|
|
|
//查询录像播放列表
|
|
//查询录像播放列表
|
|
|
var videos = $.checkTask.video_id.split(',');
|
|
var videos = $.checkTask.video_id.split(',');
|
|
@@ -70,7 +70,7 @@ function initCheck() {
|
|
|
callFunc("stop", "");
|
|
callFunc("stop", "");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- $("select#video_list").change(function () {
|
|
|
|
|
|
|
+ $("select#video_list").change(function() {
|
|
|
playVideo($(this).val());
|
|
playVideo($(this).val());
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -125,7 +125,7 @@ function fullscreen() {
|
|
|
' </div>' +
|
|
' </div>' +
|
|
|
' <div class="row" style="padding:0px 5px 0px 5px;text-align:center;margin:0px">' +
|
|
' <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>' +
|
|
' <select class="form-control" id="full_video_list" style="width:200px;float:left;display:none;"></select>' +
|
|
|
- ' <div class="col-md-4" style="padding-left:0">' +
|
|
|
|
|
|
|
+ ' <div class="col-md-4 hidden" style="padding-left:0">' +
|
|
|
' <div class="input-group" 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="时间偏移值">' +
|
|
' <input type="text" id="full_video_pos" style="height:42px" class="form-control" placeholder="时间偏移值">' +
|
|
|
' <span class="input-group-btn">' +
|
|
' <span class="input-group-btn">' +
|
|
@@ -138,8 +138,8 @@ 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(\'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(\'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-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 " 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-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 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>' +
|
|
' <button type="button" class="btn btn-success" onclick="doAction(\'screenshot\')"><i class="icon icon-camera icon-2x"></i></button>' +
|
|
|
' </div>' +
|
|
' </div>' +
|
|
|
' </div>';
|
|
' </div>';
|
|
@@ -153,25 +153,25 @@ function fullscreen() {
|
|
|
closeBtn: 0,
|
|
closeBtn: 0,
|
|
|
shadeClose: false,
|
|
shadeClose: false,
|
|
|
content: "<div id='layer_content' >" + contenthtml + "</div>",
|
|
content: "<div id='layer_content' >" + contenthtml + "</div>",
|
|
|
- success: function (layero, index) {
|
|
|
|
|
|
|
+ success: function(layero, index) {
|
|
|
|
|
|
|
|
$("#full_video_pos").val($("#video_pos").val());
|
|
$("#full_video_pos").val($("#video_pos").val());
|
|
|
|
|
|
|
|
$('#full_ex1').slider({ tooltip: 'hide' });
|
|
$('#full_ex1').slider({ tooltip: 'hide' });
|
|
|
- $("#full_ex1").on("slideStop", function (slideEvt) {
|
|
|
|
|
|
|
+ $("#full_ex1").on("slideStop", function(slideEvt) {
|
|
|
setVideoProcess(slideEvt.value);
|
|
setVideoProcess(slideEvt.value);
|
|
|
});
|
|
});
|
|
|
$("#full_ex1").val($("#ex1").value)
|
|
$("#full_ex1").val($("#ex1").value)
|
|
|
$("#full_ex1").slider({ step: 5, min: 0, max: maxVV });
|
|
$("#full_ex1").slider({ step: 5, min: 0, max: maxVV });
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$("#full_fast_info").html($("#fast_info").html());
|
|
$("#full_fast_info").html($("#fast_info").html());
|
|
|
$("#full_slow_info").html($("#slow_info").html());
|
|
$("#full_slow_info").html($("#slow_info").html());
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
$("#full_tabcontent").css("height", (height - 90) + "px");
|
|
$("#full_tabcontent").css("height", (height - 90) + "px");
|
|
|
$("#full_tabcontent").css("width", "100%");
|
|
$("#full_tabcontent").css("width", "100%");
|
|
|
- setTimeout(function () {
|
|
|
|
|
|
|
+ setTimeout(function() {
|
|
|
callFunc("setvideoposition", getVideoPosition($("#full_tabcontent")))
|
|
callFunc("setvideoposition", getVideoPosition($("#full_tabcontent")))
|
|
|
}, 800)
|
|
}, 800)
|
|
|
|
|
|
|
@@ -182,8 +182,8 @@ function fullscreen() {
|
|
|
|
|
|
|
|
function getUserCheckCount() {
|
|
function getUserCheckCount() {
|
|
|
var param = {
|
|
var param = {
|
|
|
- "id":$.checkTask.id,
|
|
|
|
|
- "checked_person":$.checkTask.checked_person
|
|
|
|
|
|
|
+ "id": $.checkTask.id,
|
|
|
|
|
+ "checked_person": $.checkTask.checked_person
|
|
|
};
|
|
};
|
|
|
post_common_service("/task/getUserCount/", param, function (userList) {
|
|
post_common_service("/task/getUserCount/", param, function (userList) {
|
|
|
$("#checked_count").html(userList.length);
|
|
$("#checked_count").html(userList.length);
|
|
@@ -209,6 +209,7 @@ function checkUserCount() {
|
|
|
function showCheckDetailCount(){
|
|
function showCheckDetailCount(){
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function initCheckAppealBtns() {
|
|
function initCheckAppealBtns() {
|
|
|
if ($.checkTask.appeal) {
|
|
if ($.checkTask.appeal) {
|
|
|
$("#btn_appeal_task").show();
|
|
$("#btn_appeal_task").show();
|
|
@@ -218,7 +219,7 @@ function initCheckAppealBtns() {
|
|
|
$("#appeal_reason").html($.checkTask.appeal.appeal_reason);
|
|
$("#appeal_reason").html($.checkTask.appeal.appeal_reason);
|
|
|
$("#appeal_file_list").html(genAppeaFiles($.checkTask.appeal.file_src));
|
|
$("#appeal_file_list").html(genAppeaFiles($.checkTask.appeal.file_src));
|
|
|
$("#recheck_result").html($.checkTask.appeal.recheck_result);
|
|
$("#recheck_result").html($.checkTask.appeal.recheck_result);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
layer.open({
|
|
layer.open({
|
|
|
type: 1,
|
|
type: 1,
|
|
@@ -250,9 +251,9 @@ function queryCheckScores() {
|
|
|
//$('#score_datatable').score_datatable("");
|
|
//$('#score_datatable').score_datatable("");
|
|
|
console.log("任务id:" + $.checkTask.id);
|
|
console.log("任务id:" + $.checkTask.id);
|
|
|
var data = {
|
|
var data = {
|
|
|
- "task_id": $.checkTask.id
|
|
|
|
|
- }
|
|
|
|
|
- // alert("ff");
|
|
|
|
|
|
|
+ "task_id": $.checkTask.id
|
|
|
|
|
+ }
|
|
|
|
|
+ // alert("ff");
|
|
|
var cols = [
|
|
var cols = [
|
|
|
{ width: 40, text: '序号', type: 'number', flex: true, colClass: 'text-center', field: 'num' },
|
|
{ width: 40, text: '序号', type: 'number', flex: true, colClass: 'text-center', field: 'num' },
|
|
|
{ width: 160, text: '评分记录', type: 'string', flex: true, sort: 'down', field: 'content' },
|
|
{ width: 160, text: '评分记录', type: 'string', flex: true, sort: 'down', field: 'content' },
|
|
@@ -261,7 +262,11 @@ function queryCheckScores() {
|
|
|
{ width: 55, text: '考核人', type: 'string', flex: true, colClass: '', field: 'checked_person_name' },
|
|
{ width: 55, text: '考核人', type: 'string', flex: true, colClass: '', field: 'checked_person_name' },
|
|
|
// {width: 80, text: '图片', type: 'imagedd', flex: true, colClass: '',field: 'pics'},
|
|
// {width: 80, text: '图片', type: 'imagedd', flex: true, colClass: '',field: 'pics'},
|
|
|
{
|
|
{
|
|
|
- width: 110, text: '操作', type: 'string', flex: true, field: 'id',
|
|
|
|
|
|
|
+ width: 110,
|
|
|
|
|
+ text: '操作',
|
|
|
|
|
+ type: 'string',
|
|
|
|
|
+ flex: true,
|
|
|
|
|
+ field: 'id',
|
|
|
oper: [
|
|
oper: [
|
|
|
{ func: 'showEditCheckScore', text: '修改', icon_class: 'icon-edit' },
|
|
{ func: 'showEditCheckScore', text: '修改', icon_class: 'icon-edit' },
|
|
|
{ func: 'showEditPic', text: '修改图片', icon_class: 'icon-edit' },
|
|
{ func: 'showEditPic', text: '修改图片', icon_class: 'icon-edit' },
|
|
@@ -277,56 +282,59 @@ function queryCheckScores() {
|
|
|
'cols': cols,
|
|
'cols': cols,
|
|
|
'url': "/score/getScoreList/",
|
|
'url': "/score/getScoreList/",
|
|
|
'param': data
|
|
'param': data
|
|
|
- }
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
-function showEditPic(id){
|
|
|
|
|
|
|
+
|
|
|
|
|
+function showEditPic(id) {
|
|
|
var rowData = getItemByIdFromArr(id, $('#score_datatable').mytable('getTableData'));
|
|
var rowData = getItemByIdFromArr(id, $('#score_datatable').mytable('getTableData'));
|
|
|
showPics(rowData.pics);
|
|
showPics(rowData.pics);
|
|
|
$("#saveEditBtn").show();
|
|
$("#saveEditBtn").show();
|
|
|
editScoreId = id;
|
|
editScoreId = id;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function showEditCheckScore(id) {
|
|
function showEditCheckScore(id) {
|
|
|
// deleteItem4Common(id,"/score/delete/",queryCheckScores);
|
|
// deleteItem4Common(id,"/score/delete/",queryCheckScores);
|
|
|
var rowData = getItemByIdFromArr(id, $('#score_datatable').mytable('getTableData'));
|
|
var rowData = getItemByIdFromArr(id, $('#score_datatable').mytable('getTableData'));
|
|
|
- scoreDetailLayer = showPopup4Common('修改考核项',function(data){
|
|
|
|
|
- saveScoreEdit();
|
|
|
|
|
- },['350px','550px'],'#score-detail-div','r');
|
|
|
|
|
-
|
|
|
|
|
|
|
+ scoreDetailLayer = showPopup4Common('修改考核项', function(data) {
|
|
|
|
|
+ saveScoreEdit();
|
|
|
|
|
+ }, ['350px', '550px'], '#score-detail-div', 'r');
|
|
|
|
|
+
|
|
|
$("#score_id_text").val(rowData.id);
|
|
$("#score_id_text").val(rowData.id);
|
|
|
$("#check_item_text").val(rowData.content);
|
|
$("#check_item_text").val(rowData.content);
|
|
|
$("#check_score_text").val(rowData.check_item_score);
|
|
$("#check_score_text").val(rowData.check_item_score);
|
|
|
$("#check_remark_text").val(rowData.remark);
|
|
$("#check_remark_text").val(rowData.remark);
|
|
|
- setFeeUserSelect("#check_checked_person_select",rowData.checked_person);
|
|
|
|
|
|
|
+ setFeeUserSelect("#check_checked_person_select", rowData.checked_person);
|
|
|
// $("#check_checked_person_select").val(rowData.checked_person);
|
|
// $("#check_checked_person_select").val(rowData.checked_person);
|
|
|
}
|
|
}
|
|
|
-function setFeeUserSelect(div,selectId){
|
|
|
|
|
|
|
+
|
|
|
|
|
+function setFeeUserSelect(div, selectId) {
|
|
|
var param = {
|
|
var param = {
|
|
|
'organid': $.checkTask.checked_dept
|
|
'organid': $.checkTask.checked_dept
|
|
|
};
|
|
};
|
|
|
- post_common_service("/user/getUserList/", param, function (userList) {
|
|
|
|
|
|
|
+ post_common_service("/user/getUserList/", param, function(userList) {
|
|
|
// setFeeUserSelect("#check_checked_person_select",rowData.checked_person,data);
|
|
// setFeeUserSelect("#check_checked_person_select",rowData.checked_person,data);
|
|
|
var optStr = '';
|
|
var optStr = '';
|
|
|
- for(var i in userList) {
|
|
|
|
|
- if(userList[i].id==selectId)
|
|
|
|
|
- optStr += '<option value="'+userList[i].id+'" selected="selected">'+userList[i].truename+'</option>';
|
|
|
|
|
|
|
+ for (var i in userList) {
|
|
|
|
|
+ if (userList[i].id == selectId)
|
|
|
|
|
+ optStr += '<option value="' + userList[i].id + '" selected="selected">' + userList[i].truename + '</option>';
|
|
|
else
|
|
else
|
|
|
- optStr += '<option value="'+userList[i].id+'">'+userList[i].truename+'</option>';
|
|
|
|
|
|
|
+ optStr += '<option value="' + userList[i].id + '">' + userList[i].truename + '</option>';
|
|
|
}
|
|
}
|
|
|
$(div).html('');
|
|
$(div).html('');
|
|
|
$(div).html(optStr);
|
|
$(div).html(optStr);
|
|
|
|
|
|
|
|
$('#check_checked_person_select').chosen({
|
|
$('#check_checked_person_select').chosen({
|
|
|
// width:'200px',
|
|
// width:'200px',
|
|
|
- height:'100px',
|
|
|
|
|
- no_results_text: '没有找到', // 当检索时没有找到匹配项时显示的提示文本
|
|
|
|
|
|
|
+ height: '100px',
|
|
|
|
|
+ no_results_text: '没有找到', // 当检索时没有找到匹配项时显示的提示文本
|
|
|
disable_search_threshold: 10, // 10 个以下的选择项则不显示检索框
|
|
disable_search_threshold: 10, // 10 个以下的选择项则不显示检索框
|
|
|
- search_contains: true // 从任意位置开始检索
|
|
|
|
|
|
|
+ search_contains: true // 从任意位置开始检索
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-function saveScoreEdit(){
|
|
|
|
|
|
|
+
|
|
|
|
|
+function saveScoreEdit() {
|
|
|
var param = {
|
|
var param = {
|
|
|
'id': $("#score_id_text").val(),
|
|
'id': $("#score_id_text").val(),
|
|
|
'content': $("#check_item_text").val(),
|
|
'content': $("#check_item_text").val(),
|
|
@@ -336,7 +344,7 @@ function saveScoreEdit(){
|
|
|
};
|
|
};
|
|
|
editScoreId = null;
|
|
editScoreId = null;
|
|
|
$("#saveEditBtn").hide();
|
|
$("#saveEditBtn").hide();
|
|
|
- no_return_common_service("/score/update", param, function (data) {
|
|
|
|
|
|
|
+ no_return_common_service("/score/update", param, function(data) {
|
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
|
//查询评分情况
|
|
//查询评分情况
|
|
|
queryCheckScores();
|
|
queryCheckScores();
|
|
@@ -346,6 +354,7 @@ function saveScoreEdit(){
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
var editScoreId;
|
|
var editScoreId;
|
|
|
|
|
+
|
|
|
function saveEdit() {
|
|
function saveEdit() {
|
|
|
if (editScoreId) {
|
|
if (editScoreId) {
|
|
|
var imgArr = $("#img_container .pic-class");
|
|
var imgArr = $("#img_container .pic-class");
|
|
@@ -362,12 +371,12 @@ function saveEdit() {
|
|
|
};
|
|
};
|
|
|
editScoreId = null;
|
|
editScoreId = null;
|
|
|
$("#saveEditBtn").hide();
|
|
$("#saveEditBtn").hide();
|
|
|
- no_return_common_service("/score/update", param, function (data) {
|
|
|
|
|
|
|
+ no_return_common_service("/score/update", param, function(data) {
|
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
|
//查询评分情况
|
|
//查询评分情况
|
|
|
queryCheckScores();
|
|
queryCheckScores();
|
|
|
layer.msg(data, {
|
|
layer.msg(data, {
|
|
|
- time: 2000//20s后自动关闭
|
|
|
|
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -426,19 +435,19 @@ function genPicstr(imgSrc) {
|
|
|
var src = imgSrc;
|
|
var src = imgSrc;
|
|
|
if (!src.startWith("http"))
|
|
if (!src.startWith("http"))
|
|
|
src = base_image_server_url + src;
|
|
src = base_image_server_url + src;
|
|
|
- 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="">'
|
|
|
|
|
- + '</a>'
|
|
|
|
|
- + '</div>';
|
|
|
|
|
|
|
+ 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="">' +
|
|
|
|
|
+ '</a>' +
|
|
|
|
|
+ '</div>';
|
|
|
if (ISCLIENT) {
|
|
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>'
|
|
|
|
|
- + '</div>';
|
|
|
|
|
|
|
+ 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>' +
|
|
|
|
|
+ '</div>';
|
|
|
}
|
|
}
|
|
|
return pic;
|
|
return pic;
|
|
|
}
|
|
}
|
|
@@ -451,12 +460,13 @@ function clearAllImg() {
|
|
|
$('#img_container').empty();
|
|
$('#img_container').empty();
|
|
|
}
|
|
}
|
|
|
var changePersonLayer;
|
|
var changePersonLayer;
|
|
|
|
|
+
|
|
|
function showChangeUser() {
|
|
function showChangeUser() {
|
|
|
var param = {
|
|
var param = {
|
|
|
'organid': $.checkTask.checked_dept
|
|
'organid': $.checkTask.checked_dept
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- post_common_service("/user/getUserList/", param, function (data) {
|
|
|
|
|
|
|
+ post_common_service("/user/getUserList/", param, function(data) {
|
|
|
changePersonLayer = showPopup4Common('更改人员', null, ['550px', '600px'], null, 'r');
|
|
changePersonLayer = showPopup4Common('更改人员', null, ['550px', '600px'], null, 'r');
|
|
|
$("#user_container").empty();
|
|
$("#user_container").empty();
|
|
|
var userStr = "";
|
|
var userStr = "";
|
|
@@ -465,15 +475,15 @@ function showChangeUser() {
|
|
|
if (data[i].workno) name = name + " " + data[i].workno.substr(data[i].workno.length - 3);
|
|
if (data[i].workno) name = name + " " + data[i].workno.substr(data[i].workno.length - 3);
|
|
|
var pic = "../../images/body-bg.png";
|
|
var pic = "../../images/body-bg.png";
|
|
|
if (data[i].pic) pic = base_image_server_url + data[i].pic;
|
|
if (data[i].pic) pic = base_image_server_url + data[i].pic;
|
|
|
- str = '<div style="width:90px;float:left;margin:5px;">'
|
|
|
|
|
- + '<a class="card" href="javascript:void(0)">'
|
|
|
|
|
- + '<img src="' + pic + '" alt="" style="height:100px;width:90px;" onclick="showBigImg(\'' + pic + '\')">'
|
|
|
|
|
- + '<div class="card-heading"><strong>' + name + '</strong></div>'
|
|
|
|
|
- + '<div class="card-actions">'
|
|
|
|
|
- + '<button type="button" class="btn btn-mini btn-danger" onclick="changePerson(\'' + data[i].id + '\')">选择</button>'
|
|
|
|
|
- + '</div>'
|
|
|
|
|
- + '</a>'
|
|
|
|
|
- + '</div>';
|
|
|
|
|
|
|
+ str = '<div style="width:90px;float:left;margin:5px;">' +
|
|
|
|
|
+ '<a class="card" href="javascript:void(0)">' +
|
|
|
|
|
+ '<img src="' + pic + '" alt="" style="height:100px;width:90px;" onclick="showBigImg(\'' + pic + '\')">' +
|
|
|
|
|
+ '<div class="card-heading"><strong>' + name + '</strong></div>' +
|
|
|
|
|
+ '<div class="card-actions">' +
|
|
|
|
|
+ '<button type="button" class="btn btn-mini btn-danger" onclick="changePerson(\'' + data[i].id + '\')">选择</button>' +
|
|
|
|
|
+ '</div>' +
|
|
|
|
|
+ '</a>' +
|
|
|
|
|
+ '</div>';
|
|
|
userStr += str;
|
|
userStr += str;
|
|
|
}
|
|
}
|
|
|
$("#user_container").html(userStr);
|
|
$("#user_container").html(userStr);
|
|
@@ -531,14 +541,16 @@ function showBigImg(src) {
|
|
|
content: $('#userBigImg')
|
|
content: $('#userBigImg')
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function resetUserImgInfo() {
|
|
function resetUserImgInfo() {
|
|
|
$("#user_img_container").empty();
|
|
$("#user_img_container").empty();
|
|
|
- var str = '<a id="person_img" href="../../images/img4.jpg" class="lightbox-toggle">'
|
|
|
|
|
- + '<img src="../../images/img4.jpg" class="img-thumbnail" style="width:50px;height:50px;margin-top:-10px;"></a>'
|
|
|
|
|
- + '<label id="checked_person"></label>'
|
|
|
|
|
- + '(次数:<a href="#"><label id="checked_count"></label></a>)';
|
|
|
|
|
|
|
+ var str = '<a id="person_img" href="../../images/img4.jpg" class="lightbox-toggle">' +
|
|
|
|
|
+ '<img src="../../images/img4.jpg" class="img-thumbnail" style="width:50px;height:50px;margin-top:-10px;"></a>' +
|
|
|
|
|
+ '<label id="checked_person"></label>' +
|
|
|
|
|
+ '(次数:<a href="#"><label id="checked_count"></label></a>)';
|
|
|
$("#user_img_container").html(str);
|
|
$("#user_img_container").html(str);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function changePersonContent(data) {
|
|
function changePersonContent(data) {
|
|
|
resetUserImgInfo();
|
|
resetUserImgInfo();
|
|
|
var name = data.truename;
|
|
var name = data.truename;
|
|
@@ -549,7 +561,7 @@ function changePersonContent(data) {
|
|
|
if (ISCLIENT) {
|
|
if (ISCLIENT) {
|
|
|
$("#person_img").attr("href", "javascript:void(0)");
|
|
$("#person_img").attr("href", "javascript:void(0)");
|
|
|
$("#person_img").removeClass("lightbox-toggle");
|
|
$("#person_img").removeClass("lightbox-toggle");
|
|
|
- $("#person_img").click(function () {
|
|
|
|
|
|
|
+ $("#person_img").click(function() {
|
|
|
showClientImg(imgSrc);
|
|
showClientImg(imgSrc);
|
|
|
});
|
|
});
|
|
|
$("#person_img > img").attr("src", imgSrc);
|
|
$("#person_img > img").attr("src", imgSrc);
|
|
@@ -561,16 +573,19 @@ function changePersonContent(data) {
|
|
|
getUserCheckCount();
|
|
getUserCheckCount();
|
|
|
}
|
|
}
|
|
|
var scoreLayer;
|
|
var scoreLayer;
|
|
|
|
|
+
|
|
|
function showScore() {
|
|
function showScore() {
|
|
|
scoreLayer = showPopup4Common('选择考核项', null, ['400px', '500px'], '#items-div', 'r');
|
|
scoreLayer = showPopup4Common('选择考核项', null, ['400px', '500px'], '#items-div', 'r');
|
|
|
buildTree();
|
|
buildTree();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function buildTree() {
|
|
function buildTree() {
|
|
|
var zTreeObj;
|
|
var zTreeObj;
|
|
|
var zNodes = [];
|
|
var zNodes = [];
|
|
|
check_item_tree = $.fn.zTree.init($("#items_tree"), {}, zNodes);
|
|
check_item_tree = $.fn.zTree.init($("#items_tree"), {}, zNodes);
|
|
|
getCheckItems();
|
|
getCheckItems();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function getCheckItems() {
|
|
function getCheckItems() {
|
|
|
function zTreeOnRename(event, treeId, treeNode, isCancel) {
|
|
function zTreeOnRename(event, treeId, treeNode, isCancel) {
|
|
|
alert(treeNode.tId + ", " + treeNode.name);
|
|
alert(treeNode.tId + ", " + treeNode.name);
|
|
@@ -617,20 +632,21 @@ function getCheckItems() {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- get_common_service('checkItem/getAll', null, function (data) {
|
|
|
|
|
|
|
+ get_common_service('checkItem/getAll', null, function(data) {
|
|
|
zdata = [];
|
|
zdata = [];
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
var m = data[i];
|
|
var m = data[i];
|
|
|
zdata.push(genNode(m));
|
|
zdata.push(genNode(m));
|
|
|
}
|
|
}
|
|
|
menu_tree = $.fn.zTree.init($("#items_tree"), setting, zdata)
|
|
menu_tree = $.fn.zTree.init($("#items_tree"), setting, zdata)
|
|
|
- }, function (error) {
|
|
|
|
|
|
|
+ }, function(error) {
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function addobj(data) {
|
|
function addobj(data) {
|
|
|
var zdata = [];
|
|
var zdata = [];
|
|
|
- if (typeof (data.subCheckItem) != "undefinde" && data.subCheckItem != null &&
|
|
|
|
|
|
|
+ if (typeof(data.subCheckItem) != "undefinde" && data.subCheckItem != null &&
|
|
|
data.subCheckItem.length > 0) {
|
|
data.subCheckItem.length > 0) {
|
|
|
for (var i = 0; i < data.subCheckItem.length; i++) {
|
|
for (var i = 0; i < data.subCheckItem.length; i++) {
|
|
|
var m = data.subCheckItem[i];
|
|
var m = data.subCheckItem[i];
|
|
@@ -641,6 +657,7 @@ function addobj(data) {
|
|
|
return [];
|
|
return [];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function genNode(m) {
|
|
function genNode(m) {
|
|
|
var zdataItem = {};
|
|
var zdataItem = {};
|
|
|
zdataItem["id"] = m.id;
|
|
zdataItem["id"] = m.id;
|
|
@@ -655,6 +672,7 @@ function genNode(m) {
|
|
|
zdataItem["children"] = addobj(m);
|
|
zdataItem["children"] = addobj(m);
|
|
|
return zdataItem;
|
|
return zdataItem;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function zTreeOnClick(event, treeId, treeNode) {
|
|
function zTreeOnClick(event, treeId, treeNode) {
|
|
|
var imgArr = $("#img_container .pic-class");
|
|
var imgArr = $("#img_container .pic-class");
|
|
|
var picsStr = "";
|
|
var picsStr = "";
|
|
@@ -675,16 +693,16 @@ function zTreeOnClick(event, treeId, treeNode) {
|
|
|
'checked_person': $.checkTask.checked_person,
|
|
'checked_person': $.checkTask.checked_person,
|
|
|
'checked_dept': $.checkTask.checked_dept
|
|
'checked_dept': $.checkTask.checked_dept
|
|
|
};
|
|
};
|
|
|
- no_return_common_service("/score/add", param, function (data) {
|
|
|
|
|
|
|
+ no_return_common_service("/score/add", param, function(data) {
|
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
|
clearAllImg();
|
|
clearAllImg();
|
|
|
//查询评分情况
|
|
//查询评分情况
|
|
|
queryCheckScores();
|
|
queryCheckScores();
|
|
|
layer.msg(data, {
|
|
layer.msg(data, {
|
|
|
- time: 2000//20s后自动关闭
|
|
|
|
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function submitCheck() {
|
|
function submitCheck() {
|
|
@@ -692,53 +710,58 @@ function submitCheck() {
|
|
|
"id": $.checkTask.id,
|
|
"id": $.checkTask.id,
|
|
|
"check_status": 4
|
|
"check_status": 4
|
|
|
}
|
|
}
|
|
|
- no_return_common_service("/task/taskEnd/", param, function (data) {
|
|
|
|
|
|
|
+ no_return_common_service("/task/taskEnd/", param, function(data) {
|
|
|
layer.msg("提交成功", {
|
|
layer.msg("提交成功", {
|
|
|
- time: 2000//20s后自动关闭
|
|
|
|
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
});
|
|
|
changePage("/view/mytask/task_list.html?status=2");
|
|
changePage("/view/mytask/task_list.html?status=2");
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function showPre(id) {
|
|
function showPre(id) {
|
|
|
// $('#myModal').modal({name:"dd"});
|
|
// $('#myModal').modal({name:"dd"});
|
|
|
//预览提交把任务状态改为待提交
|
|
//预览提交把任务状态改为待提交
|
|
|
- no_return_common_service('/task/update', {"id":$.checkTask.id,"check_status":7})
|
|
|
|
|
|
|
+ no_return_common_service('/task/update', { "id": $.checkTask.id, "check_status": 7 })
|
|
|
changePage("/view/mytask/taskDetail.html");
|
|
changePage("/view/mytask/taskDetail.html");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function showInvalid() {
|
|
function showInvalid() {
|
|
|
- invalidLayer = showPopup4Common('申请无效', function () {
|
|
|
|
|
|
|
+ invalidLayer = showPopup4Common('申请无效', function() {
|
|
|
saveValidReason();
|
|
saveValidReason();
|
|
|
}, ['400px', '500px'], '#invalid_div', 'r');
|
|
}, ['400px', '500px'], '#invalid_div', 'r');
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function submitCheck4Appeal() {
|
|
function submitCheck4Appeal() {
|
|
|
var param = {
|
|
var param = {
|
|
|
"id": $.checkTask.id,
|
|
"id": $.checkTask.id,
|
|
|
"check_status": 14
|
|
"check_status": 14
|
|
|
}
|
|
}
|
|
|
- no_return_common_service("/task/taskEnd/", param, function (data) {
|
|
|
|
|
|
|
+ no_return_common_service("/task/taskEnd/", param, function(data) {
|
|
|
layer.msg("提交成功", {
|
|
layer.msg("提交成功", {
|
|
|
- time: 2000//20s后自动关闭
|
|
|
|
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
});
|
|
|
changePage("/view/mytask/task_list.html?status=2");
|
|
changePage("/view/mytask/task_list.html?status=2");
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function showPre4Appeal(id) {
|
|
function showPre4Appeal(id) {
|
|
|
// $('#myModal').modal({name:"dd"});
|
|
// $('#myModal').modal({name:"dd"});
|
|
|
//预览提交把任务状态改为待提交
|
|
//预览提交把任务状态改为待提交
|
|
|
- no_return_common_service('/task/update', {"id":$.checkTask.id,"check_status":17})
|
|
|
|
|
|
|
+ no_return_common_service('/task/update', { "id": $.checkTask.id, "check_status": 17 })
|
|
|
changePage("/view/mytask/taskDetail.html");
|
|
changePage("/view/mytask/taskDetail.html");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function saveValidReason() {
|
|
function saveValidReason() {
|
|
|
var param = {
|
|
var param = {
|
|
|
"task_id": $.checkTask.id,
|
|
"task_id": $.checkTask.id,
|
|
|
"apply_reason": $("#apply_reason").val()
|
|
"apply_reason": $("#apply_reason").val()
|
|
|
}
|
|
}
|
|
|
- no_return_common_service("/checkApply/add/", param, function (data) {
|
|
|
|
|
|
|
+ no_return_common_service("/checkApply/add/", param, function(data) {
|
|
|
layer.msg("申请提交成功", {
|
|
layer.msg("申请提交成功", {
|
|
|
- time: 2000//20s后自动关闭
|
|
|
|
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
});
|
|
|
changePage("/view/mytask/task_list.html?status=2");
|
|
changePage("/view/mytask/task_list.html?status=2");
|
|
|
});
|
|
});
|
|
@@ -768,6 +791,7 @@ function getVideoPosition(obj) {
|
|
|
var height = obj.height();
|
|
var height = obj.height();
|
|
|
return parseInt(Y) + "|" + parseInt(X) + "|" + parseInt(width) + "|" + parseInt(height);
|
|
return parseInt(Y) + "|" + parseInt(X) + "|" + parseInt(width) + "|" + parseInt(height);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function initUpLoad() {
|
|
function initUpLoad() {
|
|
|
|
|
|
|
|
var uploader = WebUploader.create({
|
|
var uploader = WebUploader.create({
|
|
@@ -787,16 +811,15 @@ function initUpLoad() {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function saveRecheckResult(){
|
|
|
|
|
|
|
+function saveRecheckResult() {
|
|
|
var param = {
|
|
var param = {
|
|
|
- "id":$.checkTask.appeal.id,
|
|
|
|
|
- "recheck_result":$("#recheck_result").val()
|
|
|
|
|
|
|
+ "id": $.checkTask.appeal.id,
|
|
|
|
|
+ "recheck_result": $("#recheck_result").val()
|
|
|
}
|
|
}
|
|
|
- post_common_service("/checkAppeal/update", param, function(data){
|
|
|
|
|
|
|
+ post_common_service("/checkAppeal/update", param, function(data) {
|
|
|
layer.msg("保存成功", {
|
|
layer.msg("保存成功", {
|
|
|
- offset:'r',
|
|
|
|
|
- time: 2000//20s后自动关闭
|
|
|
|
|
|
|
+ offset: 'r',
|
|
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
|
|
+}
|