Compare commits

..

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

1 changed files with 8 additions and 12 deletions

View File

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