SanHQin 7 months ago
parent
commit
bed34c0c69

+ 6 - 11
src/components/pages/test/add/components/course/course.vue

@@ -150,7 +150,7 @@ export default {
       result = data.data[0];
       result = data.data[0];
       this.coursesList = result;
       this.coursesList = result;
       this.loading = false;
       this.loading = false;
-    }
+    },
   },
   },
   methods: {
   methods: {
     depthCopy(s) {
     depthCopy(s) {
@@ -183,16 +183,11 @@ export default {
     }
     }
   },
   },
   mounted() {
   mounted() {
-    // if (!this.cJson || Object.keys(this.cJson).length == 0) {
-    //   this.checkJson = {
-    //     title: "标题",
-    //     detail: "",
-    //     courses: []
-    //   };
-    // } else {
-    //   this.checkJson = this.depthCopy(this.cJson2);
-    //   this.courses = this.checkJson.courses;
-    // }
+    if (Object.keys(this.cJson).length != 0) {
+			if( this.cJson.courses && this.cJson.courses.length != 0){
+				this.courses = this.cJson.courses;
+			}
+    }
   }
   }
 };
 };
 </script>
 </script>

+ 2 - 2
src/components/pages/test/check/index.vue

@@ -126,7 +126,7 @@
                 </div>
                 </div>
 								
 								
                 <div class="btnA" v-if="stype == 3" @click="exportAllWord2">导出人员数据</div>
                 <div class="btnA" v-if="stype == 3" @click="exportAllWord2">导出人员数据</div>
-                <div class="btnA" @click="openChat" v-if="this.worksArray.length">AI分析</div><!--v-if="this.worksArray.length"-->
+                <div class="btnA" @click="openChat" v-if="this.worksArray.length && !peopleId">AI分析</div><!--v-if="this.worksArray.length"-->
 								
 								
               </div>
               </div>
             </div>
             </div>
@@ -571,7 +571,7 @@
               </div>
               </div>
             </div>
             </div>
           </div>
           </div>
-					<div class="aiBoxRight" ref="aiBoxRightDivRef" v-show="aiChatV && isDesktop" >
+					<div class="aiBoxRight" ref="aiBoxRightDivRef" v-show="aiChatV && isDesktop" v-if="!peopleId">
 						<aiBoxRight :courseId="cid" :worksArray="[{name:testJson.title,worksArray:worksArray}]" ref="aiChat"></aiBoxRight>
 						<aiBoxRight :courseId="cid" :worksArray="[{name:testJson.title,worksArray:worksArray}]" ref="aiChat"></aiBoxRight>
 					</div>
 					</div>
           <!-- 按人员pc端 isDesktop-->
           <!-- 按人员pc端 isDesktop-->