wenhongquan 8 years ago
parent
commit
94be4610da
1 changed files with 18 additions and 4 deletions
  1. 18 4
      VisualInspection/js/statistics/assess_ranking.js

+ 18 - 4
VisualInspection/js/statistics/assess_ranking.js

@@ -438,11 +438,25 @@ function creatTask(){
         }else{
            url+='?classid='+classid+'&unregularid='+unregular_id+'&userid='+userid;
         }
-        get_common_service(url,'',function(data){
-             tip("已生成",null)
-        },function(error){
-             tip(error,null)
+         $.ajax({
+            type: 'GET',
+            url: url,
+            contentType: "application/json",
+            dataType: "json",
+            async: true,
+            success: function(response){
+                var data = response;
+                if (data.result_code == 0) {
+                    tip("生成成功",null) 
+                } else {
+                    tip(data.result_desc,null)                    
+                }
+            },
+            error: function(error) {
+               tip("网络错误",null)
+            }
         })
+       
 
 
     }else{