文件存档 互动
parent
c005e4ccd2
commit
eaf9fb651d
@ -0,0 +1,154 @@
|
||||
<!--#layout("/common/layout.html",{"jsBase":"/js/jlw/teacherOpenCourseHandsOn/"}){ -->
|
||||
<!--使用日志页面-->
|
||||
<style>
|
||||
/* 分页确定按钮*/
|
||||
.layui-laypage-btn{
|
||||
color: white!important;
|
||||
}
|
||||
.xxmc{
|
||||
white-space: nowrap;
|
||||
text-overflow:ellipsis;
|
||||
line-height: 37px;font-size: 16px;
|
||||
padding-left: 10px;
|
||||
width: auto !important;
|
||||
min-width: 200px;
|
||||
max-width: 300px;
|
||||
overflow: hidden;
|
||||
height: 37px;
|
||||
}
|
||||
.layui-form-item .layui-input-inline,.layui-form-item .layui-inline {
|
||||
margin-right: 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="layui-inline">
|
||||
<form id="searchForm" class="layui-form" style="background-color: #fdfdfd;padding: 10px 0;margin-bottom: 10px;">
|
||||
<div class="layui-form-item" style="margin-bottom: 0;">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">班级名称:</label>
|
||||
<div class="layui-input-inline">
|
||||
<layui:simpleDictSelect style='layui-input-inline' type="school_class.class_name.class_status=1"
|
||||
id="classId" name="classId"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-btn-group" style="margin-bottom:16px;margin-left: 20px;">
|
||||
<layui:accessButton function="teacher.query" id="searchFormSearch" action="search"><i class="layui-icon"></i>搜索
|
||||
</layui:accessButton>
|
||||
<layui:accessButton function="teacher.add" action="export"><span class="iconfont"></span>导出</layui:accessButton>
|
||||
</div>
|
||||
<div class="layui-inline" style="float: right">
|
||||
<layui:accessButton function="teacherOpenCourseQuestionLog.query" class="layui-btn-primary"
|
||||
action="addButton_cancel"><span class="iconfont"></span>返回</layui:accessButton>
|
||||
</div>
|
||||
<table id="teacherTable" lay-filter="teacherTable"></table>
|
||||
<input type="hidden" name="teacherOpenCourseId" autocomplete="off" class="layui-input" value="${teacherOpenCourseId}"/>
|
||||
<!--#} -->
|
||||
<script>
|
||||
|
||||
layui.use(['form', 'laydate', 'table', 'laydate'], function () {
|
||||
var form = layui.form;
|
||||
var laydate = layui.laydate;
|
||||
var table = layui.table;
|
||||
var teacherTable = null;
|
||||
var laydate = layui.laydate;
|
||||
|
||||
var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val();
|
||||
|
||||
teacherTable = table.render({
|
||||
elem : '#teacherTable',
|
||||
height : Lib.getTableHeight(),
|
||||
cellMinWidth: 100,
|
||||
even:true,
|
||||
// skin:'nob',
|
||||
method: 'post',
|
||||
size:"lg",
|
||||
url: Common.ctxPath + '/api/teacherOpenCourseChatLog/getPageList.do' // 数据接口
|
||||
,where:getParam()
|
||||
,page : Lib.tablePage // 开启分页
|
||||
,limit : 10,
|
||||
cols: [[
|
||||
{type:'numbers',title:'序号'},
|
||||
{
|
||||
field: 'code', title: '提问时间', align: "center"
|
||||
},
|
||||
{
|
||||
field: 'name', title: '提问学生', align: "center"
|
||||
},
|
||||
{
|
||||
field: 'name', title: '提问方式', align: "center"
|
||||
},
|
||||
{
|
||||
field: 'code', title: '用户编号', align: "center",
|
||||
hide: "${isSignRole.get()!''}" != 2 ? false : true
|
||||
},
|
||||
{
|
||||
field: 'universitiesCollegesName', title: '所属院校', align: "center",
|
||||
hide: "${isSignRole.get()!''}" != 2 ? false : true
|
||||
},
|
||||
{
|
||||
field: 'universitiesCollegesProvince', title: '所属省份', align: "center",
|
||||
hide: "${isSignRole.get()!''}" != 2 ? false: true,
|
||||
},
|
||||
{
|
||||
field: 'className', title: '所属班级', align: "center"
|
||||
},
|
||||
{
|
||||
field: 'platform', title: '提问内容', align: "center",
|
||||
},
|
||||
{
|
||||
field: 'loginTime', title: '学生回答', align: "center",
|
||||
},
|
||||
{
|
||||
field: 'logoutTime', title: '登记得分', align: "center",
|
||||
}
|
||||
] ]
|
||||
});
|
||||
|
||||
toolbar = {
|
||||
addButton_cancel:function (){
|
||||
parent.Lib.tableRefresh();
|
||||
Lib.closeFrame();
|
||||
},export:function () {
|
||||
console.log("点击成功")
|
||||
return;
|
||||
layer.confirm('是否确定导出使用日志表吗?', function (index) {
|
||||
$.downFile(Common.ctxPath + "/jlw/student/studentUseLogListExport.json");
|
||||
layer.close(index);
|
||||
});
|
||||
},search:function () {
|
||||
teacherTable.reload({
|
||||
where: getParam(),
|
||||
page: {
|
||||
curr: 1
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
$('.ext-toolbar').on('click', function() {
|
||||
var type = $(this).data('type');
|
||||
toolbar[type] ? toolbar[type].call(this) : '';
|
||||
});
|
||||
|
||||
function getParam(checkStatus) {
|
||||
var codePlural = "";
|
||||
var param = {};
|
||||
if (!$.isEmpty(checkStatus)) {
|
||||
codePlural = Common.concatBatchId(checkStatus.data, "code");
|
||||
}
|
||||
if ($.isEmpty(codePlural)) {
|
||||
param = $("#searchForm").serializeJson();
|
||||
param.teacherOpenCourseId = teacherOpenCourseId;
|
||||
param.teacherId = '';
|
||||
param.chatLogSendType = "specify_ask";
|
||||
} else {
|
||||
param.codePlural = codePlural;
|
||||
}
|
||||
return param;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue