lsc 9 mesi fa
parent
commit
6600354f56

+ 6 - 1
src/components/pages/aiAddCourse/addCourse.vue

@@ -12427,6 +12427,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
         courseInfo += `主题:${theme.join(',')} `
       }
       this.addCourseBehavior('courseBehavior', `点击选择分类-${courseInfo}`)
+      this.typeC1 = this.getTypeC(2)
+      this.typeC2 = this.getTypeC(1)
     },
     getChapterData(e, i, j, ic, type) {
       e.stopPropagation();
@@ -15554,6 +15556,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
 
             this.$forceUpdate();
             this.courseName = res.data[0][0].title;
+            this.searchFileName = JSON.parse(JSON.stringify(this.courseName))
             this.courseText = res.data[0][0].brief;
             this.courseText2 = res.data[0][0].reBrief;
             this.evalua = res.data[0][0].evaId;
@@ -16249,6 +16252,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
             }
           }
           this.courseTypeId = _courseTypeId;
+          this.typeC1 = this.getTypeC(2)
+          this.typeC2 = this.getTypeC(1)
         })
         .catch((err) => {
           console.error(err);
@@ -17373,10 +17378,10 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
     setCover($event, attempts = 0) {
       var _this = this;
       this.addCourseBehavior('courseBehavior', `修改课程名称-${this.courseName}`)
+      _this.searchFileName = JSON.parse(JSON.stringify(_this.courseName))
       if (_this.cover.length || attempts >= 3) {
         return;
       }
-      _this.searchFileName = JSON.parse(JSON.stringify(_this.courseName))
       _this.findMatchingContents()
       _this.imageloading2 = true;
       _this.ajax

+ 1 - 1
src/components/pages/aiAddCourse/aiBoxRight.vue

@@ -644,7 +644,7 @@ export default {
               return JSON.stringify(oldItem) === JSON.stringify(item);
             });
           });
-        if ((addedData[0].string.includes('aiDetail') && !addedData[0].string.includes('aiDetail2')) || 
+        if ((addedData[0].string.includes('aiDetail') && !addedData[0].string.includes('aiDetail2') && !addedData[0].string.includes('aiDetail3')) || 
               addedData[0].string.includes('aitargetTextDetail2') || 
               addedData[0].string.includes('aiDetail1') || 
               addedData[0].string.includes('teacherDetail2')) {

+ 4 - 4
src/components/pages/aiEasy/addCourse.vue

@@ -7902,7 +7902,7 @@ export default {
             delete this.unitJson[i].isUpdate;
           }
         }
-        this.$refs.rightboxR.scrollTop = 0;
+        // this.$refs.rightboxR.scrollTop = 0;
         this.addindex = -1;
         let params = [
           {
@@ -8738,7 +8738,7 @@ export default {
                     }
                   }
                   if (this.cid) {
-                    this.loading = true
+                    // this.loading = true
                     functionA()
                     this.addCourseBehavior('courseBehavior2', `点击学历案-下一步按钮`)
                   } else {
@@ -8759,7 +8759,7 @@ export default {
             return;
           }
           if (this.cid && this.panTask() > 0) {
-            this.loading = true
+            // this.loading = true
             functionA()
           } else {
             // if(ttype == 2){
@@ -8900,7 +8900,7 @@ export default {
       //     }
       //   }
       // }
-      this.$refs.stepBox.scrollTop = 0;
+      // this.$refs.stepBox.scrollTop = 0;
     },
     unitSet(i) {
       if (this.unitIndex == i) {

+ 1 - 1
src/components/pages/aiEasy/aiBoxRight.vue

@@ -654,7 +654,7 @@ export default {
               return JSON.stringify(oldItem) === JSON.stringify(item);
             });
           });
-          if ((addedData[0].string.includes('aiDetail') && !addedData[0].string.includes('aiDetail2')) || 
+          if ((addedData[0].string.includes('aiDetail') && !addedData[0].string.includes('aiDetail2') && !addedData[0].string.includes('aiDetail3')) || 
               addedData[0].string.includes('aitargetTextDetail2') || 
               addedData[0].string.includes('aiDetail1') || 
               addedData[0].string.includes('teacherDetail2')) {