@@ -82,7 +82,7 @@ | |||||
border-left: 1px solid #333; | border-left: 1px solid #333; | ||||
border-top: 1px solid #333; | border-top: 1px solid #333; | ||||
padding: 1px; | padding: 1px; | ||||
width: 9%; | |||||
width: 6.6%; | |||||
font-size: 12px; | font-size: 12px; | ||||
} | } | ||||
@@ -132,7 +132,7 @@ | |||||
.perFestivalsBox td { | .perFestivalsBox td { | ||||
padding: 1px; | padding: 1px; | ||||
width: 9%; | |||||
width: 6.6%; | |||||
} | } | ||||
.WeekTimes { | .WeekTimes { | ||||
@@ -146,6 +146,11 @@ | |||||
<div class="lr-layout-center"> | <div class="lr-layout-center"> | ||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | <div class="lr-layout-wrap lr-layout-wrap-notitle "> | ||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-right"> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||||
</div> | |||||
</div> | |||||
</div> | </div> | ||||
<div class="lr-layout-body" style="overflow: auto;"> | <div class="lr-layout-body" style="overflow: auto;"> | ||||
<div class="warpper"> | <div class="warpper"> | ||||
@@ -8,12 +8,13 @@ var bootstrap = function ($, learun) { | |||||
page.bind(); | page.bind(); | ||||
//page.bindSelect(); | //page.bindSelect(); | ||||
}, | }, | ||||
loadData: function (param) { | loadData: function (param) { | ||||
$.lrSetFormWithParam(top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTerm/GetDataInEducation', param, | $.lrSetFormWithParam(top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTerm/GetDataInEducation', param, | ||||
function (data) { | function (data) { | ||||
//console.log('res', data); | //console.log('res', data); | ||||
// 数据处理 | // 数据处理 | ||||
var html = '<tr style="height: 30px;"><td>节次/星期</td><td>星期一</td><td>星期二</td><td>星期三</td><td>星期四</td><td>星期五</td><td>星期六</td><td>星期日</td><td>星期八</td><td>星期九</td><td>星期十</td></tr>'; | |||||
var html = '<tr style="height: 30px;"><td>节次/第几天</td><td>第1天</td><td>第2天</td><td>第3天</td><td>第4天</td><td>第5天</td><td>第6天</td><td>第7天</td><td>第8天</td><td>第9天</td><td>第10天</td><td>第11天</td><td>第12天</td><td>第13天</td><td>第14天</td></tr>'; | |||||
var weekLists = data.weekList; | var weekLists = data.weekList; | ||||
//十节课 | //十节课 | ||||
for (var i = 1; i < 12; i++) { | for (var i = 1; i < 12; i++) { | ||||
@@ -60,7 +61,7 @@ var bootstrap = function ($, learun) { | |||||
//某节课空 | //某节课空 | ||||
function tdHandle() { | function tdHandle() { | ||||
var html = ''; | var html = ''; | ||||
for (var j = 0; j < 11; j++) { | |||||
for (var j = 0; j < 15; j++) { | |||||
html += '<td class="active" id="" num="' + (j + 1) + '"><div></div><div></div><div></div><div></div></td>'; | html += '<td class="active" id="" num="' + (j + 1) + '"><div></div><div></div><div></div><div></div></td>'; | ||||
} | } | ||||
return html; | return html; | ||||
@@ -69,7 +70,7 @@ var bootstrap = function ($, learun) { | |||||
//某节课不空 | //某节课不空 | ||||
function tdHandles(lists) { | function tdHandles(lists) { | ||||
var html = ''; | var html = ''; | ||||
for (var k = 1; k < 12; k++) { | |||||
for (var k = 1; k < 16; k++) { | |||||
(function (arg) { | (function (arg) { | ||||
var args = arg - 1; | var args = arg - 1; | ||||
var datas = flogs2(arg, lists, 'day'); | var datas = flogs2(arg, lists, 'day'); | ||||
@@ -114,6 +115,10 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
//获取周次 | //获取周次 | ||||
learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTerm/GetWeekTime', function (res) { | learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTerm/GetWeekTime', function (res) { | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
@@ -82,7 +82,7 @@ | |||||
border-left: 1px solid #333; | border-left: 1px solid #333; | ||||
border-top: 1px solid #333; | border-top: 1px solid #333; | ||||
padding: 1px; | padding: 1px; | ||||
width: 9%; | |||||
width: 6.6%; | |||||
font-size: 12px; | font-size: 12px; | ||||
} | } | ||||
@@ -132,7 +132,7 @@ | |||||
.perFestivalsBox td { | .perFestivalsBox td { | ||||
padding: 1px; | padding: 1px; | ||||
width: 9%; | |||||
width: 6.6%; | |||||
} | } | ||||
.WeekTimes { | .WeekTimes { | ||||
@@ -146,6 +146,11 @@ | |||||
<div class="lr-layout-center"> | <div class="lr-layout-center"> | ||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | <div class="lr-layout-wrap lr-layout-wrap-notitle "> | ||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-right"> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||||
</div> | |||||
</div> | |||||
</div> | </div> | ||||
<div class="lr-layout-body" style="overflow: auto;"> | <div class="lr-layout-body" style="overflow: auto;"> | ||||
<div class="warpper"> | <div class="warpper"> | ||||
@@ -13,7 +13,7 @@ var bootstrap = function ($, learun) { | |||||
function (data) { | function (data) { | ||||
//console.log('res', data); | //console.log('res', data); | ||||
// 数据处理 | // 数据处理 | ||||
var html = '<tr style="height: 30px;"><td>节次/星期</td><td>星期一</td><td>星期二</td><td>星期三</td><td>星期四</td><td>星期五</td><td>星期六</td><td>星期日</td><td>星期八</td><td>星期九</td><td>星期十</td></tr>'; | |||||
var html = '<tr style="height: 30px;"><td>节次/第几天</td><td>第1天</td><td>第2天</td><td>第3天</td><td>第4天</td><td>第5天</td><td>第6天</td><td>第7天</td><td>第8天</td><td>第9天</td><td>第10天</td><td>第11天</td><td>第12天</td><td>第13天</td><td>第14天</td></tr>'; | |||||
var weekLists = data.weekList; | var weekLists = data.weekList; | ||||
//十节课 | //十节课 | ||||
for (var i = 1; i < 12; i++) { | for (var i = 1; i < 12; i++) { | ||||
@@ -60,7 +60,7 @@ var bootstrap = function ($, learun) { | |||||
//某节课空 | //某节课空 | ||||
function tdHandle() { | function tdHandle() { | ||||
var html = ''; | var html = ''; | ||||
for (var j = 0; j < 11; j++) { | |||||
for (var j = 0; j < 15; j++) { | |||||
html += '<td class="active" id="" num="' + (j + 1) + '"><div></div><div></div><div></div><div></div></td>'; | html += '<td class="active" id="" num="' + (j + 1) + '"><div></div><div></div><div></div><div></div></td>'; | ||||
} | } | ||||
return html; | return html; | ||||
@@ -69,7 +69,7 @@ var bootstrap = function ($, learun) { | |||||
//某节课不空 | //某节课不空 | ||||
function tdHandles(lists) { | function tdHandles(lists) { | ||||
var html = ''; | var html = ''; | ||||
for (var k = 1; k < 12; k++) { | |||||
for (var k = 1; k < 16; k++) { | |||||
(function (arg) { | (function (arg) { | ||||
var args = arg - 1; | var args = arg - 1; | ||||
var datas = flogs2(arg, lists, 'day'); | var datas = flogs2(arg, lists, 'day'); | ||||
@@ -150,10 +150,10 @@ var bootstrap = function ($, learun) { | |||||
curWeek = $('#WeekTimes input[name="WeekTimes"]:checked ').val(); | curWeek = $('#WeekTimes input[name="WeekTimes"]:checked ').val(); | ||||
page.search(); | page.search(); | ||||
}); | }); | ||||
// 刷新 | |||||
//$('#lr_refresh').on('click', function () { | |||||
// location.reload(); | |||||
//}); | |||||
//刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
//查询 | //查询 | ||||
$('#lr_search').on('click', function () { | $('#lr_search').on('click', function () { | ||||
var p = {}; | var p = {}; | ||||