当想为data-source传递条件时需要用到 data-params, 并且改 data-source="package/selectpage"。 data-params 支持 function 类型,如果需要动态传参(例如联动查询),则可以在 JS 中(一般路径是 public/assets/js/backend/xxx )将 data-params 添加一个 function 处理即可,在表单初始化 Form.api.bindevent 之前使用...
关联下拉列表 selectpage , 默认关联字段为name,可以使用data-field='title',或者其他字段都可以。
<input id="c-coupon_id"data-rule="required"data-source="coupon/index"data-field="title"class="form-control selectpage"name="row[coupon_id]"type="text"value=""> 未经允许不得转载:肥猫博客»fastadmin 后台view data-source关联报500错误问题...
条件查询二级联动文章分类开源 <input id="c-name" data-rule="required" data-source="user/user/group" data-params='{"custom[group_id]":"1"}' data-field="nickname" class="form-control selectpage" name="row[name]" type="text" value=""> === data-params='{"custom[group_id]":"1"}'...
当想为data-source传递条件时需要⽤到 data-params, 并且改 data-source="package/selectpage"。data-params ⽀持 function 类型,如果需要动态传参(例如联动查询),则可以在 JS 中(⼀般路径是 public/assets/js/backend/xxx )将 data-params 添加⼀个 function 处理即可,在表单初始化 Form.api....
return Config.channel_source_map[v]; }, searchList: Config.channel_source_map }, 1. 2. 3. 4. 5. 重要的几个属性设置 addClass:"selectpicker", operate:"IN", data:"multiple", 1. 2. 3.
Skip to content Navigation MenuProduct Solutions Resources Open Source Enterprise Pricing Search or jump to... Sign in Sign up emailwyc / fastadmin Public Notifications Fork 0 Star 0 Code Issues Pull requests Actions Projects Security Insights ...
Source Server : localhost_3306 Source Server Version : 50553 Source Host : localhost:3306 Source Database : fastadmin Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-09-21 10:57:56 */ SET FOREIGN_KEY_CHECKS=0; -- --- -- Table...
Transaction事务注解和DynamicDataSource动态数据源切换问题解决 (1) springboot打印日志 (1) https://my.oschina.net/u/3768341/blog/2054605 (1) 批处理发布 (1) springboot study (1) 分布式事务处理 (1) 杀进程 (1) maven打包3种方法 (1) 微信开发jar包 (1) 微信公众号测试打包 (1) ...
protected function getJsColumn($field, $datatype = '', $extend = '') { $lang = ucfirst($field); $lang = mb_ucfirst($field); $formatter = ''; foreach ($this->fieldFormatterSuffix as $k => $v) {2 changes: 1 addition & 1 deletion 2 application/admin/command/Install/fastadmin.sq...