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 | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/views/monitor/js/monitor.js b/src/main/webapp/views/monitor/js/monitor.js
index 8889133..eb192f3 100644
--- a/src/main/webapp/views/monitor/js/monitor.js
+++ b/src/main/webapp/views/monitor/js/monitor.js
@@ -7,6 +7,7 @@
var week = '鏄熸湡涓�';
setInterval(function () {
+ getOther();
setDate();
initlinChart();
initPieChart();
@@ -45,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