This commit is contained in:
“zouyf” 2024-12-25 17:30:42 +08:00
parent 96e01ae711
commit 4b935b9110
2 changed files with 7 additions and 6 deletions

View File

@ -121,6 +121,7 @@ export const editListItem = (row, courseObj) => {
const eduInfo = row.worktag.split('-'); const eduInfo = row.worktag.split('-');
useClassTaskStores.experimentObj.edustage = eduInfo[0]; useClassTaskStores.experimentObj.edustage = eduInfo[0];
useClassTaskStores.experimentObj.edusubject = eduInfo[1]; useClassTaskStores.experimentObj.edusubject = eduInfo[1];
useClassTaskStores.experimentObj.updateEduInfo = row.worktag;
} }
// 更新科学实验内容 // 更新科学实验内容
classtaskObj.fileHomeworkList = JSON.parse(row.workcodes); classtaskObj.fileHomeworkList = JSON.parse(row.workcodes);

View File

@ -125,8 +125,8 @@ const handleUserEduStage = (item) => {
const newSubjectList = subjectList.value.filter(item => item.edustage === '小学'); const newSubjectList = subjectList.value.filter(item => item.edustage === '小学');
for(let i in newSubjectList){ for(let i in newSubjectList){
const name = newSubjectList[i].itemtitle const name = newSubjectList[i].itemtitle
if(isExpList(name)){ if(isExpList(name) && useClassTaskStore().experimentObj.edusubject===name){
useClassTaskStore().experimentObj.edusubject = name; //useClassTaskStore().experimentObj.edusubject = name;
// //
handleUserEduSubject(name) handleUserEduSubject(name)
break; break;
@ -138,8 +138,8 @@ const handleUserEduStage = (item) => {
const newSubjectList = subjectList.value.filter(item => item.edustage === '初中'); const newSubjectList = subjectList.value.filter(item => item.edustage === '初中');
for(let i in newSubjectList){ for(let i in newSubjectList){
const name = newSubjectList[i].itemtitle const name = newSubjectList[i].itemtitle
if(isExpList(name)){ if(isExpList(name) && useClassTaskStore().experimentObj.edusubject===name){
useClassTaskStore().experimentObj.edusubject = name; //useClassTaskStore().experimentObj.edusubject = name;
// //
handleUserEduSubject(name) handleUserEduSubject(name)
break; break;
@ -151,8 +151,8 @@ const handleUserEduStage = (item) => {
const newSubjectList = subjectList.value.filter(item => item.edustage === '高中'); const newSubjectList = subjectList.value.filter(item => item.edustage === '高中');
for(let i in newSubjectList){ for(let i in newSubjectList){
const name = newSubjectList[i].itemtitle const name = newSubjectList[i].itemtitle
if(isExpList(name)){ if(isExpList(name) && useClassTaskStore().experimentObj.edusubject===name){
useClassTaskStore().experimentObj.edusubject = name; //useClassTaskStore().experimentObj.edusubject = name;
// //
handleUserEduSubject(name) handleUserEduSubject(name)
break; break;