From c37332e8e21d4599621ead8e7ddb3c631acb97d0 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 28 Jun 2024 10:31:49 +0800 Subject: [PATCH] =?UTF-8?q?CRC=E5=9B=9E=E5=A4=8D=E5=BD=B1=E5=83=8F?= =?UTF-8?q?=E8=B4=A8=E7=96=91=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E4=B8=8B=E4=B8=80=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/trials.js | 8 +++++ .../crc-question/components/chatForm.vue | 21 ++++++++++++-- .../trials-panel/visit/crc-question/index.vue | 29 +++++++++++++++++-- 3 files changed, 52 insertions(+), 6 deletions(-) diff --git a/src/api/trials.js b/src/api/trials.js index db931590..eb090c83 100644 --- a/src/api/trials.js +++ b/src/api/trials.js @@ -3683,3 +3683,11 @@ export function getNextIRMedicalFeedback(param) { data: param }) } + +export function getNextCRCChallenge(param) { + return request({ + url: `/QCList/getNextCRCChallenge`, + method: 'post', + data: param + }) +} 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 3c9dbeef..1fa4fd8b 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 @@ -92,6 +92,14 @@ > {{ $t('trials:crcQuestion:button:close') }} + + + {{ $t('trials:crcQuestion:button:nextTask') }} + @@ -255,9 +263,11 @@ export default { UserTypeEnum: this.data.UserTypeEnum } ) - this.data.DialogList.forEach(element => { - recordContent.push(element) - }) + if (this.data.DialogList && this.data.DialogList.length > 0) { + this.data.DialogList.forEach(element => { + recordContent.push(element) + }) + } this.recordContent = recordContent this.setScrollHeight() }, @@ -350,6 +360,11 @@ export default { this.uploadBtnLoading = false }) }, + // 获取下一任务 + getNextTask() { + this.loading = true + this.$emit('getNextTask', this.data.Id) + }, close() { this.$emit('close') }, diff --git a/src/views/trials/trials-panel/visit/crc-question/index.vue b/src/views/trials/trials-panel/visit/crc-question/index.vue index f775eff5..200bd839 100644 --- a/src/views/trials/trials-panel/visit/crc-question/index.vue +++ b/src/views/trials/trials-panel/visit/crc-question/index.vue @@ -128,7 +128,7 @@ prop="QCProcessEnum" :label="$t('trials:crcQuestion:table:qCProcessEnum')" show-overflow-tooltip - min-width="80" + min-width="130" sortable="custom" >