![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
fastadmin
❀想容
ShowMeBug
展开
-
FastAdmin列表实现自定义搜索及传值
FastAdmin列表实现自定义搜索及传值原创 2022-08-12 10:36:39 · 9503 阅读 · 2 评论 -
FastAdmin 通过域名直接访问后台登录页面
修改文件:application/index/controller/Index.php通过重定向的方式 访问到后台登录页面原创 2022-03-23 15:46:45 · 2690 阅读 · 0 评论 -
Fastadmin 列表自定义点击事件
{field: 'qr_code_address', title: __('二维码'), events:Controller.api.events.abc, formatter:function(value ,row, index){ return '<div class="qrcode'+row.v_id+' code">暂无</div>';}},在下面api中添加click为 事件 .code为 class名api: { ...原创 2021-06-09 18:05:10 · 1949 阅读 · 0 评论 -
fastadmin 列表中添加按钮并传参
首先在js页面添加button在绑定tab 事件在index.html中添加控制器中添加这样就可以拿到传的值了原创 2020-12-01 19:46:56 · 3265 阅读 · 0 评论 -
请求fastadmin api 跨域、 403 问题
在Api 基类添加header信息header("Access-Control-Allow-Methods: *");header('Access-Control-Allow-Origin: 域名');header("access-control-allow-credentials: true");// 响应头设置// header('Access-Control-Allow-Headers:x-requested-with,Content-Type,X-CSRF-Token');if.原创 2020-11-17 16:18:30 · 1396 阅读 · 1 评论 -
fastadmin 前端列表根据status状态显示自定义
后端返回的数据标识一些状态码返回,然后前端根据这些码来显示对应的内容,在fastadmin下可以通过修改 js文件来自定义 {field: 'is_sure', title: __('是否确认上车'),formatter:function (value) { if(value ==1) { return "已确认上车"; }else if(value ==2) {原创 2020-11-12 16:35:37 · 2653 阅读 · 0 评论