From bf701bf3d8d428421a38c3602f7cbe1e2a163a91 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 10 Sep 2024 15:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E6=8E=A7=E9=A1=B5=E9=9D=A2=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D=E5=86=85=E5=AE=B9=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visit/crc-question/components/chatForm.vue | 7 +++++-- .../trials-panel/visit/qc-check/components/chatForm.vue | 7 +++++-- .../visit/qc-check/components/qualityAssurance.vue | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/trials/trials-panel/visit/crc-question/components/chatForm.vue b/src/views/trials/trials-panel/visit/crc-question/components/chatForm.vue index 1fa4fd8b..e3282b3f 100644 --- a/src/views/trials/trials-panel/visit/crc-question/components/chatForm.vue +++ b/src/views/trials/trials-panel/visit/crc-question/components/chatForm.vue @@ -13,7 +13,7 @@ {{ record.CreateUserName }} ({{ record.CreateTime }})

-
+
@@ -23,7 +23,7 @@ {{ record.CreateUserName }} ({{ record.CreateTime }})

-
+
Admin @@ -231,6 +231,9 @@ export default { this.getMessageList() }, methods: { + formattedText(text) { + return text.replace(/\n/g, '
') + }, // 初始化聊天信息 getMessageList() { var recordContent = [] diff --git a/src/views/trials/trials-panel/visit/qc-check/components/chatForm.vue b/src/views/trials/trials-panel/visit/qc-check/components/chatForm.vue index 9a234dd3..4b8308c3 100644 --- a/src/views/trials/trials-panel/visit/qc-check/components/chatForm.vue +++ b/src/views/trials/trials-panel/visit/qc-check/components/chatForm.vue @@ -13,7 +13,7 @@ {{ record.CreateUserName }} ({{ record.CreateTime }})

-
+
@@ -23,7 +23,7 @@ {{ record.CreateUserName }} ({{ record.CreateTime }})

-
+
Admin @@ -153,6 +153,9 @@ export default { close() { this.$emit('close') }, + formattedText(text) { + return text.replace(/\n/g, '
') + }, // 初始化聊天信息 getMessageList() { var recordContent = [] diff --git a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue index 50b31011..38e72f9c 100644 --- a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue +++ b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue @@ -1643,14 +1643,14 @@ export default { var str = `${item.keyName}
` if (item.keyValue) { // 问题总结 - str = `${str}${this.$t('trials:audit:form:questionSummary')}:${ + str = `${str}${this.$t('trials:audit:form:questionSummary')}:
${ item.keyValue }
` } if (item.actionContent) { // 行动事项 actions.push(`${item.actionContent}`) - str = `${str}${this.$t('trials:audit:form:actionMatters')}:${ + str = `${str}${this.$t('trials:audit:form:actionMatters')}:
${ item.actionContent }
` }