mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 03:22:51 +08:00
fix(host): 主机列表页设为只读
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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -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'},
|
||||
|
||||
]],
|
||||
|
||||
Reference in New Issue
Block a user