From 1df29b623eb9d49091303db4c611fc4568db70b1 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期一, 13 十二月 2021 08:58:27 +0800
Subject: [PATCH] #

---
 static/js/app.js             |   11 +++++++----
 static/js/data/Task.js       |   16 ++++++++++++++++
 views/index.html             |    1 +
 static/js/object/StoreCrn.js |    1 -
 4 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/static/js/app.js b/static/js/app.js
index 6bede19..9b020f1 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -29,7 +29,7 @@
 			this.initLight();
 			this.initFloor();
 			this.initModel();
-			this.initModel0();
+			this.queryTask();
 			this.initStoreObjects(this);
 		}
 		this.animate = function () {
@@ -256,12 +256,15 @@
 					//
 					// 	}
 					// }
-					this.firstTime = 0;
+					// this.firstTime = 0;
 				}
 			}
 		}
-		this.initModel0 = function () {
-
+		this.queryTask = function () {
+			if (this.firstTime === 1) {
+				queryTaskCurrent();
+				console.log(TaskData);
+			}
 		}
 		this.getExistedGoodType=function(state){
 			for (let i=0;i<this.goodTypes.length;i++) {
diff --git a/static/js/data/Task.js b/static/js/data/Task.js
new file mode 100644
index 0000000..5a46531
--- /dev/null
+++ b/static/js/data/Task.js
@@ -0,0 +1,16 @@
+
+
+function queryTaskCurrent() {
+    $.ajax({
+        // url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1',
+        url: 'http://localhost:9090/jkwcs/three/query/task/current/v1',
+        type: "GET",
+        data: {},
+        async: false,
+        success: function (res) {
+            TaskData = res;
+        }
+    })
+}
+
+var TaskData;
diff --git a/static/js/object/StoreCrn.js b/static/js/object/StoreCrn.js
index fd6f0c3..829dd1c 100644
--- a/static/js/object/StoreCrn.js
+++ b/static/js/object/StoreCrn.js
@@ -1,5 +1,4 @@
 function StoreCrn(option, object) {
-    console.log(option);
     this.crnBodyLength = option.crnBody.length||30;//搴撲綅闀垮害
     this.crnBodyWidth = option.crnBody.width||50;//搴撲綅瀹�
     this.crnBodyHeight = option.crnBody.height||500;//搴撲綅楂�
diff --git a/views/index.html b/views/index.html
index a1adb08..9f88b44 100644
--- a/views/index.html
+++ b/views/index.html
@@ -10,6 +10,7 @@
 		<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.2.2/dist/echarts.min.js"></script>
 		<script type="text/javascript" src="../static/js/common.js"></script>
 		<script type="text/javascript" src="../static/js/data/Warehouse.js"></script>
+		<script type="text/javascript" src="../static/js/data/Task.js"></script>
 		<script type="text/javascript" src="../static/js/object/Cube.js"></script>
 		<script type="text/javascript" src="../static/js/object/StoreArea.js"></script>
 		<script type="text/javascript" src="../static/js/object/Store.js"></script>

--
Gitblit v1.9.1