fastadmin弹窗效果表单

在项目所对应的js文件中的

table.bootstrapTable({
    url: $.fn.bootstrapTable.defaults.extend.index_url,
    pk: 'id',
    sortName: 'id',
    columns: [
           {field: 'operate',
             title: __('Operate'),
             table: table,
             buttons:[
                {
                    name: 'detail',
                    title:'详情',
                    icon: 'fa fa-list',
                    classname: 'btn btn-info btn-xs btn-detail btn-dialog',
                    url: 'partner_e/showlist'//你自己的地址
                },
    }]
            

其中URL默认带此行的id:...../partner_e/showlist/ids/1

如果是点击操作栏中某一操作按钮,在控制器中input("ids")接收id即可

猜你喜欢

转载自www.cnblogs.com/wxy0126/p/11642220.html