wenhongquan 8 лет назад
Родитель
Сommit
12a910a9bf

+ 4 - 1
VisualInspection/js/mytask/apply_task.js

@@ -102,7 +102,10 @@ function queryUnexaminedTask(){
 //进入稽查页面
 function showCheck(id){
     $.checkTask =getItemByIdFromArr(id,$('#unexamined_datatable').mytable('getTableData'));
-    $.checkTask.appeal = null;
+    if(typeof($.checkTask)!="undefined" && typeof($.checkTask.appeal) != "undefined"){
+        $.checkTask.appeal = null;
+    }
+  
     //开始稽查
     no_return_common_service('/task/update', {"id":$.checkTask.id,"check_status":21,"record_status":1,"check_status_name":"复查"});
     changePage("/view/mytask/check.html");

+ 3 - 2
VisualInspection/js/mytask/task_list.js

@@ -167,10 +167,11 @@ function refuseApply(taskId){
 function showTaskDetail(id){
     var rowData=getItemByIdFromArr(id,$('.datatable').mytable('getTableData'));
     $.checkTask = rowData;
-    if(typeof($.checkTask.appeal)!="undefined"){
-       $.checkTask.appeal = null;
+    if(typeof($.checkTask)!="undefined" && typeof($.checkTask.appeal) != "undefined"){
+        $.checkTask.appeal = null;
     }
     
+    
     changePage("/view/mytask/taskDetail.html");
 }
 //下发所有任务