Browse Source

再次申诉修改

1178232204@qq.com 3 years ago
parent
commit
0daf3e1377
2 changed files with 13 additions and 10 deletions
  1. 1 1
      src/html/appealUserPage.html
  2. 12 9
      src/js/appealUserPage.js

+ 1 - 1
src/html/appealUserPage.html

@@ -183,7 +183,7 @@
             {{else}}
             <p><span>评分: </span> -${score}</p>
             {{/if}}
-            <p><span>操作类型: </span> 删改条目</p>
+            <p><span>操作类型: </span><span>${appealOperationType == 0 ? '删改条目' : appealOperationType == 1 ? '新增已有条目' : appealOperationType == 2 ? '新增缺失条目' : '恢复条目'}</span></p>
             <p><span>缺陷详情: </span>${standardMsg}</p>
             <div class="drop-box checker-drop-box">
             <span><i class="required">*</i>审核人: </span>

+ 12 - 9
src/js/appealUserPage.js

@@ -502,6 +502,17 @@ $(function () {
     if (flag === '0') {   //申诉
       const flawsList = formatFlawKeys(global_flawData);
       const info = flawsList[global_activeTab] && flawsList[global_activeTab][i];
+      if (info.appealOperationType == 1) {
+        if (info.exampleStatus == 2) {
+          info.appealOperationType = 0
+        } else {
+          info.appealOperationType = 1
+        }
+      } else if (info.appealOperationType == 3) {
+        info.appealOperationType = 0
+      }else if(info.isDeleted == 'Y'){
+        info.appealOperationType = 3
+      }
       $("#delModal .title").text("申诉");
       $("#delModal .modal-box").css("margin-top", "-215px");
       $("#editTmpl").tmpl(info).appendTo("#delModal .modal-body");
@@ -523,15 +534,7 @@ $(function () {
           return;
         }
       });
-      if (info.appealOperationType == 1) {
-        if (info.exampleStatus == 2) {
-          info.appealOperationType = 0
-        } else {
-          info.appealOperationType = 1
-        }
-      } else if (info.appealOperationType == 3) {
-        info.appealOperationType = 0
-      }
+      
       $("#delModal .confirm").unbind("click").click(function () {
         if ($(".edit-box .warning").is(":visible")) {
           return;