|
@@ -35,6 +35,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'num_max', title: __('Num_max')},
|
|
|
{field: 'coach_ids', title: __('Coach_ids'), operate: 'LIKE'},
|
|
|
{field: 'lesson_id', title: __('Lesson_id')},
|
|
|
+ {field: 'lesson.name', title: __('Lesson.name'), operate: 'LIKE'},
|
|
|
+ {field: 'lesson.name_en', title: __('Lesson.name_en'), operate: 'LIKE'},
|
|
|
// {field: 'address', title: __('Address'), operate: 'LIKE'},
|
|
|
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"20":__('Status 20'),"30":__('Status 30')}, formatter: Table.api.formatter.status},
|
|
|
// {field: 'remark', title: __('Remark'), operate: 'LIKE'},
|
|
@@ -43,9 +45,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'cancel_reason', title: __('Cancel_reason'), operate: 'LIKE'},
|
|
|
{field: 'cancel_time', title: __('Cancel_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
// {field: 'coach.nickname', title: __('Coach.nickname'), operate: 'LIKE'},
|
|
|
- {field: 'lesson_id', title: __('Lesson_id')},
|
|
|
- {field: 'lesson.name', title: __('Lesson.name'), operate: 'LIKE'},
|
|
|
- {field: 'lesson.name_en', title: __('Lesson.name_en'), operate: 'LIKE'},
|
|
|
+
|
|
|
{field: 'operate', title: __('Operate'), table: table,
|
|
|
buttons:[
|
|
|
{
|
|
@@ -75,6 +75,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ cancel: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|