minitiger před 9 roky
rodič
revize
765bb4a88c

+ 1 - 1
VisualInspection/js/config.js

@@ -1,6 +1,6 @@
 var base_ui_url = "http://192.168.68.126:8081/";
 var base_server_url = "http://192.168.68.126:8089/";
-var base_image_server_url = "http://192.168.68.126:8080/";
+var base_image_server_url = "http://10.112.0.236:8088/";
 
 // var base_ui_url = "http://localhost:8081/";
 // var base_server_url = "http://localhost:8089/";

+ 1 - 1
VisualInspection/js/lib/imageupload/js/imgUp.js

@@ -55,7 +55,7 @@ $(function() {
 
                 //上传
                 uploadFile(fileList[i], "file", function(data) {
-                    $img.attr("src", base_server_url + data.path);
+                    $img.attr("src", data.path);
                     $img.attr("path", data.path);
                 }, function(error) {
                     console.log(error)

+ 1 - 1
VisualInspection/js/util/service.js

@@ -207,7 +207,7 @@ function uploadFile(file, name, successfunc, errorfunc) {
     var dataurl = base_image_server_url+"/fileServer" + FILE_UPLOAD
     var form = new FormData();
     form.append(name, file);
-    form.append('parentPath','tt');
+    form.append('parentPath','head');
     $.ajax({
         url: dataurl,
         type: "POST",

+ 42 - 0
VisualInspection_server/.project

@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>visualInspection</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+	</natures>
+</projectDescription>