minitiger 8 ani în urmă
părinte
comite
d106c1922c

+ 2 - 2
VisualInspection/js/config.js

@@ -40,8 +40,8 @@ function getTaskaddr() {
     if (base_ui_url.indexOf("jsjtyxt.com") != -1) {
         return "http://task_yanhai.jsxt.jsjtyxt.com/";
     } else if (base_ui_url.indexOf("localhost") != -1) {
-        // return "http://10.112.0.199:7000/"
-        return "http://localhost:8099/"
+        return "http://10.112.0.199:8099/"
+        // return "http://localhost:8099/"
     } else {
         return "http://10.112.0.199:8099/"
     }

+ 5 - 1
VisualInspection/js/statistics/assess_ranking.js

@@ -433,12 +433,16 @@ function creatTask(){
         var classid = ids[0];
         var unregular_id = ids[1];
         var url = task_server_url + "/task/add"
+        console.log("地址1"+task_server_url);
+        console.log("地址2"+url);
         if(unregular_id==null||unregular_id==""){
            url+='?classid='+classid+'&userid='+userid;
         }else{
            url+='?classid='+classid+'&unregularid='+unregular_id+'&userid='+userid;
         }
-        get_common_service(url,'',function(data){
+        console.log("地址3"+url);
+        get_common_service_nohead
+        (url,'',function(data){
              tip("已生成",null)
         },function(error){
              tip(error,null)

+ 14 - 0
VisualInspection/js/util/service.js

@@ -346,6 +346,20 @@ function get_common_service(url, param, success, fail) {
     });
 }
 
+function get_common_service_nohead(url, param, success, fail) {
+    var url = url;
+    ajaxGet(url, param, function(response) {
+        var data = response;
+        if (data.result_code == 0) {
+            success(data.result_data)
+        } else {
+            fail(data.result_desc);
+        }
+    }, function(error) {
+        fail("网络错误");
+    });
+}
+
 
 
 // 上传文件