From b579fe0be3bd02ec39d612a62b23901fb852c173 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期六, 16 八月 2025 09:02:12 +0800
Subject: [PATCH] #
---
src/main/webapp/views/console.html | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 90df0d3..da67c0f 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -70,6 +70,10 @@
<span>杩愯緭绾挎�绘暟</span>
<span id="line-total" class="line-ss"></span>
</div>
+ <div class="state states">
+ <span>杈撻�佺嚎浠诲姟杩囪浇 <span id="devpTaskStackOver"></span></span>
+ <span id="devpWorkingCount" class="line-ss"></span>
+ </div>
<div class="button"><span>鎵�鏈夌姸鎬�</span></div>
<div class="button item-group">
<span class="site-auto-run-id">鑷姩+鏈夌墿+ID</span>
@@ -461,12 +465,14 @@
getSitesInfo();
getCrnInfo();
getSystemRunningStatus();
+ getDevpTaskCount();
getBarcodeInfo();
getScaleInfo();
// 瀹炴椂璁块棶
setInterval(function () {
getCrnInfo();
getSystemRunningStatus();
+ getDevpTaskCount();
getBarcodeInfo();
getScaleInfo();
}, 1000);
@@ -550,6 +556,26 @@
});
}
+ function getDevpTaskCount() {
+ $.ajax({
+ url: baseUrl + "/console/devpTaskCount",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ success: function (res) {
+ if (res.code === 200) {
+ let devpTaskStackOver = res.data.devpTaskStackOver
+ let devpWorkingCount = res.data.devpWorkingCount
+ $("#devpTaskStackOver").html(devpTaskStackOver);
+ $("#devpWorkingCount").html(devpWorkingCount);
+ } else if (res.code === 403) {
+ parent.location.href = baseUrl + "/login";
+ } else {
+ console.log(res.msg);
+ }
+ }
+ });
+ }
+
// 杈撻�佽澶囧疄鏃舵暟鎹幏鍙�
function getSitesInfo() {
$.ajax({
--
Gitblit v1.9.1