@ -29,7 +29,8 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
, limit : 10 ,
cols : [ [ // 表头
{
type : 'checkbox' ,
type : 'numbers' ,
title : '序号' ,
} ,
/ * {
@ -47,28 +48,14 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'bussinessId' ] ) ? false : sx _ [ 'bussinessId' ] ,
} , * /
{
} ,
{
field : 'bussinessType' ,
title : '业务类型' ,
align : "center" ,
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 : '题目乱序(同一大题内)' ,
@ -97,26 +84,57 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingEndShowTrueFalse' ] ) ? false : sx _ [ 'generalQuestionSettingEndShowTrueFalse' ] ,
} ,
{
field : 'generalQuestionSettingFile' ,
title : '附件,老师上传附件(单文件)' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingFile' ] ) ? false : sx _ [ 'generalQuestionSettingFile' ] ,
} ,
{
field : 'generalQuestionSettingStatusText' , //数据字典类型为 global_status
title : '状态' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingStatusText' ] ) ? false : sx _ [ 'generalQuestionSettingStatusText' ] ,
} ,
* /
{
field : 'generalQuestionSettingName' ,
width : 280 ,
title : '题目-名称' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingName' ] ) ? false : sx _ [ 'generalQuestionSettingName' ] ,
} ,
{
field : 'generalQuestionSettingName' ,
title : '题目-名称' ,
field : 'generalQuestionSetting SchoolClassIdsText',
title : ' 班级 ',
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingName' ] ) ? false : sx _ [ 'generalQuestionSettingName' ] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSetting SchoolClassIdsText '] ) ? false : sx _ [ 'generalQuestionSetting SchoolClassIdsText '] ,
} ,
{
field : 'generalQuestionStartTime' ,
title : '题目开始时间' ,
field : 'generalQuestionS ettingDoCount ',
title : ' 作答次数 ',
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionStartTime' ] ) ? false : sx _ [ 'generalQuestionStartTime' ] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionS ettingDoCount '] ) ? false : sx _ [ 'generalQuestionS ettingDoCount '] ,
} ,
{
field : 'generalQuestionEndTime' ,
title : '题目结束时间' ,
field : 'generalQuestionStartTime' ,
width : 320 ,
title : '题目时间' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionEndTime' ] ) ? false : sx _ [ 'generalQuestionEndTime' ] ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionStartTime' ] ) ? false : sx _ [ 'generalQuestionStartTime' ] ,
templet : function ( d ) {
var htm = d . generalQuestionStartTime + ' ~ ' + d . generalQuestionEndTime ;
return htm
}
} ,
{
field : 'generalQuestionSettingTypeText' ,
@ -132,13 +150,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingRequire' ] ) ? false : sx _ [ 'generalQuestionSettingRequire' ] ,
} ,
{
field : 'generalQuestionSettingFile' ,
title : '附件,老师上传附件(单文件)' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingFile' ] ) ? false : sx _ [ 'generalQuestionSettingFile' ] ,
} ,
{
field : 'generalQuestionSettingPushStatusText' , //数据字典类型为 global_push_status
title : '发布状态' ,
@ -146,34 +158,6 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingPushStatusText' ] ) ? false : sx _ [ 'generalQuestionSettingPushStatusText' ] ,
} ,
{
field : 'generalQuestionSettingStatusText' , //数据字典类型为 global_status
title : '状态' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingStatusText' ] ) ? false : sx _ [ 'generalQuestionSettingStatusText' ] ,
} ,
{
field : 'generalQuestionSettingAddTime' ,
title : '创建时间' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'generalQuestionSettingAddTime' ] ) ? false : sx _ [ 'generalQuestionSettingAddTime' ] ,
} ,
/ * {
field : 'orgId' ,
title : '组织ID' ,
align : "center" ,
hideField : false ,
hide : $ . isEmpty ( sx _ [ 'orgId' ] ) ? false : sx _ [ 'orgId' ] ,
} ,
{
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>' ;