From d866153ccce06947abda26b28fba4c6cbbc21343 Mon Sep 17 00:00:00 2001
From: caiyiling <1321909229@qq.com>
Date: Tue, 12 Nov 2024 13:19:12 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E9=98=85=E7=89=87=E6=9B=B4?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../customize/CustomizeQuestionFormItem.vue | 17 +-
.../reading/none-dicoms/components/ECRF.vue | 61 ++--
.../none-dicoms/components/FormItem.vue | 271 ++++++++++++++++--
3 files changed, 285 insertions(+), 64 deletions(-)
diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue
index 72ce462d..48c761b2 100644
--- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue
@@ -158,6 +158,7 @@
{ formItemNumberChange(val, question) }"
/>
@@ -225,7 +227,7 @@
type="number"
v-if="question.Type === 'number' && question.DataSource !== 1"
@change="(val) => { formItemNumberChange(val, question) }"
- onblur="value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')));console.log(localStorage.getItem('digitPlaces'))"
+ onblur="value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')));"
@input="limitInput($event, questionForm, question.Id)"
v-model="questionForm[question.Id]"
>
@@ -235,7 +237,7 @@
= this.digitPlaces) {
this.$set(a, b, parseFloat(value).toFixed(this.digitPlaces))
}
- } else {
}
},
deleteTableCol(row, index) {
- console.log(row)
this.$confirm(this.$t('trials:uploadNonDicoms:message:msg1')).then(() => {
const loading = this.$loading({ fullscreen: true })
var param = {
@@ -551,7 +551,6 @@ export default {
for (const k in this.QuestionsForm) {
if (reg.test(k)) {
if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
- console.log(this.QuestionsForm)
answers.push({ tableQuestionId: k, answer: this.QuestionsForm[k] })
}
}
@@ -864,7 +863,6 @@ export default {
this.QuestionsForm = {}
} else {
this.addOrEdit.type = 'edit'
- console.log(this.questionForm)
this.QuestionsForm = Object.assign({}, this.questionForm[row.Id][index])
}
},
@@ -917,7 +915,6 @@ export default {
},
async uploadScreenshot(param) {
- console.log('uploadScreenshot')
if (!this.visitTaskId) return
const loading = this.$loading({
target: document.querySelector('.ecrf-wrapper'),
@@ -930,7 +927,6 @@ export default {
let file = await this.fileToBlob(param.file)
let res = await this.OSSclient.put(`/${this.$route.query.trialId}/Customize/${this.visitTaskId}/${fileName}`, file)
this.fileList.push({ name: `${this.$t('trials:emailManageCfg:title:fileName')}${this.fileList.length + 1}`, url: this.$getObjectName(res.url) })
- console.log('fileList', this.fileList)
this.urls.push(this.$getObjectName(res.url))
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '', question: this.question })
loading.close()
@@ -947,7 +943,6 @@ export default {
},
handleBeforeUpload(file, accept) {
// 检测文件类型是否符合要求
- console.log('handleBeforeUpload', file)
if (this.checkFileSuffix(file.name, accept) || accept === '-1') {
return true
} else {
@@ -955,7 +950,6 @@ export default {
this.$alert(msg)
return false
}
- console.log(file)
},
checkFileSuffix(fileName, accept) {
var index = fileName.lastIndexOf('.')
@@ -982,7 +976,6 @@ export default {
},
// 删除图片
handleRemove(file, fileList) {
- console.log('handleRemove')
if (file && file.status === "success") {
this.imageUrl = ''
this.fileList.splice(this.fileList.findIndex(f => f.url === file.url), 1)
diff --git a/src/views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue b/src/views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue
index da348130..8331cdd3 100644
--- a/src/views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue
+++ b/src/views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue
@@ -55,6 +55,7 @@
:question-form="questionForm"
:reading-task-state="readingTaskState"
:visit-task-id="visitTaskId"
+ :calculation-list="calculationList"
@setFormItemData="setFormItemData"
@resetFormItemData="resetFormItemData"
/>
@@ -110,7 +111,7 @@