From 399367ef477d4a719366af2fccdcd07ce5bff62a Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期日, 07 四月 2024 10:18:21 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/templateku/configurat/measurement.vue | 28 ++++++++++++++++++++++------ 1 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/views/repositoryai/templateku/configurat/measurement.vue b/src/views/repositoryai/templateku/configurat/measurement.vue index 491059f..7aa74d3 100644 --- a/src/views/repositoryai/templateku/configurat/measurement.vue +++ b/src/views/repositoryai/templateku/configurat/measurement.vue @@ -129,7 +129,7 @@ }; // 鍙戣捣ws璇锋眰 sendWebsocket( - "ws://localhost:8089/chat?userId=1", + "ws://192.168.2.8:8089/chat?userId=1", obj, this.wsMessage, this.wsError @@ -141,16 +141,32 @@ dataJson = JSON.parse(dataJson); dataJson = JSON.parse(dataJson); console.log(dataJson, "鏁版嵁"); + // 棣栨鎺ユ敹鏁版嵁 if (!this.Answerline[0]) { this.Answerline.push({ value: dataJson.kcb, isEat: 1, }); } - this.Answerline.push({ - value: dataJson.nowQuestion.questionText, - isEat: 1, - }); + // 浼樺厛鍔犲叆閫氱敤搴撳尮閰嶆枃鏈� + if (dataJson.nowQuestion.submoduleText) { + this.Answerline.push({ + value: dataJson.nowQuestion.submoduleText, + isEat: 1, + }); + } + // 鏄惁缁撴潫 + if (!dataJson.jsy) { + this.Answerline.push({ + value: dataJson.nowQuestion.questionText, + isEat: 1, + }); + } else { + this.Answerline.push({ + value: dataJson.jsy, + isEat: 1, + }); + } this.questionList = dataJson.questionList; this.questionList = this.questionList.map((item) => { item.ivrLibaScriptTargetoptionList.forEach((row) => { @@ -179,7 +195,7 @@ console.log(obj, "鍏ュ弬"); // 鍙戣捣ws璇锋眰 sendWebsocket( - "ws://localhost:8089/chat?userId=1", + "ws://192.168.2.8:8089/chat?userId=1", obj, this.wsMessage, this.wsError -- Gitblit v1.9.3