From 03421f49b51b92f675d0bd0cae9d0ba341001b92 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期三, 22 六月 2022 10:50:03 +0800
Subject: [PATCH] #

---
 static/js/data/Asrs.js |   31 ++++++++++++++++++++-----------
 1 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/static/js/data/Asrs.js b/static/js/data/Asrs.js
index b21a828..f3f286d 100644
--- a/static/js/data/Asrs.js
+++ b/static/js/data/Asrs.js
@@ -1,14 +1,27 @@
 
+initStore();
+
 setInterval(function () {
     queryCrnCurrent();
+    queryStaCurrent();
 },1000);
 
+var Store3DData;
+function initStore() {
+    $.ajax({
+        url: top.baseUrl + '/three/init/store/v1',
+        type: "POST",
+        data: {},
+        success: function (res) {
+            Store3DData = res;
+        }
+    })
+}
 
 var CrnDatas = null;
 function queryCrnCurrent() {
     $.ajax({
-        // url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1',
-        url: 'http://localhost:9090/jkwcs/three/query/crn/cache/v1',
+        url: top.baseUrl + '/three/query/crn/cache/v1',
         type: "GET",
         data: {},
         success: function (res) {
@@ -17,18 +30,14 @@
     })
 }
 
-var Store3DData;
-function initStore() {
+var StaDatas = null;
+function queryStaCurrent() {
     $.ajax({
-        // url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1',
-        url: 'http://localhost:9090/jkwcs/three/init/store/v1',
-        type: "POST",
+        url: top.baseUrl + '/three/query/sta/cache/v1',
+        type: "GET",
         data: {},
-        async: false,
         success: function (res) {
-            Store3DData = res;
+            StaDatas = res.data;
         }
     })
-
 }
-

--
Gitblit v1.9.1