Compare commits
No commits in common. "35af866a533e816f93639dba87b8586d310e38f2" and "eca1a927c08f703580902d2d5fbb1d579f748f09" have entirely different histories.
35af866a53
...
eca1a927c0
|
@ -1,3 +1,8 @@
|
|||
<!--
|
||||
* @Author: 苦逼程序猿
|
||||
* @Date: 2024-09-06 16:58:59
|
||||
* @Warning: 千行代码,Bug露锋芒。
|
||||
-->
|
||||
<template>
|
||||
<el-container class="class-reserv-wrap">
|
||||
<div style="display: flex; justify-content: space-between;">
|
||||
|
@ -116,7 +121,7 @@ const getData = async () => {
|
|||
classWorkList.value = []
|
||||
loading.value = true
|
||||
// 1、班级列表
|
||||
// getClassList()
|
||||
//getClassList()
|
||||
// 2、班级作业
|
||||
await getClassWorkList()
|
||||
// 3、班级学生作业 包含多个班级
|
||||
|
|
|
@ -889,8 +889,6 @@ const handleWorkConfigUpdate = (key,row) => {
|
|||
classWorkConfigForm.classWorkConfigList = [];
|
||||
// 新建的配置方案
|
||||
for (var i=0; i<clist.length; i++) {
|
||||
// clist里面包含多个班级、多个班级的学生。选中的学生中 classWorkConfigForm.studentlist 包含多个班级的学生 studentlist赋值需要根据id判断筛选一下
|
||||
const clsStuList = classWorkConfigForm.studentlist&&classWorkConfigForm.studentlist.filter(item=>item.classid == clist[i].id);
|
||||
classWorkConfigForm.classWorkConfigList.push({
|
||||
id: 0,
|
||||
classid: clist[i].id,
|
||||
|
@ -906,7 +904,7 @@ const handleWorkConfigUpdate = (key,row) => {
|
|||
workdate: '',
|
||||
title: '',
|
||||
workcodes: '',
|
||||
studentlist: clsStuList,
|
||||
studentlist: classWorkConfigForm.studentlist,
|
||||
timelength: classWorkConfigForm.timelength,
|
||||
weights: classWorkConfigForm.weights,
|
||||
feedtype: classWorkConfigForm.feedtype,
|
||||
|
@ -1020,7 +1018,6 @@ const handleTaskAssignToAllClassType = async() => {
|
|||
|
||||
var wForm = {};
|
||||
wForm.classworkarray = JSON.stringify(ttt);
|
||||
console.log(wForm,'推送的配置信息------------')
|
||||
saveByClassWorkArray(wForm).then(response => {
|
||||
console.log(response,'===============response');
|
||||
// this.classWorkToStudent_Loading = false;
|
||||
|
|
Loading…
Reference in New Issue