This commit is contained in:
2025-03-25 14:02:54 +08:00
parent f40c0ef6e7
commit e0f8eb7b14

View File

@@ -27,7 +27,57 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,
buttons: [
{
name: 'addSunProject',
text: __('新增二级项目'),
title: __('新增二级项目'),
classname: 'btn btn-xs btn-primary btn-dialog',
icon: 'fa fa-magic',
url: 'firmstoreprojectstwo/add',
callback: function (data) {
Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
},
visible: function (row) {
//返回true时按钮显示,返回false隐藏
return true;
}
},
{
name: 'getSunProject',
text: __('查看二级项目列表'),
title: __('查看二级项目列表'),
classname: 'btn btn-xs btn-success btn-dialog',
icon: 'fa fa-list',
url: 'firmstoreprojectstwo/index',
callback: function (data) {
Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
},
visible: function (row) {
//返回true时按钮显示,返回false隐藏
return true;
}
},
// {
// name: 'selectSendTime',
// text: __('查看发送时间'),
// title: __('查看发送时间'),
// classname: 'btn btn-xs btn-danger btn-dialog',
// icon: 'fa fa-list',
// url: 'firmfollowuptemplatetimelist/index/firmfollowuptemplate_id/{id}',
// callback: function (data) {
// Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
// },
// visible: function (row) {
// //返回true时按钮显示,返回false隐藏
// return true;
// }
// },
]
}
]
]
});