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