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:
@@ -2,12 +2,8 @@
|
|||||||
<div class="layuimini-main">
|
<div class="layuimini-main">
|
||||||
<table id="currentTable" class="layui-table layui-hide"
|
<table id="currentTable" class="layui-table layui-hide"
|
||||||
data-auth-index="{:auth('system.host/index')}"
|
data-auth-index="{:auth('system.host/index')}"
|
||||||
data-auth-add="{:auth('system.host/add')}"
|
|
||||||
data-auth-edit="{:auth('system.host/edit')}"
|
|
||||||
data-auth-delete="{:auth('system.host/delete')}"
|
|
||||||
data-auth-export="{:auth('system.host/export')}"
|
|
||||||
data-auth-modify="{:auth('system.host/modify')}"
|
|
||||||
data-auth-set-master="{:auth('system.host/setMaster')}"
|
data-auth-set-master="{:auth('system.host/setMaster')}"
|
||||||
|
data-auth-modify="{:auth('system.host/modify')}"
|
||||||
lay-filter="currentTable">
|
lay-filter="currentTable">
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ $(function(){
|
|||||||
{field: 'disk_free', title: '磁盘可用空间'},
|
{field: 'disk_free', title: '磁盘可用空间'},
|
||||||
{field: 'disk_total', title: '磁盘总空间'},
|
{field: 'disk_total', title: '磁盘总空间'},
|
||||||
{field: 'create_time', title: '首次运行时间'},
|
{field: 'create_time', title: '首次运行时间'},
|
||||||
{width: 300, title: '操作', templet: ua.table.tool, operat: [
|
{width: 200, title: '操作', templet: ua.table.tool, operat: [
|
||||||
'edit',
|
|
||||||
[{
|
[{
|
||||||
text: '设为主节点',
|
text: '设为主节点',
|
||||||
url: init.set_master_url,
|
url: init.set_master_url,
|
||||||
@@ -36,8 +35,7 @@ $(function(){
|
|||||||
_if: function(data) {
|
_if: function(data) {
|
||||||
return data.status == 1 && data.is_master != 1;
|
return data.status == 1 && data.is_master != 1;
|
||||||
}
|
}
|
||||||
}],
|
}]
|
||||||
'delete'
|
|
||||||
], fixed:'right'},
|
], fixed:'right'},
|
||||||
|
|
||||||
]],
|
]],
|
||||||
|
|||||||
Reference in New Issue
Block a user