|
@@ -34,6 +34,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'num_min', title: __('Num_min')},
|
|
|
{field: 'num_max', title: __('Num_max')},
|
|
|
{field: 'coach_ids', title: __('Coach_ids'), operate: 'LIKE'},
|
|
|
+ {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'},
|
|
@@ -46,7 +48,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'cancel_time', title: __('Cancel_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'is_show', title: __('Is_show'), searchList: {"1":__('Is_show 1'),"0":__('Is_show 0')}, formatter: Table.api.formatter.normal},
|
|
|
|
|
|
-// {field: 'coach.nickname', title: __('Coach.nickname'), operate: 'LIKE'},
|
|
|
|
|
|
{field: 'operate', title: __('Operate'), table: table,
|
|
|
buttons:[
|
|
@@ -70,6 +71,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
|
|
|
// 为表格绑定事件
|
|
|
Table.api.bindevent(table);
|
|
|
+
|
|
|
+ // 复制本周的课程表
|
|
|
+ $(document).on("click", ".btn-copyweek", function () {
|
|
|
+ Fast.api.ajax('lessonslot/copyweek','复制本周的课程表');
|
|
|
+ });
|
|
|
},
|
|
|
add: function () {
|
|
|
Controller.api.bindevent();
|
|
@@ -80,6 +86,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
cancel: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ copyweek: function () {
|
|
|
+ Form.api.bindevent($("form[role=form]"));
|
|
|
+ },
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|