|
@@ -27,30 +27,30 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
columns: [
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
- {field: 'id', title: __('Id')},
|
|
|
+ {field: 'id', title: __('Id'),operate:false},
|
|
|
{field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
|
|
|
{field: 'name', title: __('Name'), operate: 'LIKE'},
|
|
|
{field: 'name_en', title: __('Name_en'), operate: 'LIKE'},
|
|
|
// {field: 'lesson_ids', title: __('Lesson_ids'), operate: 'LIKE'},
|
|
|
// {field: 'lessona.name', title: __('Lessona.name'), operate: 'LIKE'},
|
|
|
// {field: 'lessona.name_en', title: __('Lessona.name_en'), operate: 'LIKE'},
|
|
|
- {field: 'sessions', title: __('Sessions')},
|
|
|
- {field: 'sessions_first', title: __('Sessions_first')},
|
|
|
- {field: 'validity', title: __('Validity'), operate: 'LIKE'},
|
|
|
- {field: 'validity_en', title: __('Validity_en'), operate: 'LIKE'},
|
|
|
- {field: 'days', title: __('Days')},
|
|
|
- {field: 'price', title: __('Price'), operate:'BETWEEN'},
|
|
|
- {field: 'buytimes', title: __('Buytimes'), searchList: {"0":__('Buytimes 0'),"1":__('Buytimes 1')}, formatter: Table.api.formatter.normal},
|
|
|
- {field: 'newuser', title: __('Newuser'), searchList: {"0":__('Newuser 0'),"1":__('Newuser 1')}, formatter: Table.api.formatter.normal},
|
|
|
- {field: 'olduser', title: __('Olduser'), searchList: {"0":__('Olduser 0'),"1":__('Olduser 1')}, formatter: Table.api.formatter.normal},
|
|
|
- {field: 'activeremark', title: __('Activeremark'), operate: 'LIKE'},
|
|
|
- {field: 'activeremark_en', title: __('Activeremark_en'), operate: 'LIKE'},
|
|
|
- {field: 'is_show', title: __('Is_show'), searchList: {"1":__('Is_show 1'),"0":__('Is_show 0')}, formatter: Table.api.formatter.normal},
|
|
|
+ {field: 'sessions', title: __('Sessions'),operate:false},
|
|
|
+ {field: 'sessions_first', title: __('Sessions_first'),operate:false},
|
|
|
+ {field: 'validity', title: __('Validity'),operate:false},
|
|
|
+ {field: 'validity_en', title: __('Validity_en'),operate:false},
|
|
|
+ {field: 'days', title: __('Days'),operate:false},
|
|
|
+ {field: 'price', title: __('Price'),operate:false},
|
|
|
+ {field: 'buytimes', title: __('Buytimes'), searchList: {"0":__('Buytimes 0'),"1":__('Buytimes 1')}, formatter: Table.api.formatter.normal,operate:false},
|
|
|
+ {field: 'newuser', title: __('Newuser'), searchList: {"0":__('Newuser 0'),"1":__('Newuser 1')}, formatter: Table.api.formatter.normal,operate:false},
|
|
|
+ {field: 'olduser', title: __('Olduser'), searchList: {"0":__('Olduser 0'),"1":__('Olduser 1')}, formatter: Table.api.formatter.normal,operate:false},
|
|
|
+ {field: 'activeremark', title: __('Activeremark'),operate:false},
|
|
|
+ {field: 'activeremark_en', title: __('Activeremark_en'),operate:false},
|
|
|
+ {field: 'is_show', title: __('Is_show'), searchList: {"1":__('Is_show 1'),"0":__('Is_show 0')}, formatter: Table.api.formatter.normal,operate:false},
|
|
|
{field: 'weigh', title: __('Weigh'), operate: false},
|
|
|
// {field: 'gift_lesson_id', title: __('Gift_lesson_id')},
|
|
|
- {field: 'lessonb.name', title: __('Lessonb.name'), operate: 'LIKE'},
|
|
|
- {field: 'lessonb.name_en', title: __('Lessonb.name_en'), operate: 'LIKE'},
|
|
|
- {field: 'gift_sessions', title: __('Gift_sessions')},
|
|
|
+ {field: 'lessonb.name', title: __('Lessonb.name'),operate:false},
|
|
|
+ {field: 'lessonb.name_en', title: __('Lessonb.name_en'),operate:false},
|
|
|
+ {field: 'gift_sessions', title: __('Gift_sessions'),operate:false},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|