|
|
@@ -6,7 +6,6 @@ function initCheck() {
|
|
|
});
|
|
|
|
|
|
|
|
|
-
|
|
|
$("#tabcontent").css("height", ($("#video_content").height() - 80) + "px");
|
|
|
|
|
|
if (ISCLIENT) {
|
|
|
@@ -336,9 +335,11 @@ function showEditCheckScore(id) {
|
|
|
$("#score_id_text").val(rowData.id);
|
|
|
$("#check_item_text").val(rowData.content);
|
|
|
$("#check_score_text").val(rowData.check_item_score);
|
|
|
- $("#check_remark_text").val(rowData.remark);
|
|
|
setFeeUserSelect("#check_checked_person_select", rowData.checked_person);
|
|
|
// $("#check_checked_person_select").val(rowData.checked_person);
|
|
|
+ $("#check_remark_text").tagsInput({'defaultText':'添加备注','width':'240px'});
|
|
|
+ $("#check_remark_text").addTag(rowData.remark);
|
|
|
+ getTags("/score/getTopRemark",'#score_remark_div','#check_remark_text','remark');
|
|
|
}
|
|
|
|
|
|
function setFeeUserSelect(div, selectId) {
|
|
|
@@ -766,7 +767,9 @@ function submitCheck() {
|
|
|
layer.msg("提交成功", {
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
- changePage("/view/mytask/task_list.html?status=2");
|
|
|
+ var currentpage = $.zui.store.get("currentpage");
|
|
|
+ getPageInfo(currentpage);
|
|
|
+ // changePage("/view/mytask/task_list.html?status=2");
|
|
|
});
|
|
|
|
|
|
}
|
|
|
@@ -783,6 +786,8 @@ function showInvalid() {
|
|
|
saveValidReason();
|
|
|
}, ['400px', '500px'], '#invalid_div', 'r');
|
|
|
|
|
|
+ $('#apply_reason').tagsInput({'defaultText':'添加原因'});
|
|
|
+ getTags("/checkApply/getTopReason","#top_reason_div",'#apply_reason','apply_reason');
|
|
|
}
|
|
|
|
|
|
function submitCheck4Appeal() {
|
|
|
@@ -812,7 +817,9 @@ function submitCheck4AppealResult(appeal_result){
|
|
|
layer.msg("提交成功", {
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
- changePage("/view/appeal_management/appeal_list.html?status=12");
|
|
|
+ var currentpage = $.zui.store.get("currentpage");
|
|
|
+ getPageInfo(currentpage);
|
|
|
+ // changePage("/view/appeal_management/appeal_list.html?status=12");
|
|
|
});
|
|
|
}
|
|
|
function showPre4Appeal(id) {
|
|
|
@@ -825,13 +832,15 @@ function showPre4Appeal(id) {
|
|
|
function saveValidReason() {
|
|
|
var param = {
|
|
|
"task_id": $.checkTask.id,
|
|
|
- "apply_reason": $("#apply_reason").val()
|
|
|
+ "apply_reason": $('#apply_reason').val()
|
|
|
}
|
|
|
no_return_common_service("/checkApply/add/", param, function(data) {
|
|
|
layer.msg("申请提交成功", {
|
|
|
time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
- changePage("/view/mytask/task_list.html?status=2");
|
|
|
+ var currentpage = $.zui.store.get("currentpage");
|
|
|
+ getPageInfo(currentpage);
|
|
|
+ // changePage("/view/mytask/task_list.html?status=2");
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -891,4 +900,22 @@ function saveRecheckResult() {
|
|
|
});
|
|
|
$.checkTask.appeal = data;
|
|
|
});
|
|
|
-}
|
|
|
+}
|
|
|
+
|
|
|
+function addTag(text,tagDiv){
|
|
|
+ if (!$(tagDiv).tagExist(text)) {
|
|
|
+ $(tagDiv).addTag(text);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// function getTags(){
|
|
|
+// post_common_service("/checkApply/getTopReason", null, function(data) {
|
|
|
+// if(data){
|
|
|
+// var str="";
|
|
|
+// for(var i=0;i<data.length;i++){
|
|
|
+// str+='<a href="javascript:void(0)" onclick="addTag(\''+data[i].apply_reason+'\')" style="float:left;margin:5px;"><span class="label label-success" style="padding:5px;">'+data[i].apply_reason+'</span></a>';
|
|
|
+// }
|
|
|
+// $("#top_reason_div").html(str);
|
|
|
+// }
|
|
|
+// });
|
|
|
+// }
|