|
@@ -31,6 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{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: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2')}, formatter: Table.api.formatter.normal},
|
|
|
// {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'},
|
|
@@ -48,6 +49,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{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: 'gift_type', title: __('Gift_type'), searchList: {"1":__('Gift_type 1'),"2":__('Gift_type 2')}, formatter: Table.api.formatter.normal},
|
|
|
{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},
|
|
@@ -86,3 +88,20 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
};
|
|
|
return Controller;
|
|
|
});
|
|
|
+$("#c-lesson_ids").data("params", function (obj) {
|
|
|
+ return {
|
|
|
+ custom: {type: $("#c-type").val()}
|
|
|
+ };
|
|
|
+});
|
|
|
+$(document).on("change","#c-type",function(){
|
|
|
+ $("#c-lesson_ids").selectPageClear();
|
|
|
+});
|
|
|
+
|
|
|
+$("#c-gift_lesson_id").data("params", function (obj) {
|
|
|
+ return {
|
|
|
+ custom: {type: $("#c-gift_type").val()}
|
|
|
+ };
|
|
|
+});
|
|
|
+$(document).on("change","#c-gift_type",function(){
|
|
|
+ $("#c-gift_lesson_id").selectPageClear();
|
|
|
+})
|