Compare commits

..

No commits in common. "f7a3aa6e538b2b7d1c284cd0d7bf112f2e2e9f8e" and "18370129df312ce6a49efe7e6b1b3d71c705ed99" have entirely different histories.

2 changed files with 16 additions and 33 deletions

View File

@ -61,27 +61,14 @@ const checkList = ref([])// 当前年级对应学科的课程,
//
const getSubject = () => {
//
// if(!userStore.subject) return
// listEvaluation({ itemkey: 'subject', pageSize: 500 }).then((res) => {
// const arr = userStore.subject.split(',')
// subjectList.value = res.rows.filter(item => arr.includes(String(item.id))).map(items => items)
// console.log(subjectList,'subjectList');
// })
// list
const edustageList = ['小学','初中','高中'];
const subList = ['数学','物理','化学','生物','科学'];
edustageList.forEach((item) => {
subList.forEach((subItems) => {
subjectList.value.push({
edustage: item,
edusubject: subItems,
itemtitle: subItems
})
})
})
if(!userStore.subject) return
listEvaluation({ itemkey: 'subject', pageSize: 500 }).then((res) => {
const arr = userStore.subject.split(',')
subjectList.value = res.rows.filter(item => arr.includes(String(item.id))).map(items => items)
console.log(subjectList,'subjectList');
//
handleUserEduStage(useClassTaskStore().experimentObj.edustage)
})
//
handleUserEduStage(useClassTaskStore().experimentObj.edustage)
}
//
const isExpList = (edusubject) => {

View File

@ -200,7 +200,7 @@ const fileLoading = ref(false); // 常规作业loading
onMounted(() => {
console.log("----onMounted-------")
currentRow.value.id = 0
currentRow.value = {id:0};
if(propsQueryCourseObj){
if(JSON.parse(propsQueryCourseObj)){
courseObj.textbookId = JSON.parse(propsQueryCourseObj).bookObj //
@ -235,7 +235,7 @@ const isInToMyQuestion = () => {
if(useClassTaskStores.isOpenQuestUploadView){
useClassTaskStores.isOpenQuestUploadView = false;
currentRow.value.id = 1; //
currentRow.value = {id:1}; //
activeAptTab.value = "个人题库";
//
classWorkForm.id = 0;
@ -282,7 +282,7 @@ const handleItemClick = (itemName) => {
return;
}
currentRow.value.id = 1; //
currentRow.value = {id:1}; //
/**
* 智能推荐AI设计作业
* 习题训练 自主搜题 校本题库 个人题库
@ -325,7 +325,7 @@ const initHomeWork = async()=> {
const handleNewAllClass = () => {
taskTable.value.setCurrentRow({});//
currentRow.value.id = 0; //
currentRow.value = {id:0}; //
//--------
classWorkForm.id = 0;
classWorkForm.uniquekey = ""; //
@ -352,7 +352,7 @@ const handleDelete =() => {
return delClasswork(ids.join(','));
}).then(() => {
taskTable.value.setCurrentRow({});//
currentRow.value.id = 0; //
currentRow.value = {id:0}; //
taskList.value = [];
// initHomeWork();
setTimeout(() => {
@ -446,7 +446,7 @@ const handleCurrentChange = (val) => {
console.log(val,'???????????')
if(val && val.id >0 ) {
currentRow.value.id = 1;
currentRow.value = val;
classWorkForm.worktype = val.worktype; //
editListItem(val, courseObj).then((obj) => {
if(obj){
@ -670,9 +670,9 @@ const handleClassWorkFormQuizRemove = (index) =>{
console.log('该清空左侧列表数据了');
//
if(isShow.value){
currentRow.value.id = 1;
currentRow.value = {id:1};
}else{
currentRow.value.id = 0;
currentRow.value = {id:0};
}
initHomeWork();
@ -814,11 +814,7 @@ const editWork = async (cform) =>{
if (res.code == 200) {
ElMessage.success('更新成功');
//
if(isShow.value){
currentRow.value.id = 1;
}else{
currentRow.value.id = 0;
}
currentRow.value = {id:0};
initHomeWork();
// //
// router.back()