fix(host): Host 控制器禁用手动增删改与按钮配置修正

HostBase 补 add/edit/delete/modify 禁用方法(节点自动注册,不支持手动操作)。_common.js 的 addUrl/editUrl/deleteUrl/exportUrl/modifyUrl 改空字符串。index.js 补 toolbar: ['refresh'](C 类页面,去掉默认的 add/delete/export)。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
augushong
2026-07-25 22:40:05 +08:00
parent 908f84ee9f
commit 739b536f8d
3 changed files with 39 additions and 5 deletions

View File

@@ -2,10 +2,10 @@ var init = {
tableElem: '#currentTable',
tableRenderId: 'currentTableRenderId',
indexUrl: 'system.host/index',
addUrl: 'system.host/add' + location.search,
editUrl: 'system.host/edit',
deleteUrl: 'system.host/delete',
exportUrl: 'system.host/export',
modifyUrl: 'system.host/modify',
addUrl: '',
editUrl: '',
deleteUrl: '',
exportUrl: '',
modifyUrl: '',
set_master_url: 'system.host/setMaster',
};

View File

@@ -1,5 +1,6 @@
$(function(){
ua.table.render({
toolbar: ['refresh'],
init: init,
cols: [[
{type: 'checkbox'},