فهرست منبع

Merge branch 'master' of http://git_xt.jsxt.jsjtyxt.com/wenhongquan/VisualInspection

chenrj-PC\chenrj 8 سال پیش
والد
کامیت
50cede1d85
2فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 4 1
      VisualInspection/js/mytask/apply_task.js
  2. 3 2
      VisualInspection/js/mytask/task_list.js

+ 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");
 }
 //下发所有任务