From a95ecdf03e770374af40fb2e4c107f8475949b63 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 23 十二月 2021 13:54:48 +0800
Subject: [PATCH] #
---
static/js/data/Asrs.js | 36 ++++++++++++++++++++----------------
1 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/static/js/data/Asrs.js b/static/js/data/Asrs.js
index e540b02..6a46fed 100644
--- a/static/js/data/Asrs.js
+++ b/static/js/data/Asrs.js
@@ -1,28 +1,16 @@
+initStore();
+
setInterval(function () {
- queryTaskCurrent();
queryCrnCurrent();
},1000);
-var TaskDatas = null;
-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) {
- TaskDatas = res.data;
- }
- })
-}
var CrnDatas = null;
function queryCrnCurrent() {
$.ajax({
- // url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1',
- url: 'http://localhost:9090/jkwcs/three/query/crn/cache/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: {},
success: function (res) {
@@ -30,3 +18,19 @@
}
})
}
+
+var Store3DData;
+function initStore() {
+ $.ajax({
+ url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1',
+ // url: 'http://localhost:9090/jkwcs/three/init/store/v1',
+ type: "POST",
+ data: {},
+ // async: false,
+ success: function (res) {
+ Store3DData = res;
+ }
+ })
+
+}
+
--
Gitblit v1.9.1