diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/GlobalReading.vue b/src/views/trials/trials-panel/setting/reading-unit/components/GlobalReading.vue index fa57595a..b5619713 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/components/GlobalReading.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/components/GlobalReading.vue @@ -215,7 +215,7 @@ export default { } this.isSign = res.Result.IsSign } - this.form.GlobalAssessTypeIdsStr = this.form.GlobalAssessTypeIds.map(v => this.$fd('GlobalAssessType', v, 'id')).toString() + // this.form.GlobalAssessTypeIdsStr = this.form.GlobalAssessTypeIds.map(v => this.$fd('GlobalAssessType', v, 'id')).toString() this.loading = false }).catch(() => { this.loading = false @@ -223,11 +223,19 @@ export default { }, handleSave(isPrompt) { return new Promise((resolve, reject) => { - this.$refs['globalReadingForm'].validate((valid) => { + this.$refs['globalReadingForm'].validate(async(valid) => { if (!valid) { resolve(false) } else { this.loading = true + if(this.form.GlobalAssessTypes.length === 0){ + try{ + let res = await getTrialConfigGlobalReadingInfo({ trialId: this.$route.query.trialId, TrialReadingCriterionId: this.trialReadingCriterionId }) + this.form.GlobalAssessTypes = res.Result.GlobalAssessTypes + }catch(e){ + console.log(e) + } + } // 保存配置信息 this.form.TrialId = this.$route.query.trialId this.form.TrialReadingCriterionId = this.trialReadingCriterionId diff --git a/src/views/trials/trials-panel/setting/reading-unit/index.vue b/src/views/trials/trials-panel/setting/reading-unit/index.vue index f5272c33..a47453e9 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/index.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/index.vue @@ -3,7 +3,7 @@