From 99b062eeca471bdcbfcacd88e308fab9972cd6ec Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 19 八月 2025 14:21:33 +0800
Subject: [PATCH] 展示优化
---
src/views/repositoryai/templateku/configurat/measurement.vue | 27 ++++++++++++++++++---------
1 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/src/views/repositoryai/templateku/configurat/measurement.vue b/src/views/repositoryai/templateku/configurat/measurement.vue
index e9aca3d..d9fc2a2 100644
--- a/src/views/repositoryai/templateku/configurat/measurement.vue
+++ b/src/views/repositoryai/templateku/configurat/measurement.vue
@@ -122,6 +122,8 @@
created() {
this.TemplateName = this.$route.query.name;
this.userid = store.getters.Id;
+ console.log(store.getters.Id,'11');
+
this.requstWs(); //杩涘叆椤甸潰鍒涘缓杩炴帴
},
mounted() {
@@ -162,7 +164,7 @@
};
// 鍙戣捣ws璇锋眰
sendWebsocket(
- "ws://192.168.2.10:8095/chat?userId="+this.userId,
+ "ws://9.208.2.190:8095/chat?userId="+this.userid,
obj,
this.wsMessage,
this.wsError
@@ -182,11 +184,9 @@
// isEat: 1,
// });
// }
- timerId = setTimeout(() => {
- if (!this.answer) {
- this.sendFn(); // 鍚庤皟鐢�
- }
- }, this.timeout * 1000);
+
+
+
// 浼樺厛鍔犲叆閫氱敤搴撳尮閰嶆枃鏈�
if (dataJson.nowQuestion.submoduleText) {
this.Answerline.push({
@@ -215,6 +215,15 @@
});
return item;
});
+ if (!dataJson.jsy) {
+ timerId = setTimeout(() => {
+ if (!this.answer) {
+ this.sendFn(); // 鍚庤皟鐢�
+ }
+ }, this.timeout * 1000);
+ }else{
+ clearTimeout(timerId)
+ }
console.log(this.questionList);
// IMUI.appendMessage(data);
@@ -230,14 +239,14 @@
// 娑堟伅鍙戦��
const obj = {
type: "text",
- userId: this.userId,
+ userId: this.userid,
templateId: "",
questionMessage: { content: this.answer },
};
console.log(obj, "鍏ュ弬");
// 鍙戣捣ws璇锋眰
sendWebsocket(
- "ws://192.168.2.10:8095/chat?userId="+this.userId,
+ "ws://9.208.2.190:8095/chat?userId="+this.userid,
obj,
this.wsMessage,
this.wsError
@@ -284,7 +293,7 @@
overflow: auto;
.leftside {
margin-bottom: 30px;
- width: 600px;
+ max-width: 566px;
margin-left: 20px;
padding: 10px;
color: #fff;
--
Gitblit v1.9.3