|
|
@@ -390,14 +390,14 @@ function queryCheckScores() {
|
|
|
// }
|
|
|
];
|
|
|
|
|
|
- var colFunc = {width: 120, text: '操作', type: 'string', flex: true, field: 'id'};
|
|
|
+ var colFunc = { width: 120, text: '操作', type: 'string', flex: true, field: 'id' };
|
|
|
colFunc.oper = [
|
|
|
- { func: 'showEditCheckScore', text: '修改', icon_class: 'icon-edit' },
|
|
|
- { func: 'showEditPic', text: '图片', icon_class: 'icon-edit' }
|
|
|
- ];
|
|
|
- if ($.checkTask.appeal){
|
|
|
+ { func: 'showEditCheckScore', text: '修改', icon_class: 'icon-edit' },
|
|
|
+ { func: 'showEditPic', text: '图片', icon_class: 'icon-edit' }
|
|
|
+ ];
|
|
|
+ if ($.checkTask.appeal) {
|
|
|
colFunc.oper.push({ func: 'backoutCheckScore', text: '撤销', icon_class: 'icon-reply' });
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
colFunc.oper.push({ func: 'deleteCheckScore', text: '删除', icon_class: 'icon-remove-circle' });
|
|
|
}
|
|
|
cols.push(colFunc);
|
|
|
@@ -515,6 +515,7 @@ function saveEdit() {
|
|
|
function deleteCheckScore(id) {
|
|
|
deleteItem4Common(id, "/score/delete/", queryCheckScores, 'r');
|
|
|
}
|
|
|
+
|
|
|
function backoutCheckScore(id) {
|
|
|
layer.confirm('是否要撤销扣分?', {
|
|
|
btn: ['是', '否'], //按钮
|
|
|
@@ -537,6 +538,7 @@ function backoutCheckScore(id) {
|
|
|
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
function setVideoList(videos) {
|
|
|
var videoArr;
|
|
|
if (videos) {
|
|
|
@@ -705,7 +707,7 @@ function changePerson(id) {
|
|
|
}, function() {
|
|
|
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function checkHasScore(id, old_person) {
|
|
|
@@ -844,9 +846,9 @@ function getCheckItems() {
|
|
|
showRemoveBtn: false
|
|
|
}
|
|
|
};
|
|
|
- var param = {"rule_type":1};
|
|
|
+ var param = { "rule_type": 1 };
|
|
|
console.log(param);
|
|
|
- post_common_service('checkRule/getItemListByRuleType', param , function(data) {
|
|
|
+ post_common_service('checkRule/getItemListByRuleType', param, function(data) {
|
|
|
// console.log(data);
|
|
|
zdata = [];
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
@@ -948,7 +950,19 @@ function showPre(id) {
|
|
|
changePage("/view/mytask/taskDetail.html");
|
|
|
}
|
|
|
|
|
|
+var isappeal = false;
|
|
|
+
|
|
|
+function appeal_showInvalid() {
|
|
|
+ isappeal = true;
|
|
|
+ showInvalidView();
|
|
|
+}
|
|
|
+
|
|
|
function showInvalid() {
|
|
|
+ isappeal = false;
|
|
|
+ showInvalidView();
|
|
|
+}
|
|
|
+
|
|
|
+function showInvalidView() {
|
|
|
invalidLayer = showPopup4Common('申请无效', function() {
|
|
|
saveValidReason();
|
|
|
}, ['400px', '500px'], '#invalid_div', 'r');
|
|
|
@@ -957,6 +971,8 @@ function showInvalid() {
|
|
|
getTags("/checkApply/getTopReason", "#top_reason_div", '#apply_reason', 'apply_reason');
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
function submitCheck4AppealDirect() {
|
|
|
var appeal_result = 1;
|
|
|
//询问框
|
|
|
@@ -1002,8 +1018,11 @@ function showPre4Appeal(id) {
|
|
|
function saveValidReason() {
|
|
|
var param = {
|
|
|
"task_id": $.checkTask.id,
|
|
|
- "apply_reason": $('#apply_reason').val()
|
|
|
- }
|
|
|
+ "apply_reason": $('#apply_reason').val(),
|
|
|
+ "isappeal": isappeal
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
no_return_common_service("/checkApply/add/", param, function(data) {
|
|
|
layer.msg("申请提交成功", {
|
|
|
offset: 'r',
|