feat(table): 灰度第三批三页切换并收编业务直呼

This commit is contained in:
augushong
2026-09-10 21:22:43 +00:00
parent 4f14f18c78
commit e9bbcc5bb2
3 changed files with 6 additions and 3 deletions

View File

@@ -228,6 +228,7 @@ $(function(){
init: init,
toolbar: ['refresh', 'export'],
cols: cols,
controlled: true,
});
ua.listen();
@@ -242,7 +243,7 @@ $(function(){
// 空:行内编辑不允许置空(继承默认请走 edit 表单),modify 接口也会拒绝
if (val === '' || !/^[1-9]\d*$/.test(val)) {
ua.msg.error('concurrency 必须是正整数(继承默认请走编辑表单)');
layui.table.reloadData(tableId);
ua.table.reloadData(tableId);
return false;
}
// all 模式预估提示:全网并发 = 在线节点数 × 此值
@@ -287,7 +288,7 @@ $(function(){
data: { trigger_node_id: currentNodeId },
}, function (res) {
ua.msg.success(res.msg || '触发成功,等待定时器执行', function () {
layui.table.reloadData(tableId);
ua.table.reloadData(tableId);
});
});
}
@@ -300,7 +301,7 @@ $(function(){
currentNodeId = data.value || '';
updateNodeHint();
// 通知后端 reload(后端可选记录 node 上下文;归属列由前端 JS 算,不依赖后端)
layui.table.reloadData(tableId, {
ua.table.reloadData(tableId, {
where: { node_id: currentNodeId }
});
});

View File

@@ -58,6 +58,7 @@ $(function(){
init: init,
toolbar: ['refresh'],
defaultToolbar: ['filter'],
controlled: true,
cols: [[
{type: 'checkbox'},
{field: 'id', title: 'ID', width: 80, sort: true},

View File

@@ -2,6 +2,7 @@ $(function () {
ua.table.render({
init: init,
controlled: true,
cols: [[
{ type: "checkbox" },
{ field: 'id', width: 80, title: 'ID' },