You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.4 KiB
1 lines
2.4 KiB
"use strict";define(["jquery","bootstrap","backend","table","form"],function(e,t,a,i,r){var n={index:function(){i.api.init({extend:{index_url:"wanlshop/feedback/index"+location.search,add_url:"",edit_url:"",del_url:"",multi_url:"wanlshop/feedback/multi",table:"wanlshop_feedback"}});var t=e("#table");t.bootstrapTable({url:e.fn.bootstrapTable.defaults.extend.index_url,pk:"id",sortName:"id",columns:[[{checkbox:!0},{field:"id",title:__("Id")},{field:"user_id",title:__("User_id")},{field:"images",title:__("Images"),events:i.api.events.image,formatter:i.api.formatter.images},{field:"contact",title:__("Contact")},{field:"score",title:__("Score")},{field:"createtime",title:__("Createtime"),operate:"RANGE",addclass:"datetimerange",formatter:i.api.formatter.datetime},{field:"updatetime",title:__("Updatetime"),operate:"RANGE",addclass:"datetimerange",formatter:i.api.formatter.datetime},{field:"status",title:__("Status"),searchList:{normal:__("Status normal"),hidden:__("Status hidden")},formatter:i.api.formatter.status},{field:"operate",title:__("Operate"),table:t,events:i.api.events.operate,buttons:[{name:"detail",title:__("处理反馈"),classname:"btn btn-xs btn-success btn-dialog",icon:"fa fa-pencil-square-o",text:"处理",url:"wanlshop/feedback/detail",visible:function(e){if("normal"==e.status)return!0}},{name:"detail",title:__("反馈详情"),classname:"btn btn-xs btn-info btn-dialog",icon:"fa fa-eye",text:"查看",url:"wanlshop/feedback/detail",visible:function(e){if("hidden"==e.status)return!0}}],formatter:i.api.formatter.operate}]]}),i.api.bindevent(t)},recyclebin:function(){i.api.init({extend:{dragsort_url:""}});var t=e("#table");t.bootstrapTable({url:"wanlshop/feedback/recyclebin"+location.search,pk:"id",sortName:"id",columns:[[{checkbox:!0},{field:"id",title:__("Id")},{field:"deletetime",title:__("Deletetime"),operate:"RANGE",addclass:"datetimerange",formatter:i.api.formatter.datetime},{field:"operate",width:"130px",title:__("Operate"),table:t,events:i.api.events.operate,buttons:[{name:"Restore",text:__("Restore"),classname:"btn btn-xs btn-info btn-ajax btn-restoreit",icon:"fa fa-rotate-left",url:"wanlshop/feedback/restore",refresh:!0},{name:"Destroy",text:__("Destroy"),classname:"btn btn-xs btn-danger btn-ajax btn-destroyit",icon:"fa fa-times",url:"wanlshop/feedback/destroy",refresh:!0}],formatter:i.api.formatter.operate}]]}),i.api.bindevent(t)},detail:function(){n.api.bindevent()},api:{bindevent:function(){r.api.bindevent(e("form[role=form]"))}}};return n}); |