阿里云搞活动,想要抓紧买:https://promotion.aliyun.com/ntms/act/qwbk.html?userCode=4hy76kwx
Fastadmin是一种非常好用的工具,一开始应用的时候,好多都是用PHP原生的功能去实现,其实它已经有更好的实现方法,我整理了一下在最近使用中经常用到的代码,以后会持续更新
一、时间搜索:
{field: 'xieche_time', title: __('Xieche_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
二、搜索中不显示:operate:false{field: 'addtime', title: __('Addtime'), operate:false},
三、between搜索{field: 'gai_yunfei', title: __('Gai_yunfei'), operate:'BETWEEN'},
四、列表中隐藏visible:false
五、selectpage表单传递参数data-params='{"custom[is_del]":"0"}'
六、点击添加或者编辑按钮的时候弹窗的大小
在js中设置
$(".btn-edit,.btn-add,.btn-editone").data("area", ["100%","100%"]);
欢迎加入我的QQ群:282882201

阿里云搞活动,想要抓紧买:https://promotion.aliyun.com/ntms/act/qwbk.html?userCode=4hy76kwx