#
luxiaotao1123
2023-03-21 059270c12f452fcc3344b826f35295fd7c20906e
static/js/data/Asrs.js
@@ -1,19 +1,19 @@
setInterval(function () {
    queryTaskCurrent();
initStore();
let interval = setInterval(function () {
    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: top.baseUrl + '/three/init/store/v1',
        type: "POST",
        data: {},
        async: false,
        success: function (res) {
            TaskDatas = res.data;
            Store3DData = res;
        }
    })
}
@@ -21,8 +21,7 @@
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: top.baseUrl + '/three/query/crn/cache/v1',
        type: "GET",
        data: {},
        success: function (res) {
@@ -30,3 +29,15 @@
        }
    })
}
var StaDatas = null;
function queryStaCurrent() {
    $.ajax({
        url: top.baseUrl + '/three/query/sta/cache/v1',
        type: "GET",
        data: {},
        success: function (res) {
            StaDatas = res.data;
        }
    })
}