From 620460930976dd6e9a725a0915ab7b2b44c06b4e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 07 四月 2022 15:14:41 +0800
Subject: [PATCH] #
---
static/js/data/Asrs.js | 32 +++++++++++++++++++++++---------
1 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/static/js/data/Asrs.js b/static/js/data/Asrs.js
index 25a16e7..ed54974 100644
--- a/static/js/data/Asrs.js
+++ b/static/js/data/Asrs.js
@@ -1,19 +1,21 @@
+initStore();
+
setInterval(function () {
- queryTaskCurrent();
queryCrnCurrent();
+ queryStaCurrent();
},1000);
-var TaskDatas = null;
-function queryTaskCurrent() {
+var Store3DData;
+function initStore() {
$.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",
+ url: 'http://localhost:9090/jkwcs/three/init/store/v1',
+ type: "POST",
data: {},
- async: false,
+ // async: false,
success: function (res) {
- TaskDatas = res.data;
+ Store3DData = res;
}
})
}
@@ -21,13 +23,25 @@
var CrnDatas = null;
function queryCrnCurrent() {
$.ajax({
- // url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1',
+ // url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1',
url: 'http://localhost:9090/jkwcs/three/query/crn/cache/v1',
type: "GET",
data: {},
- async: false,
success: function (res) {
CrnDatas = res.data;
}
})
}
+
+var StaDatas = null;
+function queryStaCurrent() {
+ $.ajax({
+ // url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1',
+ url: 'http://localhost:9090/jkwcs/three/query/sta/cache/v1',
+ type: "GET",
+ data: {},
+ success: function (res) {
+ StaDatas = res.data;
+ }
+ })
+}
--
Gitblit v1.9.1