|
|
|
@ -24,15 +24,63 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
|
|
|
|
|
method : 'post',
|
|
|
|
|
url : Common.ctxPath + '/jlw/teacherOpenCourseStudentSigninSetting/list.json' // 数据接口
|
|
|
|
|
,page : Lib.tablePage // 开启分页
|
|
|
|
|
,toolbar: '#toolbar_teacherOpenCourseStudentSigninSetting' //自定义头部左侧工具栏
|
|
|
|
|
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏
|
|
|
|
|
/*,toolbar: '#toolbar_teacherOpenCourseStudentSigninSetting' //自定义头部左侧工具栏
|
|
|
|
|
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
|
|
|
|
|
,limit : 10,
|
|
|
|
|
cols : [ [ // 表头
|
|
|
|
|
{
|
|
|
|
|
type : 'checkbox',
|
|
|
|
|
type : 'numbers',
|
|
|
|
|
title : '序号',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingStartTime',
|
|
|
|
|
title : '签到日期',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['teacherOpenCourseStudentSigninSettingStartTime'])?false:sx_['teacherOpenCourseStudentSigninSettingStartTime'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingTypeText', //数据字典类型为 student_signin_type
|
|
|
|
|
title : '签到方式',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['teacherOpenCourseStudentSigninSettingTypeText'])?false:sx_['teacherOpenCourseStudentSigninSettingTypeText'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingSessionTime',
|
|
|
|
|
title : '签到人数',
|
|
|
|
|
align:"center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
return '33'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingSessionTime',
|
|
|
|
|
title : '缺勤',
|
|
|
|
|
align:"center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
return '1'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingSessionTime',
|
|
|
|
|
title : '总人数',
|
|
|
|
|
align:"center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
return '34'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingSessionTime',
|
|
|
|
|
title : '到课率',
|
|
|
|
|
align:"center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
var html = '签到人数/总人数*100%';
|
|
|
|
|
return '90%'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/*{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingId',
|
|
|
|
|
title : 'ID',
|
|
|
|
|
align:"center",
|
|
|
|
@ -61,13 +109,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['schoolClassIdsText'])?false:sx_['schoolClassIdsText'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingTypeText', //数据字典类型为 student_signin_type
|
|
|
|
|
title : '签到方式 (数据字典 student_signin_type)',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['teacherOpenCourseStudentSigninSettingTypeText'])?false:sx_['teacherOpenCourseStudentSigninSettingTypeText'],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field : 'teacherOpenCourseStudentSigninSettingValue',
|
|
|
|
|
title : '设置的值:数据例子:IP: x.x.x.x-x.x.x.x,验证码:xxxx,手动签到:无需设置',
|
|
|
|
@ -109,12 +151,12 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['teacherOpenCourseStudentSigninSettingStartStatusText'])?false:sx_['teacherOpenCourseStudentSigninSettingStartStatusText'],
|
|
|
|
|
},
|
|
|
|
|
},*/
|
|
|
|
|
{
|
|
|
|
|
field : 'operation_',title : '操作',align:"center", width : 220, templet: function (d) {
|
|
|
|
|
field : 'operation_',title : '操作',align:"center", width : 180, templet: function (d) {
|
|
|
|
|
var htm = '';
|
|
|
|
|
htm += '<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="startSignin">开始签到</button>';
|
|
|
|
|
htm += '<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="endSignin">结束签到</button>';
|
|
|
|
|
/*htm += '<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="startSignin">开始签到</button>';
|
|
|
|
|
htm += '<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="endSignin">结束签到</button>';*/
|
|
|
|
|
htm += '<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">详情</button>';
|
|
|
|
|
return htm;
|
|
|
|
|
}
|
|
|
|
@ -149,7 +191,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
|
|
|
|
|
if(data==null){
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
var url = "/jlw/teacherOpenCourseStudentSigninSetting/add.do?teacherOpenCourseStudentSigninSettingId="+data.teacherOpenCourseStudentSigninSettingId;
|
|
|
|
|
var url = "/jlw/teacherOpenCourseStudentSigninSetting/add.do?teacherOpenCourseStudentSigninSettingId=";
|
|
|
|
|
Common.openDlg(url,"学生签到设置管理>"+data.teacherOpenCourseStudentSigninSettingId+">编辑");
|
|
|
|
|
},
|
|
|
|
|
del: function () {
|
|
|
|
@ -167,6 +209,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), teacherOpenCourseStudentSigninSettingTable, 1);
|
|
|
|
|
view.initToolBar()
|
|
|
|
|
},
|
|
|
|
|
addButton_cancel:function () {
|
|
|
|
|
parent.Lib.tableRefresh();
|
|
|
|
|
Lib.closeFrame();
|
|
|
|
|
},
|
|
|
|
|
export:function () {
|
|
|
|
|
/*var formPara = form.serializeJson();
|
|
|
|
|
Common.downLoad("/jlw/teacherOpenCourseMergeScheduleSession/excel/export.json", formPara, 'POST')
|
|
|
|
|
*/
|
|
|
|
|
layer.confirm('是否确定导出签到汇总表吗?', function (index) {
|
|
|
|
|
window.open(Common.ctxPath + "");
|
|
|
|
|
layer.close(index);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//触发事件
|
|
|
|
|
$('.ext-toolbar').on('click', function() {
|
|
|
|
@ -177,8 +232,8 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
|
|
|
|
|
}, initTableTool: table.on('tool(teacherOpenCourseStudentSigninSettingTable)', function (obj) {
|
|
|
|
|
var data = obj.data;
|
|
|
|
|
if (obj.event === 'edit') {
|
|
|
|
|
var url = "/jlw/teacherOpenCourseStudentSigninSetting/add.do?teacherOpenCourseStudentSigninSettingId="+data.teacherOpenCourseStudentSigninSettingId;
|
|
|
|
|
Common.openDlg(url,"学生签到设置管理>"+data.teacherOpenCourseStudentSigninSettingId+">编辑");
|
|
|
|
|
var url = "/jlw/teacherOpenCourseStudentSigninLog/index.do";
|
|
|
|
|
Common.openDlg(url,"/详情");
|
|
|
|
|
}else if(obj.event === "del"){
|
|
|
|
|
layer.confirm('是否确定删除该信息?', function (index) {
|
|
|
|
|
var ret = Common.postAjax("/jlw/teacherOpenCourseStudentSigninSetting/delete.json",{ids:data.teacherOpenCourseStudentSigninSettingId});
|
|
|
|
|