SanHQin 10 месяцев назад
Родитель
Сommit
cae831f05b

+ 5 - 5
src/components/pages/classroomObservation/components/analysisItem.vue

@@ -173,6 +173,7 @@ export default {
 			openItem: false,
 			loading: false,
 			loadNum: 0,
+			userId:this.$route.query['userid'],
 			showIndex: 0,
 			historyResult: [],
 			imgTypeList: [
@@ -221,10 +222,9 @@ export default {
 				);
 				let parm = {
 					assistant_id: assistant?assistant.value:null,
-					message:
-						"请使用代码解析器分析,帮我根据要求完整的分析,输出请按照要求。",
-					session_name: new Date().getTime(),
-					userId: "1cf9dc4b-d95f-11ea-af4c-52540005ab01",
+					message:`请根据文件的类型,使用代码解析器或者文件检索的方式完整的去分析文件内容,并请完全按照要求输出。`,
+					session_name: uuidv4(),
+					userId: this.userId,
 					file_ids: this.fileId?[this.fileId]:'',
 				};
 
@@ -232,7 +232,7 @@ export default {
 				// const _uid = uuidv4();
 				// let parm = {
 				// 	assistant_id: assistant ? assistant.value : null,
-				// 	userId: "1cf9dc4b-d95f-11ea-af4c-52540005ab01", //602def61-005d-11ee-91d8-005056b86db5
+				// 	userId: this.userId, //602def61-005d-11ee-91d8-005056b86db5
 				// 	message:
 				// 		"请使用代码解析器获取文件,帮我根据要求完整的分析,输出请按照要求。",
 				// 	session_name: new Date().getTime(),

+ 6 - 5
src/components/pages/classroomObservation/components/chatArea.vue

@@ -500,6 +500,7 @@ export default {
 			showRoleList: false,
 			showGetTextLoading: false,
 			roleListIndex: 0,
+			userId:this.$route.query['userid'],
 			recordedForm: {
 				time: "00:00:00", //时间
 				status: 0, //0--未录音  1--正在录音  2--暂停  3--录音结束
@@ -812,7 +813,7 @@ export default {
 					this.scrollBottom();
 					let params = {
 						assistant_id: _item.assistant_id,
-						userId: "602def61-005d-11ee-91d8-005056b86db5",
+						userId: this.userId,
 						message: _replaceText,
 						session_name: `${this.tid}-classroomObservation`,
 						uid: _uid,
@@ -1343,7 +1344,7 @@ export default {
 		getRoleList() {
 			this.roleList = [];
 			let params = {
-				userId: "602def61-005d-11ee-91d8-005056b86db5",
+				userId: this.userId,
 			};
 			this.ajax
 				.post("https://gpt4.cocorobo.cn/get_ai_agent_assistant_list", params)
@@ -1361,7 +1362,7 @@ export default {
 		getPublicRoleList() {
 			this.publicRoleList = [];
 			let params = {
-				userId: "602def61-005d-11ee-91d8-005056b86db5",
+				userId: this.userId,
 				organizeid: "45facc0a-1211-11ec-80ad-005056b86db5",
 			};
 			this.ajax
@@ -1472,7 +1473,7 @@ export default {
 				if (!this.tid) return setTimeout(() => this.getChatList(), 100);
 				this.chatLoading = true;
 				let params = {
-					userid: "602def61-005d-11ee-91d8-005056b86db5",
+					userid: this.userId,
 					groupid: "602def61-005d-11ee-91d8-005056b8q12w",
 					// session_name:``
 					session_name: `${this.tid}-classroomObservation`,
@@ -1523,7 +1524,7 @@ export default {
 			let _data = this.chatList.find((i) => i.uid == _uid);
 			if (!_data) return;
 			let params = {
-				userId: "602def61-005d-11ee-91d8-005056b86db5",
+				userId: this.userId,
 				userName: "qgt",
 				groupId: "602def61-005d-11ee-91d8-005056b8q12w",
 				answer: _data.aiContent,

+ 2 - 1
src/components/pages/classroomObservation/components/messageArea.vue

@@ -255,6 +255,7 @@ export default {
 			extendLoading: false,
 			valueAddedLoading: false,
 			input2: "",
+			userId:this.$route.query['userid'],
 			dialogTagList: [
 				{ id: 0, name: "通用课堂分析" },
 				{ id: 1, name: "学科课堂分析" },
@@ -560,7 +561,7 @@ export default {
 					message:
 						"请使用代码解析器获取文件,帮我根据要求完整的分析,输出请按照要求。",
 					session_name: new Date().getTime(),
-					userId: "1cf9dc4b-d95f-11ea-af4c-52540005ab01",
+					userId: this.userId,
 					file_ids: this.fileId,
 				};