baigl #164

Merged
baigl merged 2 commits from baigl into main 2024-12-20 16:02:51 +08:00
1 changed files with 12 additions and 8 deletions

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(() => {
@ -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,7 +814,11 @@ const editWork = async (cform) =>{
if (res.code == 200) {
ElMessage.success('更新成功');
//
currentRow.value = {id:0};
if(isShow.value){
currentRow.value.id = 1;
}else{
currentRow.value.id = 0;
}
initHomeWork();
// //
// router.back()