PHP分享
您现在的位置是:博客主页 > Web教程 > PHP分享

fastadmin 表格列表中按钮点击,报错clickToSelect

By 钱伯斯 on PHP分享 Time 2020-06-06 from:www.dianthink.com 578人已围观
简介:    fastadmin 表格列表中按钮点击,报错clickToSelect VM6244 bootstrap-table.min.js:8 Uncaught TypeError: Cannot read property 'clickToSelect' of undefined

fastadmin 表格列表中按钮点击,报错clickToSelect

VM6244 bootstrap-table.min.js:8 Uncaught TypeError: Cannot read property 'clickToSelect' of undefined

fastadmin编辑,删除,扩展按钮点击报错报错

VM6244 bootstrap-table.min.js:8 Uncaught TypeError: Cannot read property 'clickToSelect' of undefined

{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}

提醒:columns中field后字段名不能重复出现。



// 初始化表格
table.bootstrapTable({
	url: $.fn.bootstrapTable.defaults.extend.index_url,
	pk: 'id',
	sortName: 'weigh',
	columns: [
		[
			{checkbox: true},
			{field: 'id', sortable: true, title: __('Id')},
			{field: 'type', title: __('Type'), formatter: Table.api.formatter.search, searchList: Config.typeList},
			{field: 'name', title: __('Name'), formatter: Table.api.formatter.search},
			{field: 'title', title: __('Title')},
			{field: 'width_height', title: __('图宽高')},
			{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
			{field: 'url', title: __('Url'), formatter: Table.api.formatter.url},
			{field: 'createtime', title: __('Createtime'), sortable: true, operate: 'RANGE', addclass: 'datetimerange', formatter: Table.api.formatter.datetime},
			{field: 'updatetime', title: __('Updatetime'), sortable: true, visible: false, operate: 'RANGE', addclass: 'datetimerange', formatter: Table.api.formatter.datetime},
			{field: 'status', title: __('Status'), formatter: Table.api.formatter.status},
			{field: 'weigh', title: __('Weigh'), visible: false},
			{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
		]
	]
});



相关文章
文章评论

( 0 )