diff --git a/web/src/main/resources/templates/jlw/teacherOpenCourseChatLog/indexInfoNor.html b/web/src/main/resources/templates/jlw/teacherOpenCourseChatLog/indexInfoNor.html
index 01119b17..42b19038 100644
--- a/web/src/main/resources/templates/jlw/teacherOpenCourseChatLog/indexInfoNor.html
+++ b/web/src/main/resources/templates/jlw/teacherOpenCourseChatLog/indexInfoNor.html
@@ -59,41 +59,39 @@
var dataAll = [];
- load();
- function load(){
- flow.load({
- elem: '#LAY_demo1' //流加载容器
- ,scrollElem: '#LAY_demo1' //滚动条所在元素,一般不用填,此处只是演示需要。
- ,done: function(page, next){ //执行下一页的回调
- var url = '/api/teacherOpenCourseChatLog/treeList.do';
- var param = {
- //teacherOpenCourseId: teacherOpenCourseId,
- limit: 10,
- page: page
- };
- var lis = [];
-
- var data = [];
- var ret = Common.postAjax(url, param);
- if (ret.code == 0) {
- data = ret.data;
- }
- for (let i = 0; i < data.length; i++) {
- lis.push('
' +
- '' +
- '
' + data[i].chatContent + '
' +
- '
' +
- '');
- dataAll.push(data[i])
- }
- next(lis.join(''), page < 10); //假设总页数为 10
+ flow.load({
+ elem: '#LAY_demo1' //流加载容器
+ ,scrollElem: '#LAY_demo1' //滚动条所在元素,一般不用填,此处只是演示需要。
+ ,done: function(page, next){ //执行下一页的回调
+ var url = '/api/teacherOpenCourseChatLog/treeList.do';
+ var param = {
+ //teacherOpenCourseId: teacherOpenCourseId,
+ limit: 10,
+ page: page
+ };
+ var lis = [];
+
+ var data = [];
+ var ret = Common.postAjax(url, param);
+ if (ret.code == 0) {
+ data = ret.data;
}
- });
- /*默认显示第一个回答详情*/
- commentHtml(dataAll[0]);
- }
+ for (let i = 0; i < data.length; i++) {
+ lis.push('' +
+ '' +
+ '
' + data[i].chatContent + '
' +
+ '
' +
+ '');
+ dataAll.push(data[i])
+ }
+ next(lis.join(''), page < 10); //假设总页数为 10
+ }
+ });
+
+ /*默认显示第一个回答详情*/
+ commentHtml(dataAll[0]);
/*返回*/
$("#addButton_cancel").click(function () {
@@ -162,8 +160,7 @@
}, function () {
layer.closeAll("loading");
if (ret.code == 0) {
- parent.Lib.tableRefresh();
- Lib.closeFrame();
+ window.location.reload();
}
});
}
@@ -181,7 +178,7 @@
}, function (index) {
layer.closeAll("loading");
if (ret.code == 0) {
- window.location.reload()
+ window.location.reload();
}
});
}