|
@@ -33,11 +33,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'gender', title: __('Gender'), searchList: {"1":__('Gender 1'),"0":__('Gender 0')}, formatter: Table.api.formatter.normal},
|
|
|
{field: 'age', title: __('Age')},
|
|
|
{field: 'school_id', title: __('School_id')},
|
|
|
- {field: 'class_id', title: __('Class_id')},
|
|
|
+ {field: 'classes_id', title: __('Classes_id')},
|
|
|
{field: 'idcard', title: __('Idcard'), operate: 'LIKE'},
|
|
|
{field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
|
|
|
{field: 'is_default', title: __('Is_default'), searchList: {"1":__('Is_default 1'),"0":__('Is_default 0')}, formatter: Table.api.formatter.normal},
|
|
|
- {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
|
{field: 'school.schoolname', title: __('School.schoolname'), operate: 'LIKE'},
|
|
|
{field: 'classes.classname', title: __('Classes.classname'), operate: 'LIKE'},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
@@ -62,3 +61,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
};
|
|
|
return Controller;
|
|
|
});
|
|
|
+$("#c-classes_id").data("params", function (obj) {
|
|
|
+ return {
|
|
|
+ custom: {school_id: $("#c-school_id").val()}
|
|
|
+ };
|
|
|
+});
|
|
|
+$(document).on("change","#c-school_id",function(){
|
|
|
+ $("#c-classes_id").selectPageClear();
|
|
|
+})
|