From 8e235413805eb934168edb300815104334c40ae4 Mon Sep 17 00:00:00 2001
From: butubb <1422726308@qq.com>
Date: Tue, 11 Aug 2026 10:42:32 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=BA=94=E7=94=A8Tab=E6=95=B4?=
=?UTF-8?q?=E4=BD=93=E5=B9=B6=E5=85=A5=E5=B7=A5=E5=85=B7Tab=EF=BC=88?=
=?UTF-8?q?=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86/=E8=AE=BE=E5=A4=87?=
=?UTF-8?q?=E5=B7=B2=E8=A3=85=E5=BA=94=E7=94=A8=E6=88=90=E4=B8=BA=E5=B7=A5?=
=?UTF-8?q?=E5=85=B7=E5=AD=90=E5=88=86=E6=A0=8F=EF=BC=89=EF=BC=8C=E7=A7=BB?=
=?UTF-8?q?=E9=99=A4=E7=8B=AC=E7=AB=8B=E5=BA=94=E7=94=A8=E5=AF=BC=E8=88=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/admin/monitor.js | 9 ++--
templates/admin/monitor.html | 102 ++++++++++++++++-------------------
2 files changed, 50 insertions(+), 61 deletions(-)
diff --git a/static/admin/monitor.js b/static/admin/monitor.js
index e866ce0..a9f6f96 100644
--- a/static/admin/monitor.js
+++ b/static/admin/monitor.js
@@ -281,23 +281,22 @@ function showTab(name){
document.querySelectorAll('.tab-panel').forEach(p=>p.classList.remove('active'));
document.querySelectorAll('.navbar .tab').forEach(t=>t.classList.remove('active'));
document.getElementById('tab-'+name).classList.add('active');
- document.querySelectorAll('.navbar .tab')[['monitor','tasks','apps','groups','logs','users','maintenance','tools'].indexOf(name)].classList.add('active');
+ document.querySelectorAll('.navbar .tab')[['monitor','tasks','groups','logs','users','maintenance','tools'].indexOf(name)].classList.add('active');
// 停止所有定时器
if(_monitorTimer){clearInterval(_monitorTimer);_monitorTimer=null;}
if(_logTimer){clearInterval(_logTimer);_logTimer=null;}
// 按需加载数据
if(name==='monitor'){loadMonitor();_monitorTimer=setInterval(loadMonitor,5000);}
if(name==='tasks'){showSubTab('tasks',_activeSubs.tasks);loadTasks();loadCustomActions();}
- if(name==='apps'){showSubTab('apps',_activeSubs.apps);loadApks();}
- if(name==='tools'){showSubTab('tools',_activeSubs.tools);loadToolsDevices();loadAdbDevices();loadTailscaleDevices();}
+ if(name==='tools'){showSubTab('tools',_activeSubs.tools);loadToolsDevices();loadAdbDevices();loadTailscaleDevices();loadApks();}
if(name==='groups')loadGroups();
if(name==='logs'){loadLogs();if(document.getElementById('log-auto').checked)_logTimer=setInterval(loadLogs,3000);}
if(name==='users')loadUsers();
}
-// ================== 页内子分栏(任务/应用/工具 通用) ==================
+// ================== 页内子分栏(任务/工具 通用) ==================
// 每个带子分栏的 Tab 记住上次选中的子分栏,切走再切回来保持原位
-let _activeSubs = {tasks: 'plan', apps: 'apks', tools: 'clipboard'};
+let _activeSubs = {tasks: 'plan', tools: 'clipboard'};
function showSubTab(tabId, name){
_activeSubs[tabId] = name;
diff --git a/templates/admin/monitor.html b/templates/admin/monitor.html
index 35719ea..c2170bc 100644
--- a/templates/admin/monitor.html
+++ b/templates/admin/monitor.html
@@ -286,7 +286,6 @@ select.form-control{cursor:pointer}
-
@@ -393,60 +392,6 @@ select.form-control{cursor:pointer}
-
-
-
应用
-
APK 上传安装与设备已装应用查看
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 应用 | 版本号 | versionCode | APK 路径 |
-
-
- | 选择设备后点击"查看应用" |
-
-
-
-
-
-
-
设备分组管理
@@ -525,12 +470,14 @@ select.form-control{cursor:pointer}
+
+
+
+
+
+