当前位置: 首页 > wzjs >正文

洛阳网站排名各大网站网址

洛阳网站排名,各大网站网址,软文广告是什么意思,长沙装修公司招聘深度解析FastAdmin中的表格列表的功能-CSDN博客文章浏览阅读25次。本文将FastAdmin框架的CRUD功能配置要点进行了系统梳理。官方文档与开发经验相结合,详细介绍了菜单显示、TAB过滤、通用搜索、工具栏按钮、动态统计、快速搜索等17项功能的配置方法。包括字段渲染&a…

深度解析FastAdmin中的表格列表的功能-CSDN博客文章浏览阅读25次。本文将FastAdmin框架的CRUD功能配置要点进行了系统梳理。官方文档与开发经验相结合,详细介绍了菜单显示、TAB过滤、通用搜索、工具栏按钮、动态统计、快速搜索等17项功能的配置方法。包括字段渲染(图片、开关、状态等)、分页控制、关联查询、按钮权限管理等实用技巧,并提供了具体的参数设置示例。特别强调了通过JS配置字段、HTML视图修改以及服务端控制器调整的三方协同操作方式,为开发者提供了一套完整的FastAdmin后台管理功能配置指南。 https://blog.csdn.net/wjx870901/article/details/148759995?spm=1011.2415.3001.5331

实现 FastAdmin 默认开启通用搜索功能的方法

FastAdmin 的通用搜索默认需要点击搜索按钮触发查询,以下方法可以修改为页面加载后自动触发搜索:

找到对应模块的前台对应的js文件如:

public\assets\js\backend\test.js

在table.bootstrapTable配置里面添加

searchFormVisible: true, //是否始终显示搜索表单

默认配置文件在public\assets\js\require-table.js 里面,里面的设置为flase

 var table = $("#table");// 初始化表格table.bootstrapTable({url: $.fn.bootstrapTable.defaults.extend.index_url,pk: 'id',sortName: 'weigh',searchFormVisible: true, //是否始终显示搜索表单fixedColumns: true,fixedRightNumber: 1,columns: [[{checkbox: true},{field: 'id', title: __('Id')},{field: 'user_id', title: __('User_id')},{field: 'admin_id', title: __('Admin_id')},{field: 'category_id', title: __('Category_id')},{field: 'category_ids', title: __('Category_ids'), operate: 'LIKE'},{field: 'tags', title: __('Tags'), operate: 'LIKE', formatter: Table.api.formatter.flag},{field: 'week', title: __('Week'), searchList: {"monday":__('Week monday'),"tuesday":__('Week tuesday'),"wednesday":__('Week wednesday')}, formatter: Table.api.formatter.normal},{field: 'flag', title: __('Flag'), searchList: {"hot":__('Flag hot'),"index":__('Flag index'),"recommend":__('Flag recommend')}, operate:'FIND_IN_SET', formatter: Table.api.formatter.label},{field: 'genderdata', title: __('Genderdata'), searchList: {"male":__('Genderdata male'),"female":__('Genderdata female')}, formatter: Table.api.formatter.normal},{field: 'hobbydata', title: __('Hobbydata'), searchList: {"music":__('Hobbydata music'),"reading":__('Hobbydata reading'),"swimming":__('Hobbydata swimming')}, operate:'FIND_IN_SET', formatter: Table.api.formatter.label},{field: 'title', title: __('Title'), operate: 'LIKE'},{field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},{field: 'images', title: __('Images'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},{field: 'attachfile', title: __('Attachfile'), operate: false, formatter: Table.api.formatter.file},{field: 'keywords', title: __('Keywords'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},{field: 'description', title: __('Description'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},{field: 'city', title: __('City'), operate: 'LIKE'},{field: 'price', title: __('Price'), operate:'BETWEEN'},{field: 'views', title: __('Views')},{field: 'workrange', title: __('Workrange'), operate: 'LIKE'},{field: 'startdate', title: __('Startdate'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},{field: 'activitytime', title: __('Activitytime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},{field: 'year', title: __('Year')},{field: 'times', title: __('Times')},{field: 'refreshtime', title: __('Refreshtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},{field: 'weigh', title: __('Weigh'), operate: false},{field: 'switch', title: __('Switch'), searchList: {"1":__('Yes'),"0":__('No')}, table: table, formatter: Table.api.formatter.toggle},{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1'),"2":__('Status 2')}, formatter: Table.api.formatter.status},{field: 'state', title: __('State'), searchList: {"0":__('State 0'),"1":__('State 1'),"2":__('State 2')}, formatter: Table.api.formatter.normal},{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}]]});

配置后就每次会自动打开通用搜索

注意事项

  • 修改前建议备份原始文件
  • 清除浏览器缓存后测试效果
  • 某些特殊列表可能需要额外处理搜索条件
  • 自动搜索可能会增加服务器负载

以上方法可以实现 FastAdmin 列表页加载后自动执行搜索操作,无需手动点击搜索按钮。


文章转载自:

http://eYALxop2.ntqqm.cn
http://P5TXrtP7.ntqqm.cn
http://bMKaAlOp.ntqqm.cn
http://GZf5AO8v.ntqqm.cn
http://TROSv9to.ntqqm.cn
http://vltQCXzM.ntqqm.cn
http://2uqrjj7H.ntqqm.cn
http://FDZrF6X5.ntqqm.cn
http://SktyiQFM.ntqqm.cn
http://NZ1zon36.ntqqm.cn
http://GlDDmWUz.ntqqm.cn
http://eLHS558o.ntqqm.cn
http://MrFhZeQ0.ntqqm.cn
http://7OCUeI7K.ntqqm.cn
http://gCRnGPkA.ntqqm.cn
http://MR0wgVgD.ntqqm.cn
http://Nb5gJ7Er.ntqqm.cn
http://TFmnpB3K.ntqqm.cn
http://VoqmliHP.ntqqm.cn
http://zyrByS3L.ntqqm.cn
http://J62RXceu.ntqqm.cn
http://EMVg20oC.ntqqm.cn
http://wEU9b1SW.ntqqm.cn
http://fy11gzLS.ntqqm.cn
http://MFuxEPuM.ntqqm.cn
http://L4VtTTx6.ntqqm.cn
http://uQOxnfEQ.ntqqm.cn
http://qJsdQdd3.ntqqm.cn
http://BfKg9Vtq.ntqqm.cn
http://gn5LqdaQ.ntqqm.cn
http://www.dtcms.com/wzjs/681974.html

相关文章:

  • 上海做网站培训班成品短视频app的推荐功能
  • 陕西企业电脑网站制作建网站卖东西
  • 北京网站建设公司 蓝纤科技无备案网站可以做百度推广
  • 可以做ppt的网站有哪些wordpress hook
  • 网站开发后端书籍免费h5响应式网站搭建
  • 网站建设比较好的多少钱wordpress appcan
  • 有没有做维修的网站wordpress自动分享插件下载地址
  • 外贸业务员做网站手机链接ppt在哪个网站做
  • 在哪可以建一个网站有那种做订单的网站吗
  • 蚂蜂窝网站源码上海排名十大装潢公司
  • 科技公司 网站设计经典案例网页数据可视化设计案例
  • 网站开发实施计划与安排做网站都有备案吗
  • 保定市建设局安监网站淘宝客怎么做网站管理
  • 上海浦东网站建设中山网站建设文化服务
  • 中国建设银行网上银行官方网站海阳网站建设
  • 大连城市建设集团网站工作室 网站经营性备案
  • 网站开发中所需要的绘图工具南京触屏网站开发
  • dell公司网站建设的特点网络平台建设管理制度
  • 分类信息网站如何建设网络推广话术开场白
  • 域名网站这么做为女人网上量体做衣网站
  • 优秀企业网站建设价格wordpress文章批量替换
  • 求网站建设详细过程计划网站搭建
  • 贵阳网站建设方案报价html网站首页设计
  • 如何自己创建购物网站网站后台功能
  • 网站后台登录系统是怎么做的盗版小说网站建设
  • 非常好的网站建设公司网推app有哪些
  • 常州市经开区建设局网站长沙寸金网络营销网址
  • 网站定制网页设计wordpress多个内容模块
  • 编程网站项目做哪个比较好厦门app网站设计
  • 2018春节放假安排 网站建设网站排名优化快速