From 06c7398c1b9dd66bda4873ba18723f8574a96f43 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 22 Oct 2024 16:55:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=AD=90=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=BC=E5=87=BA=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/CriterionQuestionForm.vue | 13 ++++- .../template/components/TableQsForm.vue | 56 ++++++++++++++++++- .../reading-unit/components/QuestionsForm.vue | 12 +++- .../reading-unit/components/TableQsForm.vue | 54 +++++++++++++++++- 4 files changed, 127 insertions(+), 8 deletions(-) diff --git a/src/views/dictionary/template/components/CriterionQuestionForm.vue b/src/views/dictionary/template/components/CriterionQuestionForm.vue index 24b672c8..76664a4d 100644 --- a/src/views/dictionary/template/components/CriterionQuestionForm.vue +++ b/src/views/dictionary/template/components/CriterionQuestionForm.vue @@ -808,7 +808,7 @@ export default { HighlightAnswerList: [], ExportIdentification: 0, ExportResult: [], - MaxAnswerLength: 500, + MaxAnswerLength: null, FileType: [], ClassifyQuestionId: null, ClassifyAlgorithms: null, @@ -1095,11 +1095,20 @@ export default { } else { data.LesionType = null } + if (val === 'number' || val === 'calculation') { + data.Unit = 0 + } else { + data.Unit = null + } + if (val === 'input' || val === 'textarea') { + data.MaxAnswerLength = 500 + } else { + data.MaxAnswerLength = null + } data.QuestionGenre = null data.DictionaryCode = '' data.TypeValue = '' data.ValueType = '' - data.Unit = '' }, isShowQuestionChange(val, form) { if (this.form.Type === 'table' || this.form.Type === 'basicTable') return diff --git a/src/views/dictionary/template/components/TableQsForm.vue b/src/views/dictionary/template/components/TableQsForm.vue index aed8bde7..99d064a6 100644 --- a/src/views/dictionary/template/components/TableQsForm.vue +++ b/src/views/dictionary/template/components/TableQsForm.vue @@ -142,6 +142,38 @@ :value="item.value" /> + + + + + {{ item.label }} + + + + + + + + + { diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue b/src/views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue index 0770b466..d8782ba5 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue @@ -150,6 +150,38 @@ :value="item" /> + + + + + {{ item.label }} + + + + + + + + +