Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
	
		
			
	
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
					Details
				
			
		
	
				
					
				
			
				
	
				continuous-integration/drone/push Build is passing
				
					Details
				
			
		
	
						commit
						14ad1ae156
					
				| 
						 | 
				
			
			@ -201,4 +201,7 @@ export default {
 | 
			
		|||
    margin-right: 5px;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
::v-deep .el-dialog__header{
 | 
			
		||||
  font-weight: bold;
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
      </el-form-item>
 | 
			
		||||
      <!-- 问题名称 -->
 | 
			
		||||
      <el-form-item
 | 
			
		||||
        v-if="(form.Type !== 'group' && !isLook) || (isLook && $i18n.locale !== 'en')"
 | 
			
		||||
        v-if="(form.Type !== 'group' && $i18n.locale !== 'en' )"
 | 
			
		||||
        :label="$t('trials:readingUnit:qsList:title:qsName')"
 | 
			
		||||
        prop="QuestionName"
 | 
			
		||||
      >
 | 
			
		||||
| 
						 | 
				
			
			@ -57,7 +57,7 @@
 | 
			
		|||
      </el-form-item>
 | 
			
		||||
      <!-- 问题名称(En) -->
 | 
			
		||||
      <el-form-item
 | 
			
		||||
        v-if="(form.Type !== 'group' && !isLook) || (isLook && $i18n.locale !== 'zh')"
 | 
			
		||||
        v-if="(form.Type !== 'group' && $i18n.locale !== 'zh')"
 | 
			
		||||
        :label="$t('trials:readingUnit:qsList:title:qsNameEn')"
 | 
			
		||||
        prop="QuestionEnName"
 | 
			
		||||
      >
 | 
			
		||||
| 
						 | 
				
			
			@ -813,6 +813,8 @@ export default {
 | 
			
		|||
        ],
 | 
			
		||||
        QuestionName: [{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
 | 
			
		||||
          {max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}],
 | 
			
		||||
        QuestionEnName:[{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
 | 
			
		||||
          {max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}],
 | 
			
		||||
        TypeValue: [{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
 | 
			
		||||
          {validator: validateTypeVal, trigger: ['blur', 'change']},
 | 
			
		||||
          {max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200`}],
 | 
			
		||||
| 
						 | 
				
			
			@ -996,6 +998,11 @@ export default {
 | 
			
		|||
      this.$refs.qsForm.validate(valid => {
 | 
			
		||||
        if (!valid) return
 | 
			
		||||
        this.loading = true
 | 
			
		||||
        if(this.form.QuestionName && !this.form.QuestionEnName){
 | 
			
		||||
          this.form.QuestionEnName = this.form.QuestionName;
 | 
			
		||||
        }else if(!this.form.QuestionName && this.form.QuestionEnName){
 | 
			
		||||
          this.form.QuestionName = this.form.QuestionEnName;
 | 
			
		||||
        }
 | 
			
		||||
        var params = Object.assign({}, this.form)
 | 
			
		||||
        params.TrialId = this.$route.query.trialId
 | 
			
		||||
        params.ReadingCriterionPageId = this.data.ReadingCriterionPageId
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,7 +35,7 @@
 | 
			
		|||
        />
 | 
			
		||||
      </el-form-item>
 | 
			
		||||
      <el-form-item
 | 
			
		||||
        v-if="form.Type !== 'group'"
 | 
			
		||||
        v-if="form.Type !== 'group'&& $i18n.locale !== 'en'"
 | 
			
		||||
        :label="$t('trials:readingUnit:qsList:title:qsName')"
 | 
			
		||||
        prop="QuestionName"
 | 
			
		||||
      >
 | 
			
		||||
| 
						 | 
				
			
			@ -44,7 +44,7 @@
 | 
			
		|||
        />
 | 
			
		||||
      </el-form-item>
 | 
			
		||||
      <el-form-item
 | 
			
		||||
        v-if="form.Type !== 'group'"
 | 
			
		||||
        v-if="form.Type !== 'group'&& $i18n.locale !== 'zh'"
 | 
			
		||||
        :label="$t('trials:readingUnit:qsList:title:qsNameEn')"
 | 
			
		||||
        prop="QuestionEnName"
 | 
			
		||||
      >
 | 
			
		||||
| 
						 | 
				
			
			@ -575,7 +575,8 @@ export default {
 | 
			
		|||
        ],
 | 
			
		||||
        QuestionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
 | 
			
		||||
          { max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200` }],
 | 
			
		||||
 | 
			
		||||
        QuestionEnName:[{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
 | 
			
		||||
          {max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}],
 | 
			
		||||
        TypeValue: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
 | 
			
		||||
          { validator: validateTypeVal, trigger: 'blur' },
 | 
			
		||||
          { max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200` }],
 | 
			
		||||
| 
						 | 
				
			
			@ -717,6 +718,11 @@ export default {
 | 
			
		|||
      this.$refs.tableQsForm.validate(valid => {
 | 
			
		||||
        if (!valid) return
 | 
			
		||||
        this.loading = true
 | 
			
		||||
        if(this.form.QuestionName && !this.form.QuestionEnName){
 | 
			
		||||
          this.form.QuestionEnName = this.form.QuestionName;
 | 
			
		||||
        }else if(!this.form.QuestionName && this.form.QuestionEnName){
 | 
			
		||||
          this.form.QuestionName = this.form.QuestionEnName;
 | 
			
		||||
        }
 | 
			
		||||
        var params = Object.assign({}, this.form)
 | 
			
		||||
        params.TrialId = this.$route.query.trialId
 | 
			
		||||
        params.ReadingQuestionId = this.readingQuestionId
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue