瀏覽代碼

app学生课表调整选课日期

临城职教中职
杨晓琪 2 年之前
父節點
當前提交
28efd715ba
共有 1 個文件被更改,包括 29 次插入599 次删除
  1. +29
    -599
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/timeTable/list.vue

+ 29
- 599
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/timeTable/list.vue 查看文件

@@ -61,11 +61,11 @@
export default {
data() {
return {
userInfo:null,
semester: '',
num: 0,
user: null,
weekDayTime: 0,
noClassTime:0,
todayWeek: {},
dataArr: [],
weekArr: [{
@@ -115,22 +115,22 @@
this.OFF('timeTable');
},
methods: {
// 初始化数据
async init() {
// console.log(555)
let _this = this;
_this.todayWeek = common.weekday2();
// _this.semester = common.judgeDate();
// _this.todayWeek = common.weekday2();
_this.weekDayTime = 14 * common.oneDayTime();
_this.user = _this.GET_GLOBAL('loginUser');
_this.loadData(_this.todayWeek.Monday, _this.todayWeek.Sunday);
_this.noClassTime = 4 * common.oneDayTime();
_this.loadData();
},
liTap(ind) {
this.num = ind;
},
// 切换时间
timeTap(num) {
let _this = this;
if (num == 1) {
_this.todayWeek.MondayTime = _this.todayWeek.MondayTime - _this.weekDayTime;
_this.todayWeek.MondayTime = _this.todayWeek.MondayTime - _this.weekDayTime ;
_this.todayWeek.SundayTime = _this.todayWeek.SundayTime - _this.weekDayTime;
} else {
_this.todayWeek.MondayTime = _this.todayWeek.MondayTime + _this.weekDayTime;
@@ -139,523 +139,38 @@
_this.num = 0;
_this.todayWeek.Monday = common.fmtDate(_this.todayWeek.MondayTime);
_this.todayWeek.Sunday = common.fmtDate(_this.todayWeek.SundayTime);
// _this.semester = common.judgeDate(_this.todayWeek.SundayTime);
_this.loadData(_this.todayWeek.Monday, _this.todayWeek.Sunday);
},
// 获取数据
loadData(start, end) {
let {Description,account:Account,} = this.userInfo
let {
Description,
account: Account
} = this.user
let param = {
StartDate: start,
EndDate: end,
EndDate: end,
Description,
Account,
};
console.log(this.userInfo)
// let param = { StartDate: '2018-11-05', EndDate: '2018-11-11' };
let _this = this;
_this.LOADING('加载数据中…');
// learun/adms/timetable/list
_this.HTTP_GET('learun/adms/timetable/TenDay', param, '加载数据时出错').then(res => {
this.HIDE_LOADING();
let res1 = {
"schoolName": "课程表",
"semester": "2022-2023学年度 第1学期",
"weekList": [{
"time": "10",
"list": [{
"ALTId": "18778c62-2d53-484f-850a-7f736395e86b",
"day": "9",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "9-10",
"lessonDate": "2022-09-06",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "a3598edb-ad86-4ea5-82a7-bbaf5239e1a0",
"day": "4",
"curriculum": "数学2",
"teacher": "谢晓东",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101104",
"teachClassNo": "202107",
"empno": "JZG1204",
"lessonTime": "4-10",
"lessonDate": "2022-09-01",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "ce07dcfa-6c8c-4620-a31b-94f1a9bc8954",
"day": "5",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "5-10",
"lessonDate": "2022-09-02",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}
]
},
{
"time": "11",
"list": [{
"ALTId": "6eae1cba-c468-4890-9ff6-dcdedfe02873",
"day": "5",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "5-11",
"lessonDate": "2022-09-02",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "cbec706f-1964-4b56-bddb-798d76a9df0e",
"day": "4",
"curriculum": "数学2",
"teacher": "谢晓东",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101104",
"teachClassNo": "202107",
"empno": "JZG1204",
"lessonTime": "4-11",
"lessonDate": "2022-09-01",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}
]
},
{
"time": "2",
"list": [{
"ALTId": "67c8ee24-ae96-4323-81e0-5c19759240fd",
"day": "8",
"curriculum": "数学2",
"teacher": "谢晓东",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101104",
"teachClassNo": "202107",
"empno": "JZG1204",
"lessonTime": "8-2",
"lessonDate": "2022-09-05",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "8d78f99e-dcb8-4ab2-9dc5-54d0e12cc785",
"day": "6",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "6-2",
"lessonDate": "2022-09-03",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "b978df65-831d-409d-ae3b-76eb70fd251e",
"day": "5",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "5-2",
"lessonDate": "2022-09-02",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}
]
},
{
"time": "3",
"list": [{
"ALTId": "0322d4af-289f-4594-8cbb-dc97582516d5",
"day": "5",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "5-3",
"lessonDate": "2022-09-02",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "07413840-473e-4888-a3f5-a7449786c6a9",
"day": "4",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "4-3",
"lessonDate": "2022-09-01",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "0dc7913e-cf75-4876-a0c5-941f919bf490",
"day": "9",
"curriculum": "数学2",
"teacher": "谢晓东",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101104",
"teachClassNo": "202107",
"empno": "JZG1204",
"lessonTime": "9-3",
"lessonDate": "2022-09-06",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "e8185446-6d3e-4103-af34-8d607fd52ff8",
"day": "10",
"curriculum": "数学2",
"teacher": "谢晓东",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101104",
"teachClassNo": "202107",
"empno": "JZG1204",
"lessonTime": "10-3",
"lessonDate": "2022-09-07",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}
]
},
{
"time": "4",
"list": [{
"ALTId": "8b1837fc-3530-45b5-8842-1fa3daf74b35",
"day": "10",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "10-4",
"lessonDate": "2022-09-07",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "a45986a2-22da-4cc1-815a-938034f96c46",
"day": "7",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "7-4",
"lessonDate": "2022-09-04",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}
]
},
{
"time": "5",
"list": [{
"ALTId": "1eccfee7-833b-464e-811d-60f55bdfa9e5",
"day": "10",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "10-5",
"lessonDate": "2022-09-07",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "2e28f9c2-bbb4-4144-b99f-ba3dcce34dc8",
"day": "9",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "9-5",
"lessonDate": "2022-09-06",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "d0d883bd-de43-4967-92e4-d3de7138b4a2",
"day": "4",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "4-5",
"lessonDate": "2022-09-01",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}
]
},
{
"time": "6",
"list": [{
"ALTId": "67c42aae-284f-49dd-b5bc-607a6c498ed3",
"day": "8",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "8-6",
"lessonDate": "2022-09-05",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "8e5fed6b-835d-4112-925b-30e6b4bd0429",
"day": "5",
"curriculum": "数学2",
"teacher": "谢晓东",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101104",
"teachClassNo": "202107",
"empno": "JZG1204",
"lessonTime": "5-6",
"lessonDate": "2022-09-02",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "febb8a53-835c-4873-ad31-d5e1bcbdbed4",
"day": "4",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "4-6",
"lessonDate": "2022-09-01",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}
]
},
{
"time": "7",
"list": [{
"ALTId": "1a06dcf9-fb8e-441a-b6de-be652d2187d4",
"day": "6",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "6-7",
"lessonDate": "2022-09-03",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "86330adc-c6ec-41b9-b61b-91f87beb0767",
"day": "8",
"curriculum": "英语2",
"teacher": "曾令法",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101106",
"teachClassNo": "202107",
"empno": "JZG1007",
"lessonTime": "8-7",
"lessonDate": "2022-09-05",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
},
{
"ALTId": "edace417-6bed-48a4-ab97-87afaab25be5",
"day": "4",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "4-7",
"lessonDate": "2022-09-01",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}
]
},
{
"time": "8",
"list": [{
"ALTId": "f21cd6b6-dffa-45ca-bcd6-76eb20985da2",
"day": "5",
"curriculum": "数学2",
"teacher": "谢晓东",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101104",
"teachClassNo": "202107",
"empno": "JZG1204",
"lessonTime": "5-8",
"lessonDate": "2022-09-02",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}]
},
{
"time": "9",
"list": [{
"ALTId": "24655d02-9f96-4726-b1d8-1f5a82914eb8",
"day": "7",
"curriculum": "语文2",
"teacher": "黄发艳",
"classRoom": "8-209-210",
"academicyear": "22-23",
"semester": "1",
"lessonNo": "G0101102",
"teachClassNo": "202107",
"empno": "JZG1297",
"lessonTime": "7-9",
"lessonDate": "2022-09-04",
"classRoomNo": "K006",
"lessonSortNo": "1",
"OLPEId": null,
"className": "21计算机1班"
}]
}
]
}
_this.semester = res1.semester
_this.semester = res.semester
_this.dataArr = _this.ProcessingData(res.weekList);
// 回显日期
if (!start) {
_this.todayWeek.MondayTime = new Date(res.startDate).valueOf();
_this.todayWeek.SundayTime = new Date(res.endDate).valueOf() + _this.noClassTime;
_this.num = 0;
_this.todayWeek.Monday = common.fmtDate(_this.todayWeek.MondayTime);
_this.todayWeek.Sunday = common.fmtDate(_this.todayWeek.SundayTime);
}
});

},
// 处理接口返回的课程数据
// 处理课程数据
ProcessingData(res) {
let courseCateByDay = {}
for (let i = 1; i < 11; i++) {
@@ -668,94 +183,9 @@
courseCateByDay[item.time] = item.list
})
return courseCateByDay;
// let dataM = [{
// weekTime: 1,
// num: Math.floor(Math.random() * 100000000),
// lessonData: [{
// "time": "10",
// "ALTId": "18778c62-2d53-484f-850a-7f736395e86b",
// "day": "9",
// "curriculum": "英语2",
// "teacher": "曾令法",
// "classRoom": "8-209-210",
// "academicyear": "22-23",
// "semester": "1",
// "lessonNo": "G0101106",
// "teachClassNo": "202107",
// "empno": "JZG1007",
// "lessonTime": "9-10",
// "lessonDate": "2022-09-06",
// "classRoomNo": "K006",
// "lessonSortNo": "1",
// "OLPEId": null,
// "className": "21计算机1班"
// },
// {
// "time": "2",
// "ALTId": "a3598edb-ad86-4ea5-82a7-bbaf5239e1a0",
// "day": "4",
// "curriculum": "数学2",
// "teacher": "谢晓东",
// "classRoom": "8-209-210",
// "academicyear": "22-23",
// "semester": "1",
// "lessonNo": "G0101104",
// "teachClassNo": "202107",
// "empno": "JZG1204",
// "lessonTime": "4-10",
// "lessonDate": "2022-09-01",
// "classRoomNo": "K006",
// "lessonSortNo": "1",
// "OLPEId": null,
// "className": "21计算机1班"
// },
// ]
// },
// {
// weekTime: 2,
// num: Math.floor(Math.random() * 100000000),
// lessonData: []
// },
// {
// weekTime: 3,
// num: Math.floor(Math.random() * 100000000),
// lessonData: []
// },
// {
// weekTime: 4,
// num: Math.floor(Math.random() * 100000000),
// lessonData: []
// },
// {
// weekTime: 5,
// num: Math.floor(Math.random() * 100000000),
// lessonData: []
// },
// {
// weekTime: 6,
// num: Math.floor(Math.random() * 100000000),
// lessonData: []
// },
// {
// weekTime: 7,
// num: Math.floor(Math.random() * 100000000),
// lessonData: []
// }
// ];
// data.forEach((n, i) => {
// n.sectionTime = n.LessonTime.slice(1);
// dataM.forEach((k, j) => {
// if (k.weekTime == n.LessonTime.slice(0, 1)) {
// k.lessonData.push(n);
// }
// });
// });
// dataM.forEach((n, i) => {
// n.lessonData.sort(common.compare('sectionTime'));
// });
// this.dataArr = dataM;
},
classTap(data) {
return ""
let _this = this;
// console.log(_this.user)
if (_this.user.Description == "教师") {
@@ -792,7 +222,7 @@
},
created() {
this.ON('timeTable', this.init);
this.userInfo = this.GET_GLOBAL("loginUser");
this.user = this.GET_GLOBAL('loginUser');
this.init()
}
};
@@ -935,7 +365,7 @@
float: left;
background: #e8f6ff;
height: 100%;
width: 25%;
width: 20%;
text-align: center;
line-height: 36px;
padding: 11px 0;
@@ -945,7 +375,7 @@

.tSec2ListR {
float: left;
width: 75%;
width: 80%;
height: 100%;
line-height: 18px;
padding: 4px 0;
@@ -953,7 +383,7 @@
}

.tSec2ListBox {
width: 70%;
width: 62%;
float: left;
padding-left: 5px;
}
@@ -973,7 +403,7 @@
}

.tSec2Location {
width: 30%;
width: 38%;
float: left;
line-height: 44px;
font-size: 13px;


Loading…
取消
儲存