字典值

beetlsql3-dev
Mlxa0324 2 years ago
parent 49816c6074
commit 697318869f

@ -42,7 +42,7 @@ public class TeacherOpenCourseScheduleSession extends BaseEntity{
private Date teacherOpenCourseScheduleSessionAddTime ;
//状态1正常 2删除
@Dict(type="global_status")
@Dict(type="global_open_status")
private Integer teacherOpenCourseScheduleSessionStatus ;

@ -70,9 +70,9 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
align: "center",
hideField: false,
hide: $.isEmpty(sx_['teacherOpenCourseScheduleSessionWeekNum']) ? false : sx_['teacherOpenCourseScheduleSessionWeekNum'],
templet:function (d) {
return d.teacherOpenCourseScheduleSessionWeekNum + "周"
}
// templet:function (d) {
// return d.teacherOpenCourseScheduleSessionWeekNum + "周"
// }
},
{
field: 'sessionClassListText',
@ -97,8 +97,7 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
hide: $.isEmpty(sx_['teacherOpenCourseScheduleSessionStatusText']) ? false : sx_['teacherOpenCourseScheduleSessionStatusText'],
templet:function (d) {
var css = d.teacherOpenCourseScheduleSessionStatus == 2 ? "textType2" : 'textType';
var text = d.teacherOpenCourseScheduleSessionStatus == 2 ? '禁用':'已启用'
return '<span class="' + css + '">' +text + '</span>'
return '<span class="' + css + '">' +d.teacherOpenCourseScheduleSessionStatusText + '</span>'
}
},
{

Loading…
Cancel
Save