Przeglądaj źródła

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

# Conflicts:
#	VisualInspection/js/statistics/assess_ranking.js
minitiger 8 lat temu
rodzic
commit
64c29450b0
1 zmienionych plików z 18 dodań i 6 usunięć
  1. 18 6
      VisualInspection/js/statistics/assess_ranking.js

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

@@ -440,13 +440,25 @@ function creatTask(){
         }else{
            url+='?classid='+classid+'&unregularid='+unregular_id+'&userid='+userid;
         }
-        console.log("地址3"+url);
-        get_common_service_nohead
-        (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{