135 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			135 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
| <template>
 | |
|   <el-table
 | |
|     ref="taskTbl"
 | |
|     :data="taskList"
 | |
|     :row-class-name="rowClass"
 | |
|     class="historicAssess_wrapper"
 | |
|   >
 | |
|     <el-table-column
 | |
|       prop="VisitTaskNum"
 | |
|       label="访视/阅片期名称"
 | |
|       width="200"
 | |
|       sortable="custom"
 | |
|       show-overflow-tooltip
 | |
|     >
 | |
|       <template slot-scope="scope">
 | |
|         {{ scope.row.TaskName }}
 | |
|       </template>
 | |
|     </el-table-column>
 | |
|     <!-- <el-table-column
 | |
|       prop="EvaluationResult"
 | |
|       label="整体评估结果"
 | |
|       width="180"
 | |
|     /> -->
 | |
|     <!-- <template v-for="i in judgeQuestionL">
 | |
|       <el-table-column :key="i" :prop="JudgeInfoList[i].Answer" :label="JudgeInfoList[i].QuestionName" />
 | |
|     </template> -->
 | |
|     <el-table-column
 | |
|       v-for="(qs,index) in judgeQuestion"
 | |
|       :key="qs"
 | |
|       prop=""
 | |
|       :label="qs"
 | |
|       show-overflow-tooltip
 | |
|       width="150"
 | |
|     >
 | |
|       <template slot-scope="scope">
 | |
|         {{ scope.row.JudgeQuestionAnswerInfoList.length>index?scope.row.JudgeQuestionAnswerInfoList[index].Answer:'' }}
 | |
|       </template>
 | |
|     </el-table-column>
 | |
| 
 | |
|     <el-table-column
 | |
|       v-if="armEnum===3"
 | |
|       prop="ArmEnum"
 | |
|       label="阅片人"
 | |
|       show-overflow-tooltip
 | |
|       width="150"
 | |
|     >
 | |
|       <template slot-scope="scope">
 | |
|         {{ $fd('ArmEnum', scope.row.ArmEnum) }}
 | |
|       </template>
 | |
|     </el-table-column>
 | |
|     <el-table-column
 | |
|       :label="$t('common:action:action')"
 | |
|       width="200"
 | |
|     >
 | |
|       <template slot-scope="scope">
 | |
|         <el-button
 | |
|           circle
 | |
|           title="查看详情"
 | |
|           icon="el-icon-view"
 | |
|           @click="handleView(scope.row,1)"
 | |
|         />
 | |
|         <!-- 查看关联阅片人评估 -->
 | |
|         <el-button
 | |
|           v-if="readingType === 2 && scope.row.ArmEnum !== 3"
 | |
|           circle
 | |
|           title="查看关联阅片人评估"
 | |
|           icon="el-icon-view"
 | |
|           :disabled="!!!scope.row.OtherTaskId"
 | |
|           @click="handleView(scope.row,2)"
 | |
|         />
 | |
|       </template>
 | |
|     </el-table-column>
 | |
|   </el-table>
 | |
| </template>
 | |
| <script>
 | |
| import { getToken } from '@/utils/auth'
 | |
| export default {
 | |
|   name: 'HistoricAssessment',
 | |
|   props: {
 | |
|     taskList: {
 | |
|       type: Array,
 | |
|       default() {
 | |
|         return []
 | |
|       }
 | |
|     },
 | |
|     judgeQuestion: {
 | |
|       type: Array,
 | |
|       default() {
 | |
|         return []
 | |
|       }
 | |
|     },
 | |
|     armEnum: {
 | |
|       type: Number,
 | |
|       required: true
 | |
|     },
 | |
|     readingType: {
 | |
|       type: Number,
 | |
|       required: true
 | |
|     }
 | |
|   },
 | |
|   data() {
 | |
|     return {
 | |
|     }
 | |
|   },
 | |
|   methods: {
 | |
|     handleView(row, type) {
 | |
|       var trialId = this.$route.query.trialId
 | |
|       var token = getToken()
 | |
|       var visitTaskId = type === 1 ? row.TaskId : row.OtherTaskId
 | |
|       const routeData = this.$router.resolve({
 | |
|         path: `/noneDicomReading?subjectId=${row.SubjectId}&trialId=${trialId}&visitTaskId=${visitTaskId}&TokenKey=${token}&isReadingShowPreviousResults=false`
 | |
|       })
 | |
|       window.open(routeData.href, '_blank')
 | |
|     },
 | |
|     rowClass({ row, rowIndex }) {
 | |
|       if (row.IsCurrentTask) {
 | |
|         return 'highlight_row'
 | |
|       }
 | |
|     }
 | |
|   }
 | |
| 
 | |
| }
 | |
| </script>
 | |
| <style lang="scss">
 | |
| .historicAssess_wrapper{
 | |
|   .highlight_row{
 | |
|     color: #000;
 | |
|     background-color: #ffde7b;
 | |
|   }
 | |
|   .highlight_row:hover>td {
 | |
|     background-color: #ffde7b !important;
 | |
|   }
 | |
| }
 | |
| </style>
 |