From b7094eee8a86107571bc50f8454236ade74898af Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 26 May 2026 18:28:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(host):=20=E4=B8=BB=E6=9C=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E8=AE=BE=E4=B8=BA=E5=8F=AA=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove add/edit/delete buttons and auth attributes from host list page. Hosts are auto-registered via heartbeat, manual CRUD is meaningless. Keep only setMaster operation. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- extend/base/admin/view/system/host/index.html | 6 +----- extend/base/admin/view/system/host/index.js | 6 ++---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/extend/base/admin/view/system/host/index.html b/extend/base/admin/view/system/host/index.html index 146e27c..0b34cf8 100644 --- a/extend/base/admin/view/system/host/index.html +++ b/extend/base/admin/view/system/host/index.html @@ -2,12 +2,8 @@
diff --git a/extend/base/admin/view/system/host/index.js b/extend/base/admin/view/system/host/index.js index 61d5ac7..09a201d 100644 --- a/extend/base/admin/view/system/host/index.js +++ b/extend/base/admin/view/system/host/index.js @@ -21,8 +21,7 @@ $(function(){ {field: 'disk_free', title: '磁盘可用空间'}, {field: 'disk_total', title: '磁盘总空间'}, {field: 'create_time', title: '首次运行时间'}, - {width: 300, title: '操作', templet: ua.table.tool, operat: [ - 'edit', + {width: 200, title: '操作', templet: ua.table.tool, operat: [ [{ text: '设为主节点', url: init.set_master_url, @@ -36,8 +35,7 @@ $(function(){ _if: function(data) { return data.status == 1 && data.is_master != 1; } - }], - 'delete' + }] ], fixed:'right'}, ]],