|
|
@@ -62,6 +62,7 @@ function initCheck() {
|
|
|
} else {
|
|
|
callFunc("showvideoview", "false");
|
|
|
layer.msg('该处暂无视屏!', {
|
|
|
+ offset: 'r',
|
|
|
time: 2000, //20s后自动关闭
|
|
|
});
|
|
|
callFunc("stop", "");
|
|
|
@@ -203,6 +204,7 @@ function checkUserCount() {
|
|
|
post_common_service("/task/getUserCount/", param, function(data) {
|
|
|
if (data >= 2) {
|
|
|
layer.msg("本周期稽查次数已满,不能再被稽查!", {
|
|
|
+ offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
return false;
|
|
|
@@ -414,6 +416,7 @@ function saveEdit() {
|
|
|
//查询评分情况
|
|
|
queryCheckScores();
|
|
|
layer.msg(data, {
|
|
|
+ offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
});
|
|
|
@@ -565,12 +568,13 @@ function changePerson(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);
|
|
|
- })
|
|
|
+ changePersonContent(data);
|
|
|
+ })
|
|
|
//更新用户次数表
|
|
|
no_return_common_service('task/updateUserCount/', param, function(data) {
|
|
|
// changePersonContent(data);
|
|
|
@@ -583,6 +587,37 @@ function changePerson(id) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+function checkHasScore(id,old_person){
|
|
|
+ var param = {
|
|
|
+ "task_id": $.checkTask.id,
|
|
|
+ "checked_person":old_person
|
|
|
+ };
|
|
|
+ post_common_service("/score/getScoreList/1/10", param, function(data) {
|
|
|
+ if(data.list && data.list.length>0){
|
|
|
+ layer.confirm('是否要同步更改扣分人?', {
|
|
|
+ btn: ['是','否'],//按钮
|
|
|
+ shadeClose: true,
|
|
|
+ shade: 0 ,//不显示遮罩
|
|
|
+ offset:'r'
|
|
|
+ }, function(){
|
|
|
+ var param = {
|
|
|
+ "task_id": $.checkTask.id,
|
|
|
+ "checked_person":old_person,
|
|
|
+ "new_checked_person":id
|
|
|
+ };
|
|
|
+ post_common_service("/score/updateByTaskIdAndPerson/", param, function(data) {
|
|
|
+ layer.msg('更改成功!', {
|
|
|
+ offset: 'r',
|
|
|
+ time: 2000, //20s后自动关闭
|
|
|
+ });
|
|
|
+ queryCheckScores();
|
|
|
+ });
|
|
|
+ }, function(){
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
function showBigImg(src) {
|
|
|
$('#userBigImg').attr("src", src);
|
|
|
layer.open({
|
|
|
@@ -755,6 +790,7 @@ function zTreeOnClick(event, treeId, treeNode) {
|
|
|
//查询评分情况
|
|
|
queryCheckScores();
|
|
|
layer.msg(data, {
|
|
|
+ offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
});
|
|
|
@@ -768,11 +804,12 @@ function submitCheck() {
|
|
|
}
|
|
|
no_return_common_service("/task/taskEnd/", param, function(data) {
|
|
|
layer.msg("提交成功", {
|
|
|
+ offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
- var currentpage = $.zui.store.get("currentpage");
|
|
|
- getPageInfo(currentpage);
|
|
|
- // changePage("/view/mytask/task_list.html?status=2");
|
|
|
+ // var currentpage = $.zui.store.get("currentpage");
|
|
|
+ // getPageInfo(currentpage);
|
|
|
+ redirectLastPage();
|
|
|
});
|
|
|
|
|
|
}
|
|
|
@@ -821,11 +858,10 @@ function submitCheck4AppealResult(appeal_result){
|
|
|
}
|
|
|
no_return_common_service("/task/taskEnd/", param, function(data) {
|
|
|
layer.msg("提交成功", {
|
|
|
+ offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
- var currentpage = $.zui.store.get("currentpage");
|
|
|
- getPageInfo(currentpage);
|
|
|
- // changePage("/view/appeal_management/appeal_list.html?status=12");
|
|
|
+ redirectLastPage();
|
|
|
});
|
|
|
}
|
|
|
function showPre4Appeal(id) {
|
|
|
@@ -842,11 +878,10 @@ function saveValidReason() {
|
|
|
}
|
|
|
no_return_common_service("/checkApply/add/", param, function(data) {
|
|
|
layer.msg("申请提交成功", {
|
|
|
+ offset: 'r',
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
- var currentpage = $.zui.store.get("currentpage");
|
|
|
- getPageInfo(currentpage);
|
|
|
- // changePage("/view/mytask/task_list.html?status=2");
|
|
|
+ redirectLastPage();
|
|
|
});
|
|
|
}
|
|
|
|