Parcourir la source

重新打包app

zhoupeng il y a 1 an
Parent
commit
2c0d179a31

+ 8 - 6
chaunyi_opc/opc_da/src/main/java/com/example/opc_da/task/PrintTask.java

@@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Component;
 
 import java.net.InetAddress;
-import java.net.UnknownHostException;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -24,16 +23,19 @@ public class PrintTask {
     private String printUrl;
 
     public void autoPrint(Print print) {
+        log.info("开始执行打印任务");
         Integer reportTableId = print.getReportTableId();
-//        String printIp = print.getPrintIp();
-        String printIp = "192.168.0.14";
+        String printIp = print.getPrintIp();
+//        String printIp = "192.168.0.14";
         try {
-//            String hostAddress = InetAddress.getLocalHost().getHostAddress();
-            String hostAddress = "192.168.1.222";
-            String url = "http://" + hostAddress + ":8081" + pageUrl + "?id=" + reportTableId;
+            String hostAddress = InetAddress.getLocalHost().getHostAddress();
+//            String hostAddress = "192.168.1.222";
+            String url = "http://" + hostAddress + ":8081/app" + pageUrl + "?id=" + reportTableId;
+            log.info("报表请求地址{}",url);
             Map<String, Object> map = new HashMap<>();
             map.put("url", url);
             String post = HttpUtil.post("http://" + printIp + ":8084" + printUrl, map);
+            log.info(post);
         } catch (Exception e) {
             String message = e.getMessage();
             if (message.contains("Connection timed out: connect")){

+ 1 - 1
chaunyi_opc/opc_da/src/main/resources/static/app/index.html

@@ -2,4 +2,4 @@
 				.supports('top: constant(a)'))
 			document.write(
 				'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
-				(coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.63b34199.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.35954aaa.js></script><script src=./static/js/index.76713694.js></script></body></html>
+				(coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.63b34199.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.35954aaa.js></script><script src=./static/js/index.29ae2e0d.js></script></body></html>

BIN
chaunyi_opc/opc_da/src/main/resources/static/app/static/image/icon-demo-1126.png


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
chaunyi_opc/opc_da/src/main/resources/static/app/static/js/index.29ae2e0d.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
chaunyi_opc/opc_da/src/main/resources/static/app/static/js/pages-reportForm-index.180f7e6d.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
chaunyi_opc/opc_da/src/main/resources/static/app/static/js/pages-reportForm-index.c500750f.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
chaunyi_opc/opc_da/src/main/resources/static/app/static/js/pages-user-index.49e6ebec.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
chaunyi_opc/opc_da/src/main/resources/static/app/static/js/pages-user-index.5c000e73.js


+ 1 - 1
chaunyi_opc/opc_da/src/main/resources/static/app/static/webview/record-wv.html

@@ -36,7 +36,7 @@
 					console.log('当前环境:' + JSON.stringify(res));
 					const id = window.location.search.split('?id=')[1]
 					$.ajax({
-						url: "http://192.168.0.40:8081/reportTable/getReportTableById/" + id,
+						url: "http://localhost:8081/reportTable/getReportTableById/" + id,
 						type: 'GET',
 						success: function(res) {
 							if (res.code === 200) {

+ 2 - 2
chaunyi_opc/opc_da/src/main/resources/static/app/static/webview/report-java.html

@@ -55,7 +55,7 @@
 						console.log('当前环境:' + JSON.stringify(res));
 						const id = window.location.search.split('?id=')[1]
 						$.ajax({
-							url: "http://192.168.0.40:8081/reportTable/getReportTableById/" + id,
+							url: "http://localhost:8081/reportTable/getReportTableById/" + id,
 							type: 'GET',
 							success: function(res) {
 								if (res.code === 200) {
@@ -414,7 +414,7 @@
 											'count'
 										]
 									},
-									url: 'http://192.168.0.40:8081/reportTable/getAutoChReportTable',
+									url: 'http://localhost:8081/reportTable/getAutoChReportTable',
 									where: {
 										autoTableId: id
 									},

+ 2 - 2
chaunyi_opc/opc_da/src/main/resources/static/app/static/webview/report-wv.html

@@ -59,7 +59,7 @@
 						console.log('当前环境:' + JSON.stringify(res));
 						const id = window.location.search.split('?id=')[1]
 						$.ajax({
-							url: "http://192.168.0.40:8081/reportTable/getReportTableById",
+							url: "http://localhost:8081/reportTable/getReportTableById",
 							type: 'GET',
 							data: {
 								id: id
@@ -481,7 +481,7 @@
 											'count'
 										]
 									},
-									url: 'http://192.168.0.40:8081/reportTable/getAutoChReportTable',
+									url: 'http://localhost:8081/reportTable/getAutoChReportTable',
 									where: {
 										autoTableId: id
 									},

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff