SanHQin преди 10 месеца
родител
ревизия
0f7af0f032

+ 3 - 1
src/components/pages/classroomObservation/components/analysisItem.vue

@@ -44,6 +44,7 @@
 
 
 			<div class="a-m-brief">
+				<mdView :text="data.jsonData.content" />
 				<mdView :text="data.jsonData.result" />
 				<!-- {{ data.jsonData.result }} -->
 			</div>
@@ -184,7 +185,8 @@ export default {
 							return this.$message.error("AI无法识别优化");
 						}
 						let _copyData = JSON.parse(JSON.stringify(this.data));
-						_copyData.jsonData.result = _data.message;
+						_copyData.jsonData.result = "";
+						_copyData.jsonData.content = _data.message;
 						_copyData.jsonData.dataFileList = [];
 						_copyData.jsonData.fileList = [];
 						_copyData.json_data = JSON.stringify(_copyData.jsonData);

+ 13 - 4
src/components/pages/classroomObservation/components/sharePdf.vue

@@ -53,7 +53,11 @@ export default {
     dialogVisibleShare: {
       type: Boolean,
       default: false
-    }
+    },
+		tid:{
+			type:String,
+			default:"",
+		}
   },
   data() {
     return {
@@ -77,7 +81,7 @@ export default {
     },
     setQr() {
       setTimeout(() => {
-        let url = 'https://beta.cloud.cocorobo.cn/#/classroomObservation';
+        let url = `https://beta.cloud.cocorobo.cn/aigpt/#/classroom_observation_board?tid=${this.tid}`;
         this.origin = url;
         this.$refs.qrCodeUrl.innerHTML = "";
         var qrcode = new QRCode(this.$refs.qrCodeUrl, {
@@ -100,7 +104,7 @@ export default {
       link.click();
     },
     copy() {
-      this.copyText = 'https://beta.cloud.cocorobo.cn/#/classroomObservation';
+      this.copyText = `https://beta.cloud.cocorobo.cn/aigpt/#/classroom_observation_board?tid=${this.tid}`;
       var clipboard = new Clipboard(".tag-read");
       clipboard.on("success", e => {
         this.$message.success("复制成功");
@@ -166,7 +170,12 @@ export default {
         // console.log(top.origin);
         // this.origin = top.origin
       }
-    }
+    },
+		tid(){
+			if(this.dialogVisibleShare){
+				this.setQr();
+			}
+		}
   },
   mounted() {
     // console.log("this.info", this.info);

+ 3 - 1
src/components/pages/classroomObservation/components/tape.vue

@@ -111,7 +111,9 @@
 
 <script>
 export default {
-	components: {},
+	components: {
+		
+	},
 	props: {
 		chatData: {
 			type: Array,

+ 6 - 0
src/components/pages/classroomObservation/index.vue

@@ -103,6 +103,7 @@
 		</div>
 		<sharePdf
 			:dialogVisibleShare="dialogVisibleShare"
+			:tid="tid"
 			@shareBtn="shareBtn"
 		></sharePdf>
 
@@ -147,6 +148,8 @@ export default {
 			});
 		},
 		addNewCourse(form) {
+			if(this.loading)return this.$message.info("请稍等")
+			this.loading = true;
 			let params = {
 				tid: form.no,
 				type: "10",
@@ -172,6 +175,7 @@ export default {
 							.then((res2) => {
 								let _data2 = res2.data.FunctionResponse;
 								if (_data2.message == "创建成功") {
+									this.loading = false;
 									this.$nextTick(() => {
 										this.getCourseList().then((_) => {
 											this.getFileIdId();
@@ -299,6 +303,7 @@ export default {
 			this.$refs.chatAreaRef.changeAudioUrl(data.url);
 		},
 		getCourseList() {
+			this.loading = true;
 			return new Promise((resolve, reject) => {
 				this.ajax
 					.post("https://gpt4.cocorobo.cn/get_classroom_observation_all")
@@ -322,6 +327,7 @@ export default {
 						if (this.optionData.length > 0) {
 							if (!this.tid) this.tid = this.optionData[0].value;
 						}
+						this.loading = false;
 						resolve();
 					});
 			});