|
|
@ -889,6 +889,8 @@ const handleWorkConfigUpdate = (key,row) => {
|
|
|
|
classWorkConfigForm.classWorkConfigList = [];
|
|
|
|
classWorkConfigForm.classWorkConfigList = [];
|
|
|
|
// 新建的配置方案
|
|
|
|
// 新建的配置方案
|
|
|
|
for (var i=0; i<clist.length; i++) {
|
|
|
|
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({
|
|
|
|
classWorkConfigForm.classWorkConfigList.push({
|
|
|
|
id: 0,
|
|
|
|
id: 0,
|
|
|
|
classid: clist[i].id,
|
|
|
|
classid: clist[i].id,
|
|
|
@ -904,7 +906,7 @@ const handleWorkConfigUpdate = (key,row) => {
|
|
|
|
workdate: '',
|
|
|
|
workdate: '',
|
|
|
|
title: '',
|
|
|
|
title: '',
|
|
|
|
workcodes: '',
|
|
|
|
workcodes: '',
|
|
|
|
studentlist: classWorkConfigForm.studentlist,
|
|
|
|
studentlist: clsStuList,
|
|
|
|
timelength: classWorkConfigForm.timelength,
|
|
|
|
timelength: classWorkConfigForm.timelength,
|
|
|
|
weights: classWorkConfigForm.weights,
|
|
|
|
weights: classWorkConfigForm.weights,
|
|
|
|
feedtype: classWorkConfigForm.feedtype,
|
|
|
|
feedtype: classWorkConfigForm.feedtype,
|
|
|
@ -1018,6 +1020,7 @@ const handleTaskAssignToAllClassType = async() => {
|
|
|
|
|
|
|
|
|
|
|
|
var wForm = {};
|
|
|
|
var wForm = {};
|
|
|
|
wForm.classworkarray = JSON.stringify(ttt);
|
|
|
|
wForm.classworkarray = JSON.stringify(ttt);
|
|
|
|
|
|
|
|
console.log(wForm,'推送的配置信息------------')
|
|
|
|
saveByClassWorkArray(wForm).then(response => {
|
|
|
|
saveByClassWorkArray(wForm).then(response => {
|
|
|
|
console.log(response,'===============response');
|
|
|
|
console.log(response,'===============response');
|
|
|
|
// this.classWorkToStudent_Loading = false;
|
|
|
|
// this.classWorkToStudent_Loading = false;
|
|
|
|