|
@@ -1,10 +1,11 @@
|
|
|
function initCheck() {
|
|
function initCheck() {
|
|
|
- addBreadMenu("/view/mytask/check.html", "视频稽查");
|
|
|
|
|
|
|
+ addBreadMenu("/fwq/view/task/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);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ //滑动快进
|
|
|
$("#ex1").on("change", function(sender) {
|
|
$("#ex1").on("change", function(sender) {
|
|
|
var width = $("#ex1").siblings(".slider").children(".slider-track").children(".slider-selection").width();
|
|
var width = $("#ex1").siblings(".slider").children(".slider-track").children(".slider-selection").width();
|
|
|
var total_width = $("#ex1").siblings(".slider").children(".slider-track").width();
|
|
var total_width = $("#ex1").siblings(".slider").children(".slider-track").width();
|
|
@@ -38,6 +39,7 @@ function initCheck() {
|
|
|
|
|
|
|
|
$("#tabcontent").css("height", ($("#video_content").height() - 80) + "px");
|
|
$("#tabcontent").css("height", ($("#video_content").height() - 80) + "px");
|
|
|
$("#score_datatable").css("height", ($("#video_content").height() - 120) + "px");
|
|
$("#score_datatable").css("height", ($("#video_content").height() - 120) + "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;
|
|
@@ -47,64 +49,26 @@ function initCheck() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- // 仅选择日期
|
|
|
|
|
- $("#start-time").datetimepicker({
|
|
|
|
|
- language: "zh-CN",
|
|
|
|
|
- weekStart: 1,
|
|
|
|
|
- todayBtn: 1,
|
|
|
|
|
- autoclose: 1,
|
|
|
|
|
- todayHighlight: 1,
|
|
|
|
|
- startView: 2,
|
|
|
|
|
- minView: 2,
|
|
|
|
|
- forceParse: 0,
|
|
|
|
|
- format: "yyyy-mm-dd"
|
|
|
|
|
- });
|
|
|
|
|
- // 仅选择日期
|
|
|
|
|
- $("#end-time").datetimepicker({
|
|
|
|
|
- language: "zh-CN",
|
|
|
|
|
- weekStart: 1,
|
|
|
|
|
- todayBtn: 1,
|
|
|
|
|
- autoclose: 1,
|
|
|
|
|
- todayHighlight: 1,
|
|
|
|
|
- startView: 2,
|
|
|
|
|
- minView: 2,
|
|
|
|
|
- forceParse: 0,
|
|
|
|
|
- format: "yyyy-mm-dd"
|
|
|
|
|
- });
|
|
|
|
|
|
|
+
|
|
|
if ($.checkTask) {
|
|
if ($.checkTask) {
|
|
|
- getUserCheckCount();
|
|
|
|
|
|
|
+ getAreaCheckCount();
|
|
|
initCheckAppealBtns();
|
|
initCheckAppealBtns();
|
|
|
- // setFeSelect("#fsList", $.checkTask.checked_dept);
|
|
|
|
|
|
|
+
|
|
|
$("#taskName").html($.checkTask.name);
|
|
$("#taskName").html($.checkTask.name);
|
|
|
$("#ex1_span").html($.checkTask.start_time)
|
|
$("#ex1_span").html($.checkTask.start_time)
|
|
|
$("#full_ex1_span").html($.checkTask.start_time)
|
|
$("#full_ex1_span").html($.checkTask.start_time)
|
|
|
|
|
|
|
|
$("#lane").val($.checkTask.checked_location);
|
|
$("#lane").val($.checkTask.checked_location);
|
|
|
$("#check_time").html($.checkTask.check_period);
|
|
$("#check_time").html($.checkTask.check_period);
|
|
|
- $("#monitor").html($.checkTask.monitor_user_name);
|
|
|
|
|
- // setLaneSelect("#lane", $.checkTask.checked_location);
|
|
|
|
|
- get_common_service('user/getUserById/' + $.checkTask.checked_person, null, function(data) {
|
|
|
|
|
- changePersonContent(data);
|
|
|
|
|
- })
|
|
|
|
|
- //查询评分情况
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ //TODO 获取分数
|
|
|
queryCheckScores();
|
|
queryCheckScores();
|
|
|
- //查询录像播放列表
|
|
|
|
|
- var videos = $.checkTask.video_id.split(',');
|
|
|
|
|
- if (videos[0]) {
|
|
|
|
|
- curVideo = videos[0];
|
|
|
|
|
- queryVideoList();
|
|
|
|
|
- } else {
|
|
|
|
|
- callFunc("showvideoview", "false");
|
|
|
|
|
- layer.msg('该处暂无视屏!', {
|
|
|
|
|
- offset: 'r',
|
|
|
|
|
- time: 2000, //20s后自动关闭
|
|
|
|
|
- });
|
|
|
|
|
- callFunc("stop", "");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ //TODO 查询录像播放列表
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
- $("select#video_list").change(function() {
|
|
|
|
|
- playVideo($(this).val());
|
|
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -257,56 +221,52 @@ function fullscreen() {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function getUserCheckCount() {
|
|
|
|
|
- var param = {
|
|
|
|
|
- "id": $.checkTask.id,
|
|
|
|
|
- "checked_person": $.checkTask.checked_person
|
|
|
|
|
- };
|
|
|
|
|
- post_common_service("/task/getUserCount/", param, function(userList) {
|
|
|
|
|
- if (userList) {
|
|
|
|
|
- $("#checked_count").html(userList.length);
|
|
|
|
|
- } else {
|
|
|
|
|
- $("#checked_count").html(0);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+function getAreaCheckCount() {
|
|
|
|
|
+ var index = layer.load(1, {
|
|
|
|
|
+ shade: [0.1, '#fff'] //0.1透明度的白色背景
|
|
|
});
|
|
});
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-function checkUserCount() {
|
|
|
|
|
var param = {
|
|
var param = {
|
|
|
- "id": $.checkTask.id,
|
|
|
|
|
- "checked_person": $.checkTask.checked_person,
|
|
|
|
|
- "class_type": $.checkTask.class_type
|
|
|
|
|
|
|
+ "period_id": $.checkTask.period_id,
|
|
|
|
|
+ "area_id": $.checkTask.area_id
|
|
|
};
|
|
};
|
|
|
- post_common_service("/task/getUserCount/", param, function(data) {
|
|
|
|
|
- if (data >= 2) {
|
|
|
|
|
- layer.msg("本周期稽查次数已满,不能再被稽查!", {
|
|
|
|
|
- offset: 'r',
|
|
|
|
|
- time: 2000 //20s后自动关闭
|
|
|
|
|
- });
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
- return true;
|
|
|
|
|
|
|
+ post_common_service("/f/task/getall/0/0", param, function(userList) {
|
|
|
|
|
+ var param = {
|
|
|
|
|
+ "id": $.checkTask.area_id
|
|
|
|
|
+ };
|
|
|
|
|
+ post_common_service("/f/area/getall", param, function(data) {
|
|
|
|
|
+ layer.closeAll('loading');
|
|
|
|
|
+ $.checkTask.areainfo = data.areas[0];
|
|
|
|
|
+ $("#checked_area").html(data.areas[0].name);
|
|
|
|
|
+ if (userList) {
|
|
|
|
|
+ $("#checked_count").html(userList.length);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("#checked_count").html(0);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+//显示考核次数
|
|
|
function showCheckDetailCount() {
|
|
function showCheckDetailCount() {
|
|
|
scoreDetailLayer = showPopup4Common('本周期已考核任务', null, ['450px', '350px'], '#checked_task_list_div', 'r', '确定');
|
|
scoreDetailLayer = showPopup4Common('本周期已考核任务', null, ['450px', '350px'], '#checked_task_list_div', 'r', '确定');
|
|
|
var param = {
|
|
var param = {
|
|
|
"period_id": $.checkTask.period_id,
|
|
"period_id": $.checkTask.period_id,
|
|
|
- "checked_person": $.checkTask.checked_person,
|
|
|
|
|
- "status_search_type": 1
|
|
|
|
|
|
|
+ "area_id": $.checkTask.area_id
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
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: 80, text: '任务名称', type: 'string', flex: true, sort: 'down', field: 'name' },
|
|
{ width: 80, text: '任务名称', type: 'string', flex: true, sort: 'down', field: 'name' },
|
|
|
- { width: 50, text: '考核人员', type: 'string', flex: true, colClass: '', field: 'checked_person_name' },
|
|
|
|
|
|
|
+ { width: 50, text: '考核区域', type: 'href_link', flex: true, colClass: '', field: $.checkTask.areainfo.name },
|
|
|
{ width: 80, text: '扣分情况', type: 'string', flex: true, sort: 'down', field: 'score_details' },
|
|
{ width: 80, text: '扣分情况', type: 'string', flex: true, sort: 'down', field: 'score_details' },
|
|
|
{ width: 70, text: '稽查时间段', type: 'string', flex: true, sort: 'down', field: 'check_period' }
|
|
{ width: 70, text: '稽查时间段', type: 'string', flex: true, sort: 'down', field: 'check_period' }
|
|
|
];
|
|
];
|
|
|
$('#checked_user_task_datatable').mytable({
|
|
$('#checked_user_task_datatable').mytable({
|
|
|
'cols': cols,
|
|
'cols': cols,
|
|
|
- 'url': "/task/getUserCheckedTaskByPage/",
|
|
|
|
|
|
|
+ 'url': "/f/task/getall/",
|
|
|
'param': param,
|
|
'param': param,
|
|
|
'isShoWPager': false
|
|
'isShoWPager': false
|
|
|
});
|
|
});
|
|
@@ -374,7 +334,7 @@ function queryCheckScores() {
|
|
|
{ width: 100, text: '评分记录', type: 'string', flex: true, sort: 'down', field: 'content' },
|
|
{ width: 100, text: '评分记录', type: 'string', flex: true, sort: 'down', field: 'content' },
|
|
|
{ width: 40, text: '分数', type: 'string', flex: true, colClass: '', field: 'check_item_score' },
|
|
{ width: 40, text: '分数', type: 'string', flex: true, colClass: '', field: 'check_item_score' },
|
|
|
{ width: 100, text: '备注', type: 'string', flex: true, colClass: '', field: 'remark' },
|
|
{ width: 100, text: '备注', type: 'string', flex: true, colClass: '', field: 'remark' },
|
|
|
- { width: 50, 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: 150,
|
|
// width: 150,
|
|
@@ -390,7 +350,7 @@ function queryCheckScores() {
|
|
|
// }
|
|
// }
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
- var colFunc = { width: 120, text: '操作', type: 'string', flex: true, field: 'id' };
|
|
|
|
|
|
|
+ var colFunc = { width: 170, text: '操作', type: 'string', flex: true, field: 'id' };
|
|
|
colFunc.oper = [
|
|
colFunc.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' }
|
|
@@ -407,7 +367,7 @@ function queryCheckScores() {
|
|
|
// }
|
|
// }
|
|
|
$('#score_datatable').mytable({
|
|
$('#score_datatable').mytable({
|
|
|
'cols': cols,
|
|
'cols': cols,
|
|
|
- 'url': "/score/getScoreList/",
|
|
|
|
|
|
|
+ 'url': "/f/score/getScoreList/",
|
|
|
'param': data
|
|
'param': data
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -429,11 +389,12 @@ function showEditCheckScore(id) {
|
|
|
$("#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);
|
|
|
- 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);
|
|
|
$("#check_remark_text").tagsInput({ 'defaultText': '添加备注', 'width': '240px' });
|
|
$("#check_remark_text").tagsInput({ 'defaultText': '添加备注', 'width': '240px' });
|
|
|
|
|
+ $("#check_remark_text").importTags('');
|
|
|
$("#check_remark_text").addTag(rowData.remark);
|
|
$("#check_remark_text").addTag(rowData.remark);
|
|
|
- getTags("/score/getTopRemark", '#score_remark_div', '#check_remark_text', 'remark');
|
|
|
|
|
|
|
+ getTags("/f/score/getTopRemark", '#score_remark_div', '#check_remark_text', 'remark');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function setFeeUserSelect(div, selectId) {
|
|
function setFeeUserSelect(div, selectId) {
|
|
@@ -473,7 +434,7 @@ function saveScoreEdit() {
|
|
|
};
|
|
};
|
|
|
editScoreId = null;
|
|
editScoreId = null;
|
|
|
$("#saveEditBtn").hide();
|
|
$("#saveEditBtn").hide();
|
|
|
- no_return_common_service("/score/update", param, function(data) {
|
|
|
|
|
|
|
+ no_return_common_service("/f/score/update", param, function(data) {
|
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
|
//查询评分情况
|
|
//查询评分情况
|
|
|
queryCheckScores();
|
|
queryCheckScores();
|
|
@@ -490,7 +451,7 @@ function saveEdit() {
|
|
|
var picsStr = "";
|
|
var picsStr = "";
|
|
|
if (imgArr && imgArr.length > 0) {
|
|
if (imgArr && imgArr.length > 0) {
|
|
|
for (var i = 0; i < imgArr.length; i++) {
|
|
for (var i = 0; i < imgArr.length; i++) {
|
|
|
- picsStr += imgArr[i].attr("path") + ","
|
|
|
|
|
|
|
+ picsStr += imgArr[i].attributes.getNamedItem("path").textContent + ","
|
|
|
}
|
|
}
|
|
|
picsStr = picsStr.substr(0, picsStr.length - 1);
|
|
picsStr = picsStr.substr(0, picsStr.length - 1);
|
|
|
}
|
|
}
|
|
@@ -500,7 +461,7 @@ function saveEdit() {
|
|
|
};
|
|
};
|
|
|
editScoreId = null;
|
|
editScoreId = null;
|
|
|
$("#saveEditBtn").hide();
|
|
$("#saveEditBtn").hide();
|
|
|
- no_return_common_service("/score/update", param, function(data) {
|
|
|
|
|
|
|
+ no_return_common_service("/f/score/update", param, function(data) {
|
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
|
//查询评分情况
|
|
//查询评分情况
|
|
|
queryCheckScores();
|
|
queryCheckScores();
|
|
@@ -513,7 +474,7 @@ function saveEdit() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function deleteCheckScore(id) {
|
|
function deleteCheckScore(id) {
|
|
|
- deleteItem4Common(id, "/score/delete/", queryCheckScores, 'r');
|
|
|
|
|
|
|
+ deleteItem4Common(id, "/f/score/delete/", queryCheckScores, 'r');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function backoutCheckScore(id) {
|
|
function backoutCheckScore(id) {
|
|
@@ -527,7 +488,7 @@ function backoutCheckScore(id) {
|
|
|
"id": id,
|
|
"id": id,
|
|
|
"check_item_score": 0
|
|
"check_item_score": 0
|
|
|
};
|
|
};
|
|
|
- post_common_service("/score/backoutScore/", param, function(data) {
|
|
|
|
|
|
|
+ post_common_service("/f/score/backoutScore/", param, function(data) {
|
|
|
layer.msg('撤销成功!', {
|
|
layer.msg('撤销成功!', {
|
|
|
offset: 'r',
|
|
offset: 'r',
|
|
|
time: 2000, //20s后自动关闭
|
|
time: 2000, //20s后自动关闭
|
|
@@ -631,84 +592,8 @@ function clearAllImg() {
|
|
|
}
|
|
}
|
|
|
var changePersonLayer;
|
|
var changePersonLayer;
|
|
|
|
|
|
|
|
-function showChangeUser() {
|
|
|
|
|
- var param = {
|
|
|
|
|
- 'organid': $.checkTask.checked_dept
|
|
|
|
|
- };
|
|
|
|
|
|
|
|
|
|
- post_common_service("/user/getUserList/", param, function(data) {
|
|
|
|
|
- changePersonLayer = showPopup4Common('更改人员', null, ['550px', '600px'], null, 'r', '确定');
|
|
|
|
|
- $("#user_container").empty();
|
|
|
|
|
- var userStr = "";
|
|
|
|
|
- for (var i in data) {
|
|
|
|
|
- var name = data[i].truename;
|
|
|
|
|
- if (data[i].workno) name = name + " " + data[i].workno.substr(data[i].workno.length - 3);
|
|
|
|
|
- var pic = "../../images/body-bg.png";
|
|
|
|
|
- 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>';
|
|
|
|
|
- userStr += str;
|
|
|
|
|
- }
|
|
|
|
|
- $("#user_container").html(userStr);
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-function changePerson(id) {
|
|
|
|
|
- layer.confirm('是否要更改考核人?', {
|
|
|
|
|
- btn: ['是', '否'], //按钮
|
|
|
|
|
- shadeClose: true,
|
|
|
|
|
- shade: 0, //不显示遮罩
|
|
|
|
|
- offset: 'r'
|
|
|
|
|
- }, function(index) {
|
|
|
|
|
- layer.close(index);
|
|
|
|
|
- var flag = true;
|
|
|
|
|
- var param = {
|
|
|
|
|
- "id": $.checkTask.id,
|
|
|
|
|
- "checked_person": id,
|
|
|
|
|
- "class_type": $.checkTask.class_type
|
|
|
|
|
- };
|
|
|
|
|
- post_common_service("/task/getUserCount/", param, function(data) {
|
|
|
|
|
- if (data && data.length >= 2) {
|
|
|
|
|
- layer.msg("本周期稽查次数已满,不能再被稽查!", {
|
|
|
|
|
- time: 2000, //20s后自动关闭
|
|
|
|
|
- offset: 'r'
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- // $('#checked_person').html(id);
|
|
|
|
|
- var param1 = {
|
|
|
|
|
- "id": $.checkTask.id,
|
|
|
|
|
- "checked_person": id,
|
|
|
|
|
- }
|
|
|
|
|
- post_common_service("task/update/", param1, function(task_data) {
|
|
|
|
|
- checkHasScore(id, $.checkTask.checked_person);
|
|
|
|
|
- //重置当前任务
|
|
|
|
|
- $.checkTask = task_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) {
|
|
|
|
|
- // alert(error);
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }, function() {
|
|
|
|
|
-
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
function checkHasScore(id, old_person) {
|
|
function checkHasScore(id, old_person) {
|
|
|
var param = {
|
|
var param = {
|
|
@@ -742,29 +627,9 @@ function checkHasScore(id, old_person) {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function showBigImg(src) {
|
|
|
|
|
- $('#userBigImg').attr("src", src);
|
|
|
|
|
- layer.open({
|
|
|
|
|
- offset: 'r',
|
|
|
|
|
- type: 1,
|
|
|
|
|
- title: false,
|
|
|
|
|
- closeBtn: 1,
|
|
|
|
|
- area: '450px',
|
|
|
|
|
- skin: 'layui-layer-nobg', //没有背景色
|
|
|
|
|
- shadeClose: true,
|
|
|
|
|
- shade: 0,
|
|
|
|
|
- content: $('#userBigImg')
|
|
|
|
|
- });
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-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>' +
|
|
|
|
|
- '(次数:<a href="javascript:void(0)" onclick="showCheckDetailCount()"><span class="label label-primary" id="checked_count">Primary</span></a>)';
|
|
|
|
|
- $("#user_img_container").html(str);
|
|
|
|
|
-}
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
function changePersonContent(data) {
|
|
function changePersonContent(data) {
|
|
|
resetUserImgInfo();
|
|
resetUserImgInfo();
|
|
@@ -846,8 +711,8 @@ function getCheckItems() {
|
|
|
showRemoveBtn: false
|
|
showRemoveBtn: false
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
- var param = { "rule_type": 1 };
|
|
|
|
|
- console.log(param);
|
|
|
|
|
|
|
+ var param = { "rule_type": 10 };
|
|
|
|
|
+
|
|
|
post_common_service('checkRule/getItemListByRuleType', param, function(data) {
|
|
post_common_service('checkRule/getItemListByRuleType', param, function(data) {
|
|
|
// console.log(data);
|
|
// console.log(data);
|
|
|
zdata = [];
|
|
zdata = [];
|
|
@@ -913,7 +778,7 @@ 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("/f/score/add", param, function(data) {
|
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
|
clearAllImg();
|
|
clearAllImg();
|
|
|
//查询评分情况
|
|
//查询评分情况
|
|
@@ -931,13 +796,11 @@ 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("/f/task/update/", param, function(data) {
|
|
|
layer.msg("提交成功", {
|
|
layer.msg("提交成功", {
|
|
|
offset: 'r',
|
|
offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
});
|
|
|
- // var currentpage = $.zui.store.get("currentpage");
|
|
|
|
|
- // getPageInfo(currentpage);
|
|
|
|
|
redirectLastPage();
|
|
redirectLastPage();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -946,8 +809,8 @@ function submitCheck() {
|
|
|
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 })
|
|
|
|
|
- changePage("/view/mytask/taskDetail.html");
|
|
|
|
|
|
|
+ no_return_common_service('/f/task/update', { "id": $.checkTask.id, "check_status": 7 })
|
|
|
|
|
+ changePage("/fwq/view/task/taskDetail.html");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var isappeal = false;
|
|
var isappeal = false;
|
|
@@ -968,7 +831,7 @@ function showInvalidView() {
|
|
|
}, ['400px', '500px'], '#invalid_div', 'r');
|
|
}, ['400px', '500px'], '#invalid_div', 'r');
|
|
|
|
|
|
|
|
$('#apply_reason').tagsInput({ 'defaultText': '添加原因' });
|
|
$('#apply_reason').tagsInput({ 'defaultText': '添加原因' });
|
|
|
- getTags("/checkApply/getTopReason", "#top_reason_div", '#apply_reason', 'apply_reason');
|
|
|
|
|
|
|
+ getTags("/f/checkApply/getTopReason", "#top_reason_div", '#apply_reason', 'apply_reason');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -999,7 +862,7 @@ function submitCheck4AppealResult(appeal_result) {
|
|
|
"appeal_id": $.checkTask.appeal.id,
|
|
"appeal_id": $.checkTask.appeal.id,
|
|
|
"appeal_result": appeal_result
|
|
"appeal_result": appeal_result
|
|
|
}
|
|
}
|
|
|
- no_return_common_service("/task/taskEnd/", param, function(data) {
|
|
|
|
|
|
|
+ no_return_common_service("/f/task/update/", param, function(data) {
|
|
|
layer.msg("提交成功", {
|
|
layer.msg("提交成功", {
|
|
|
offset: 'r',
|
|
offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
time: 2000 //20s后自动关闭
|
|
@@ -1011,8 +874,8 @@ function submitCheck4AppealResult(appeal_result) {
|
|
|
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 })
|
|
|
|
|
- changePage("/view/mytask/taskDetail.html");
|
|
|
|
|
|
|
+ no_return_common_service('/f/task/update', { "id": $.checkTask.id, "check_status": 17 })
|
|
|
|
|
+ changePage("/fwq/view/task/taskDetail.html");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function saveValidReason() {
|
|
function saveValidReason() {
|
|
@@ -1023,7 +886,7 @@ function saveValidReason() {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
- no_return_common_service("/checkApply/add/", param, function(data) {
|
|
|
|
|
|
|
+ no_return_common_service("/f/checkApply/add/", param, function(data) {
|
|
|
layer.msg("申请提交成功", {
|
|
layer.msg("申请提交成功", {
|
|
|
offset: 'r',
|
|
offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
time: 2000 //20s后自动关闭
|
|
@@ -1081,7 +944,7 @@ function saveRecheckResult() {
|
|
|
"id": $.checkTask.appeal.id,
|
|
"id": $.checkTask.appeal.id,
|
|
|
"recheck_result": $("#recheck_result").val()
|
|
"recheck_result": $("#recheck_result").val()
|
|
|
}
|
|
}
|
|
|
- post_common_service("/checkAppeal/update", param, function(data) {
|
|
|
|
|
|
|
+ post_common_service("/f/checkAppeal/update", param, function(data) {
|
|
|
layer.msg("保存成功", {
|
|
layer.msg("保存成功", {
|
|
|
offset: 'r',
|
|
offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
time: 2000 //20s后自动关闭
|