@ -29,7 +29,8 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
, limit : 10 ,
cols : [ [ // 表头
{
type : 'checkbox' ,
type : 'numbers' ,
title : '序号' ,
} ,
/ * {
@ -47,7 +48,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'bussinessId' ] ) ? false : sx _ [ 'bussinessId' ] ,
} , * /
} ,
{
field : 'bussinessType' ,
title : '业务类型' ,
@ -55,20 +56,6 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'bussinessType' ] ) ? false : sx _ [ 'bussinessType' ] ,
} ,
{
field : 'generalQuestionSettingSchoolClassIdsText' ,
title : '班级' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingSchoolClassIdsText' ] ) ? false : sx _ [ 'generalQuestionSettingSchoolClassIdsText' ] ,
} ,
{
field : 'generalQuestionSettingDoCount' ,
title : '作答次数' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingDoCount' ] ) ? false : sx _ [ 'generalQuestionSettingDoCount' ] ,
} ,
{
field : 'generalQuestionSettingQuestionNoOrder' ,
title : '题目乱序(同一大题内)' ,
@ -98,82 +85,79 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingEndShowTrueFalse' ] ) ? false : sx _ [ 'generalQuestionSettingEndShowTrueFalse' ] ,
} ,
{
field : 'generalQuestionSetting Name',
title : ' 题目-名称 ',
field : 'generalQuestionSetting File',
title : ' 附件,老师上传附件(单文件) ',
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting Nam e'] ) ? false : sx _ [ 'generalQuestionSetting Nam e'] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting Fil e'] ) ? false : sx _ [ 'generalQuestionSetting Fil e'] ,
} ,
{
field : 'generalQuestionS tar tTim e',
title : ' 题目开始时间 ',
field : 'generalQuestionS ettingS tatus Text ', //数据字典类型为 global_status
title : ' 状态 ',
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionS tar tTim e'] ) ? false : sx _ [ 'generalQuestionS tar tTim e'] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionS ettingS tatus Text '] ) ? false : sx _ [ 'generalQuestionS ettingS tatus Text '] ,
} ,
* /
{
field : 'generalQuestionEndTime' ,
title : '题目结束时间' ,
field : 'generalQuestionSettingName' ,
width : 280 ,
title : '题目-名称' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestion EndTi me'] ) ? false : sx _ [ 'generalQuestion EndTi me'] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestion SettingNa me'] ) ? false : sx _ [ 'generalQuestion SettingNa me'] ,
} ,
{
field : 'generalQuestionSetting Type Text',
title : ' 类型 ',
field : 'generalQuestionSetting SchoolClassIds Text',
title : ' 班级 ',
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting Type Text'] ) ? false : sx _ [ 'generalQuestionSetting Type Text'] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting SchoolClassIds Text'] ) ? false : sx _ [ 'generalQuestionSetting SchoolClassIds Text'] ,
} ,
{
field : 'generalQuestionSetting Require ',
title : ' 题目要求 ',
field : 'generalQuestionSetting DoCount ',
title : ' 作答次数 ',
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting Require '] ) ? false : sx _ [ 'generalQuestionSetting Require '] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting DoCount '] ) ? false : sx _ [ 'generalQuestionSetting DoCount '] ,
} ,
{
field : 'generalQuestionSettingFile' ,
title : '附件,老师上传附件(单文件)' ,
field : 'generalQuestionStartTime' ,
width : 320 ,
title : '题目时间' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingFile' ] ) ? false : sx _ [ 'generalQuestionSettingFile' ] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionStartTime' ] ) ? false : sx _ [ 'generalQuestionStartTime' ] ,
templet : function ( d ) {
var htm = d . generalQuestionStartTime + ' ~ ' + d . generalQuestionEndTime ;
return htm
}
} ,
{
field : 'generalQuestionSettingPushStatusText' , //数据字典类型为 global_push_status
title : '发布状态' ,
field : 'generalQuestionSetting TypeText',
title : ' 类型 ',
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting PushStatus Text'] ) ? false : sx _ [ 'generalQuestionSetting PushStatus Text'] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting Type Text'] ) ? false : sx _ [ 'generalQuestionSetting Type Text'] ,
} ,
{
field : 'generalQuestionSetting StatusText', //数据字典类型为 global_status
title : ' 状态 ',
field : 'generalQuestionSetting Require',
title : ' 题目要求 ',
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting StatusText '] ) ? false : sx _ [ 'generalQuestionSetting StatusText '] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting Require '] ) ? false : sx _ [ 'generalQuestionSetting Require '] ,
} ,
{
field : 'generalQuestionSettingAddTime' ,
title : '创建时间' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingAddTime' ] ) ? false : sx _ [ 'generalQuestionSettingAddTime' ] ,
} ,
/ * {
field : 'orgId' ,
title : '组织ID' ,
field : 'generalQuestionSettingPushStatusText' , //数据字典类型为 global_push_status
title : '发布状态' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ ' orgId'] ) ? false : sx _ [ 'orgId '] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingPushStatusText' ] ) ? false : sx _ [ 'generalQuestionSettingPushStatusText' ] ,
} ,
{
field : 'userId' ,
title : '用户ID' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'userId' ] ) ? false : sx _ [ 'userId' ] ,
} , * /
{
field : 'operation_' , title : '操作' , align : "center" , fixed : "right" , width : 120 , templet : function ( d ) {
var htm = '<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">编辑</button>' ;