首页>>技术分享>>php杂谈>fastadmin后台表格管理按钮多加一个功能

fastadmin后台表格管理按钮多加一个功能

大路 php杂谈 2023-10-27 607

fastmin后台表格有个操作按钮,原功能是修改和删除,需要新增一个功能,想要修改,方法如下

                        {
                            field: 'operate', title: __('Operate'), 
                            table: table,
                            buttons: [{
                                name:"查看订单",
                                text:"查看订单",
                            //!使用ajax方式发送请求,而不是打开新的标签页。这样就无法触发浏览器的下载行为。去掉btn-ajax,或者换成btn-dialog或者btn-window。
                            //   classname:'btn btn-xs btn-success btn-magic',
                            classname:'btn btn-xs btn-success btn-magic btn-dialog',
                              icon:'fa fa-magic',
                              url:'untruckloadorder/sendorder/getorderlist',
              
                                
                        }],
                            events: Table.api.events.operate, formatter: Table.api.formatter.operate
                        }


标签: