12345678910111213141516171819202122232425262728293031323334353637383940 |
- define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
- var Controller = {
- index: function () {
- Table.api.init({
- extend: {
- index_url: 'auth/usercampaignconsume/index/ids/' + Config.id
- },
- searchFormVisible: false,
- search: false,
- commonSearch: false,
- });
- var table = $("#table");
- // 初始化表格
- table.bootstrapTable({
- url: $.fn.bootstrapTable.defaults.extend.index_url,
- pk: 'id',
- sortName: 'id',
- columns: [
- [
- {checkbox: true, visible: false},
- {field: 'createdate', title: __('时间'), operate: false},
- {field: 'campaign_name', title: __('消费活动名称'), operate: false},
- {field: 'match_name', title: __('活动场次名称'), operate: false},
- {field: 'total_kandian', title: __('消费书币')}
- ]
- ]
- });
- Table.api.bindevent(table);
- },
- api: {
- bindevent: function () {
- Form.api.bindevent($("form[role=form]"));
- }
- }
- };
- return Controller;
- });
|