From 90ffa7515c367e9be9a2c41e954757898ad2df94 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 17 十一月 2020 15:27:07 +0800
Subject: [PATCH] #
---
src/main/webapp/views/monitor/js/monitor.js | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/views/monitor/js/monitor.js b/src/main/webapp/views/monitor/js/monitor.js
index 26b0138..eb192f3 100644
--- a/src/main/webapp/views/monitor/js/monitor.js
+++ b/src/main/webapp/views/monitor/js/monitor.js
@@ -7,8 +7,10 @@
var week = '鏄熸湡涓�';
setInterval(function () {
+ getOther();
setDate();
- initVisits();
+ initlinChart();
+ initPieChart();
}, 1000);
function setDate() {
@@ -44,3 +46,27 @@
}
+/**
+ * 鑾峰彇鍏朵粬鏁版嵁
+ */
+function getOther() {
+ http.get(baseUrl+"/monitor/other", {crnId: getUrlVal("crnId")}, function (res) {
+ if (res.code === 200){
+
+ $('#totalLoc').text(res.data.totalLoc);
+ $('#totalWrk').text(res.data.totalWrk);
+
+ $('#xSpeed').text(res.data.xSpeed);
+ $('#ySpeed').text(res.data.ySpeed);
+
+ // 璁℃暟鍔ㄧ敾
+ $('.counter').countUp();
+ } else if (res.code === 403){
+ parent.location.href = baseUrl+"/login";
+ } else {
+ layer.msg("杩炴帴鏈嶅姟鍣ㄥけ璐�", {icon: 2});
+ }
+ })
+
+}
+
--
Gitblit v1.9.1