|
为实现在table栏位中添加自定义按钮,展开对应的页面信息
1.只需要在对于界面的js代码页面中的按照如下代码插入即可
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, buttons:
- [
- {
- name: 'name1',
- text:__('授权料号'),
- title: __('授权料号'),
- icon: 'fa fa-list',//图标
- classname: 'btn btn-xs btn-primary btn-dialog', //btn-dialog表示为弹窗
- url: 'barcodetemplateconfig/index?t_id={id}',
- extend: 'data-area=\'["90%","75%"]\'',//弹窗大小
- Fast.api.open('barcodetemplateconfig/index?t_id={id})', __('授权'), {t_id:tmpid});
复制代码 其中的在url中填写需要展开的页面即可,注意,需要展开的页面必须在系统中存在,不然无法找到barcodetemplateconfig/index?t_id={id}中的t_id={id}为在本页面中点自定义按钮打开了barcodetemplateconfig/index的页面,为了使打开的页面的t_id与本页面相同所添加
|
|