随笔分类 -  fastadmin

摘要:{ field: 'title', title: __('标题'), formatter: function(value){ if(value.length > 20){ return value.toString().substr(0, 20) + '...'; }else{ return val 阅读全文
posted @ 2020-07-16 09:26 王的孤傲 阅读(854) 评论(0) 推荐(0) 编辑
摘要:commonSearch: false, visible: false, showToggle: false, showColumns: false, search:false, showExport: false, 阅读全文
posted @ 2020-07-16 09:12 王的孤傲 阅读(1745) 评论(0) 推荐(1) 编辑
摘要:上传方法内设置 Config::set('default_return_type', 'json'); 阅读全文
posted @ 2020-07-15 15:17 王的孤傲 阅读(1286) 评论(0) 推荐(0) 编辑
摘要:{field: 'url', title: __('Url'), formatter: Table.api.formatter.url}, 阅读全文
posted @ 2020-07-03 16:05 王的孤傲 阅读(1187) 评论(0) 推荐(0) 编辑
摘要:{field: 'createtime', title: __('Createtime'), sortable:true, operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, 如上加 阅读全文
posted @ 2020-07-03 16:00 王的孤傲 阅读(1962) 评论(0) 推荐(0) 编辑
摘要:{field: 'id', title: __('网站地址'), formatter: function(value, row, index){ return '<span data-url="//' + row["ip"] + ':' + row["port"] + '" ' + 'class=" 阅读全文
posted @ 2020-07-03 15:57 王的孤傲 阅读(4815) 评论(0) 推荐(0) 编辑
摘要:在js文件中修改字段 {field: 'id', title: __('序号'), formatter: function(value, row, index){ return ++index; }}, 阅读全文
posted @ 2020-07-03 15:15 王的孤傲 阅读(982) 评论(0) 推荐(0) 编辑
摘要:首先在方法开始处开启关联查询 $this->relationSearch = true; //开启关联查询 然后在模型里面添加方法 public function adminInfo(){ return $this->belongsTo('Admin', 'uid', 'id', [], 'LEFT 阅读全文
posted @ 2020-07-03 15:12 王的孤傲 阅读(2524) 评论(0) 推荐(0) 编辑
摘要:把配置文件config.php中的 fastadmin => login_captcha 改为false 阅读全文
posted @ 2020-06-06 10:03 王的孤傲 阅读(2570) 评论(0) 推荐(0) 编辑