77 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			77 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
<template>
 | 
						|
  <el-form>
 | 
						|
    <el-tabs type="border-card" v-model="index" @tab-click="tabClick()">
 | 
						|
      <el-tab-pane v-for="item of CriterionList" :key="item.ReadingQuestionCriterionTrialId">
 | 
						|
        <span slot="label">{{item.ReadingQuestionCriterionTrialName}}</span>
 | 
						|
        <div v-for="item of QuestionList" :key="item">
 | 
						|
          {{item.QuestionName}}
 | 
						|
        </div>
 | 
						|
      </el-tab-pane>
 | 
						|
    </el-tabs>
 | 
						|
    <div class="base-dialog-footer" style="text-align:right;margin-top:10px;">
 | 
						|
      <!-- 取消 -->
 | 
						|
      <el-button
 | 
						|
        :disabled="btnLoading"
 | 
						|
        size="small"
 | 
						|
        type="primary"
 | 
						|
        @click=""
 | 
						|
      >
 | 
						|
        {{ $t('common:button:cancel') }}
 | 
						|
      </el-button>
 | 
						|
      <!-- 保存 -->
 | 
						|
      <el-button size="small" type="primary" :loading="btnLoading" @click="">
 | 
						|
        {{ $t('common:button:save') }}
 | 
						|
      </el-button>
 | 
						|
    </div>
 | 
						|
  </el-form>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import { getTrialConfirmCriterionList, getTrialCriterionJudgeQuestionList, setTrialCriterionJudgeQuestionAnswerGroup } from '@/api/trials/reading'
 | 
						|
export default {
 | 
						|
  data() {
 | 
						|
    return {
 | 
						|
      CriterionList: [],
 | 
						|
      QuestionList: [],
 | 
						|
      ReadingQuestionCriterionTrialId: null,
 | 
						|
      btnLoading: false,
 | 
						|
      loading: false,
 | 
						|
      index: 0
 | 
						|
    }
 | 
						|
  },
 | 
						|
  watch: {
 | 
						|
    ReadingQuestionCriterionTrialId(v) {
 | 
						|
      getTrialCriterionJudgeQuestionList({
 | 
						|
        ReadingQuestionCriterionTrialId: v
 | 
						|
      }).then(res => {
 | 
						|
        this.QuestionList = res.Result
 | 
						|
      })
 | 
						|
    }
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    tabClick(v) {
 | 
						|
      this.ReadingQuestionCriterionTrialId = this.CriterionList[this.index].ReadingQuestionCriterionTrialId
 | 
						|
    },
 | 
						|
    getList() {
 | 
						|
      getTrialConfirmCriterionList({
 | 
						|
        TrialId: this.$route.query.trialId
 | 
						|
      }).then(res => {
 | 
						|
        this.CriterionList = res.Result
 | 
						|
        if (this.CriterionList.length) {
 | 
						|
          this.ReadingQuestionCriterionTrialId = this.CriterionList[0].ReadingQuestionCriterionTrialId
 | 
						|
        } else {
 | 
						|
          this.$alert('请先去确定阅片标准裁判问题配置')
 | 
						|
        }
 | 
						|
      })
 | 
						|
    }
 | 
						|
  },
 | 
						|
  mounted() {
 | 
						|
    this.getList()
 | 
						|
  }
 | 
						|
}
 | 
						|
</script>
 | 
						|
 | 
						|
<style scoped>
 | 
						|
 | 
						|
</style>
 |