mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-08 20:10:50 +08:00
feat(table): 灰度第三批三页切换并收编业务直呼
This commit is contained in:
@@ -228,6 +228,7 @@ $(function(){
|
|||||||
init: init,
|
init: init,
|
||||||
toolbar: ['refresh', 'export'],
|
toolbar: ['refresh', 'export'],
|
||||||
cols: cols,
|
cols: cols,
|
||||||
|
controlled: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
ua.listen();
|
ua.listen();
|
||||||
@@ -242,7 +243,7 @@ $(function(){
|
|||||||
// 空:行内编辑不允许置空(继承默认请走 edit 表单),modify 接口也会拒绝
|
// 空:行内编辑不允许置空(继承默认请走 edit 表单),modify 接口也会拒绝
|
||||||
if (val === '' || !/^[1-9]\d*$/.test(val)) {
|
if (val === '' || !/^[1-9]\d*$/.test(val)) {
|
||||||
ua.msg.error('concurrency 必须是正整数(继承默认请走编辑表单)');
|
ua.msg.error('concurrency 必须是正整数(继承默认请走编辑表单)');
|
||||||
layui.table.reloadData(tableId);
|
ua.table.reloadData(tableId);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// all 模式预估提示:全网并发 = 在线节点数 × 此值
|
// all 模式预估提示:全网并发 = 在线节点数 × 此值
|
||||||
@@ -287,7 +288,7 @@ $(function(){
|
|||||||
data: { trigger_node_id: currentNodeId },
|
data: { trigger_node_id: currentNodeId },
|
||||||
}, function (res) {
|
}, function (res) {
|
||||||
ua.msg.success(res.msg || '触发成功,等待定时器执行', function () {
|
ua.msg.success(res.msg || '触发成功,等待定时器执行', function () {
|
||||||
layui.table.reloadData(tableId);
|
ua.table.reloadData(tableId);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -300,7 +301,7 @@ $(function(){
|
|||||||
currentNodeId = data.value || '';
|
currentNodeId = data.value || '';
|
||||||
updateNodeHint();
|
updateNodeHint();
|
||||||
// 通知后端 reload(后端可选记录 node 上下文;归属列由前端 JS 算,不依赖后端)
|
// 通知后端 reload(后端可选记录 node 上下文;归属列由前端 JS 算,不依赖后端)
|
||||||
layui.table.reloadData(tableId, {
|
ua.table.reloadData(tableId, {
|
||||||
where: { node_id: currentNodeId }
|
where: { node_id: currentNodeId }
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ $(function(){
|
|||||||
init: init,
|
init: init,
|
||||||
toolbar: ['refresh'],
|
toolbar: ['refresh'],
|
||||||
defaultToolbar: ['filter'],
|
defaultToolbar: ['filter'],
|
||||||
|
controlled: true,
|
||||||
cols: [[
|
cols: [[
|
||||||
{type: 'checkbox'},
|
{type: 'checkbox'},
|
||||||
{field: 'id', title: 'ID', width: 80, sort: true},
|
{field: 'id', title: 'ID', width: 80, sort: true},
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ $(function () {
|
|||||||
|
|
||||||
ua.table.render({
|
ua.table.render({
|
||||||
init: init,
|
init: init,
|
||||||
|
controlled: true,
|
||||||
cols: [[
|
cols: [[
|
||||||
{ type: "checkbox" },
|
{ type: "checkbox" },
|
||||||
{ field: 'id', width: 80, title: 'ID' },
|
{ field: 'id', width: 80, title: 'ID' },
|
||||||
|
|||||||
Reference in New Issue
Block a user