|
|
@@ -43,6 +43,7 @@ function initCheck() {
|
|
|
format: "yyyy-mm-dd"
|
|
|
});
|
|
|
if ($.checkTask) {
|
|
|
+ getUserCheckCount();
|
|
|
initCheckAppealBtns();
|
|
|
setFeSelect("#fsList", $.checkTask.checked_dept);
|
|
|
// setFeeUserSelect("#check_checked_person_select", $.checkTask.checked_person);
|
|
|
@@ -167,8 +168,17 @@ function fullscreen() {
|
|
|
|
|
|
}
|
|
|
|
|
|
-function initInfo() {
|
|
|
-
|
|
|
+function getUserCheckCount() {
|
|
|
+ var param = {
|
|
|
+ "id":$.checkTask.id,
|
|
|
+ "checked_person":$.checkTask.checked_person
|
|
|
+ };
|
|
|
+ post_common_service("/task/getUserCount/", param, function (userList) {
|
|
|
+ $("#checked_count").html(userList.length);
|
|
|
+ });
|
|
|
+}
|
|
|
+function showCheckDetailCount(){
|
|
|
+
|
|
|
}
|
|
|
function initCheckAppealBtns() {
|
|
|
if ($.checkTask.appeal) {
|
|
|
@@ -178,25 +188,27 @@ function initCheckAppealBtns() {
|
|
|
$("#appeal_time").html($.checkTask.appeal.appeal_time);
|
|
|
$("#appeal_reason").html($.checkTask.appeal.appeal_reason);
|
|
|
$("#appeal_file_list").html(genAppeaFiles($.checkTask.appeal.file_src));
|
|
|
+ $("#recheck_result").html($.checkTask.appeal.recheck_result);
|
|
|
+
|
|
|
|
|
|
layer.open({
|
|
|
type: 1,
|
|
|
title: "申诉详情",
|
|
|
- closeBtn: 1,
|
|
|
+ closeBtn: 0,
|
|
|
shade: false,
|
|
|
- maxmin: true,
|
|
|
+ maxmin: false,
|
|
|
shadeClose: true,
|
|
|
offset: 'rb',
|
|
|
content: $('#appeal_div'), //捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响
|
|
|
- min: function (index) {
|
|
|
- // layer.close(index);
|
|
|
- layer.style(index,{width: 50,height:50});
|
|
|
- return false;
|
|
|
- },
|
|
|
- cancel:function(index){
|
|
|
- layer.style(index,{width: 50,height:50,offset:'r'});
|
|
|
- return false;
|
|
|
- }
|
|
|
+ // min: function (index) {
|
|
|
+ // // layer.close(index);
|
|
|
+ // layer.style(index,{width: 50,height:50});
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // cancel:function(index){
|
|
|
+ // layer.style(index,{width: 50,height:50,offset:'r'});
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
});
|
|
|
} else {
|
|
|
$("#appeal_div").hide();
|
|
|
@@ -250,7 +262,7 @@ function showEditCheckScore(id) {
|
|
|
var rowData = getItemByIdFromArr(id, $('#score_datatable').mytable('getTableData'));
|
|
|
scoreDetailLayer = showPopup4Common('修改考核项',function(data){
|
|
|
saveScoreEdit();
|
|
|
- },['350px','500px'],'#score-detail-div','r');
|
|
|
+ },['350px','550px'],'#score-detail-div','r');
|
|
|
|
|
|
$("#score_id_text").val(rowData.id);
|
|
|
$("#check_item_text").val(rowData.content);
|
|
|
@@ -274,7 +286,7 @@ function setFeeUserSelect(div,selectId){
|
|
|
}
|
|
|
$(div).html('');
|
|
|
$(div).html(optStr);
|
|
|
- alert("fff");
|
|
|
+
|
|
|
$('#check_checked_person_select').chosen({
|
|
|
// width:'200px',
|
|
|
height:'100px',
|
|
|
@@ -480,7 +492,8 @@ function resetUserImgInfo() {
|
|
|
$("#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>';
|
|
|
+ + '<label id="checked_person"></label>'
|
|
|
+ + '(次数:<a href="#"><label id="checked_count"></label></a>)';
|
|
|
$("#user_img_container").html(str);
|
|
|
}
|
|
|
function changePersonContent(data) {
|
|
|
@@ -502,6 +515,7 @@ function changePersonContent(data) {
|
|
|
$("#person_img").attr("href", imgSrc);
|
|
|
$('a.lightbox-toggle').lightbox();
|
|
|
}
|
|
|
+ getUserCheckCount();
|
|
|
}
|
|
|
var scoreLayer;
|
|
|
function showScore() {
|
|
|
@@ -730,3 +744,16 @@ function initUpLoad() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+function saveRecheckResult(){
|
|
|
+ var param = {
|
|
|
+ "id":$.checkTask.appeal.id,
|
|
|
+ "recheck_result":$("#recheck_result").val()
|
|
|
+ }
|
|
|
+ post_common_service("/checkAppeal/update", param, function(data){
|
|
|
+ layer.msg("保存成功", {
|
|
|
+ offset:'r',
|
|
|
+ time: 2000//20s后自动关闭
|
|
|
+ });
|
|
|
+ });
|
|
|
+}
|
|
|
+
|