From 04b22f5b508c8c8dd35db69fe666ab1850e6b5bd Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Thu, 25 Apr 2024 13:15:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=A0=87=E5=87=86?= =?UTF-8?q?=E9=98=85=E7=89=87=E5=8D=95=E5=85=83=E9=85=8D=E7=BD=AE=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading-unit/components/QuestionsForm.vue | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue index 5ae6c821..f77b165b 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue @@ -76,10 +76,10 @@ 0) { for (const k in this.form) { if (k === 'CalculateQuestions' && this.data[k] !== undefined) { - console.log(this.data[k]) this.form[k] = JSON.parse(this.data[k]) - console.log('CalculateQuestions', this.form[k]) } else if (k === 'ClassifyAlgorithms' && this.data[k] !== undefined && this.data[k] !== '') { this.ClassifyAlgorithmsList = JSON.parse(this.data[k]) - console.log(11111, this.form) + } else if(k === 'FileType'){ + if (this.data[k]){ + this.form[k] = this.data[k].split(',') + } } else { if (this.data.hasOwnProperty(k)) { this.form[k] = this.data[k] } } } - if (this.form.FileType && this.form.FileType.length > 0) { - this.form.FileType = this.form.FileType.split(',') - } else { - this.form.FileType = [] - } if (this.form.ParentId !== '' && this.form.ParentId !== null && this.form.GroupName !== '') { this.isParentExistGroup = true } @@ -986,7 +981,7 @@ export default { if (this.form.Type !== 'upload') { this.form.ImageCount = 0 } - params.FileType = this.form.FileType.toString() + params.FileType = this.form.FileType.join(',') addOrUpdateReadingQuestionTrial(params).then(res => { this.$emit('getList') this.loading = false