Browse Source

web全员课程表

娄底高职分支
yxq 3 months ago
parent
commit
8f6a19588d
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TimeTable/IndexInEducation.js

+ 10
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TimeTable/IndexInEducation.js View File

@@ -12,9 +12,17 @@ var bootstrap = function ($, learun) {
function (data) {
// 数据处理
var html = '';
var allList = data.weekList[0].list;
var allList = data.weekList?data.weekList[0].list:[];
var weekLists = [];
$.each(allList)
for (var i = 1; i < 11; i++) {
(function (arg) {
let obj = {
time: i,
list: allList.filter(e => e.lessonTime == i),
}
weekLists.push(obj)
})(i); //调用时参数
}
for (var i = 1; i < 11; i++) {
(function (arg) {
var args = arg - 1;


Loading…
Cancel
Save