去除医学审核,非当前阅片人入口

uat_us
熊飞 2024-01-12 17:46:35 +08:00
parent bb948b6d09
commit 62fe758194
1 changed files with 207 additions and 207 deletions

View File

@ -1,207 +1,207 @@
<template> <template>
<el-table <el-table
ref="taskTbl" ref="taskTbl"
:data="taskList" :data="taskList"
:row-class-name="rowClass" :row-class-name="rowClass"
class="historicAssess_wrapper" class="historicAssess_wrapper"
> >
<!-- 访视/阅片期名称 --> <!-- 访视/阅片期名称 -->
<el-table-column <el-table-column
prop="VisitTaskNum" prop="VisitTaskNum"
:label="$t('trials:medicalFeedback:table:taskName')" :label="$t('trials:medicalFeedback:table:taskName')"
width="200" width="200"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.TaskName }} {{ scope.row.TaskName }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 盲态任务标识 --> <!-- 盲态任务标识 -->
<el-table-column <el-table-column
prop="TaskBlindName" prop="TaskBlindName"
:label="$t('trials:medicalFeedback:table:taskBlindName')" :label="$t('trials:medicalFeedback:table:taskBlindName')"
width="200" width="200"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
/> />
<template v-if="judgeQuestion && judgeQuestion.length > 0"> <template v-if="judgeQuestion && judgeQuestion.length > 0">
<el-table-column <el-table-column
v-for="(qs,index) in judgeQuestion" v-for="(qs,index) in judgeQuestion"
:key="qs" :key="qs"
prop="" prop=""
:label="qs" :label="qs"
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.JudgeQuestionAnswerInfoList[index] && scope.row.JudgeQuestionAnswerInfoList[index].QuestionGenre === 3 && scope.row.JudgeQuestionAnswerInfoList[index].DictionaryCode"> <span v-if="scope.row.JudgeQuestionAnswerInfoList[index] && scope.row.JudgeQuestionAnswerInfoList[index].QuestionGenre === 3 && scope.row.JudgeQuestionAnswerInfoList[index].DictionaryCode">
{{ scope.row.JudgeQuestionAnswerInfoList[index].Answer?$fd(scope.row.JudgeQuestionAnswerInfoList[index].DictionaryCode,parseInt(scope.row.JudgeQuestionAnswerInfoList[index].Answer)):'' }} {{ scope.row.JudgeQuestionAnswerInfoList[index].Answer?$fd(scope.row.JudgeQuestionAnswerInfoList[index].DictionaryCode,parseInt(scope.row.JudgeQuestionAnswerInfoList[index].Answer)):'' }}
</span> </span>
<span v-else> <span v-else>
{{ scope.row.JudgeQuestionAnswerInfoList.length>index?scope.row.JudgeQuestionAnswerInfoList[index].Answer:'' }} {{ scope.row.JudgeQuestionAnswerInfoList.length>index?scope.row.JudgeQuestionAnswerInfoList[index].Answer:'' }}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<!-- 有无更新 --> <!-- 有无更新 -->
<!-- <el-table-column <!-- <el-table-column
prop="IsGlobalChange" prop="IsGlobalChange"
:label="$t('trials:medicalFeedback:title:isGlobalChange')" :label="$t('trials:medicalFeedback:title:isGlobalChange')"
width="100" width="100"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('YesOrNo', scope.row.IsGlobalChange) }} {{ $fd('YesOrNo', scope.row.IsGlobalChange) }}
</template> </template>
</el-table-column> --> </el-table-column> -->
<!-- 当前阅片人 --> <!-- 当前阅片人 -->
<el-table-column <el-table-column
prop="ArmEnum" prop="ArmEnum"
:label="$t('trials:medicalFeedback:title:currentReader')" :label="$t('trials:medicalFeedback:title:currentReader')"
show-overflow-tooltip show-overflow-tooltip
width="100" width="100"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="scope.row.TaskId" v-if="scope.row.TaskId"
type="text" type="text"
@click="handleView(scope.row,scope.row.TaskId)" @click="handleView(scope.row,scope.row.TaskId)"
> >
{{ $fd('ArmEnum', scope.row.ArmEnum) }} {{ $fd('ArmEnum', scope.row.ArmEnum) }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
<!-- 关联阅片人 --> <!-- 关联阅片人 -->
<el-table-column <!-- <el-table-column-->
prop="OtherArmEnum" <!-- prop="OtherArmEnum"-->
:label="$t('trials:medicalFeedback:title:otherReader')" <!-- :label="$t('trials:medicalFeedback:title:otherReader')"-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
width="100" <!-- width="100"-->
> <!-- >-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-button <!-- <el-button-->
v-if="scope.row.OtherTaskId" <!-- v-if="scope.row.OtherTaskId"-->
type="text" <!-- type="text"-->
@click="handleView(scope.row,scope.row.OtherTaskId)" <!-- @click="handleView(scope.row,scope.row.OtherTaskId)"-->
> <!-- >-->
{{ $fd('ArmEnum', scope.row.OtherArmEnum) }} <!-- {{ $fd('ArmEnum', scope.row.OtherArmEnum) }}-->
</el-button> <!-- </el-button>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<!-- 关联全局任务 --> <!-- &lt;!&ndash; 关联全局任务 &ndash;&gt;-->
<el-table-column <!-- <el-table-column-->
prop="GlobalTaskName" <!-- prop="GlobalTaskName"-->
:label="$t('trials:medicalFeedback:title:relatedGlobalTask')" <!-- :label="$t('trials:medicalFeedback:title:relatedGlobalTask')"-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
width="120" <!-- width="120"-->
> <!-- >-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-button <!-- <el-button-->
v-if="scope.row.GlobalTaskId" <!-- v-if="scope.row.GlobalTaskId"-->
type="text" <!-- type="text"-->
@click="handleView(scope.row,scope.row.GlobalTaskId)" <!-- @click="handleView(scope.row,scope.row.GlobalTaskId)"-->
> <!-- >-->
{{ scope.row.GlobalTaskName }} <!-- {{ scope.row.GlobalTaskName }}-->
</el-button> <!-- </el-button>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<!-- 关联裁判任务 --> <!-- &lt;!&ndash; 关联裁判任务 &ndash;&gt;-->
<el-table-column <!-- <el-table-column-->
prop="JudgeTaskName" <!-- prop="JudgeTaskName"-->
:label="$t('trials:medicalFeedback:title:relatedadjudicationTask')" <!-- :label="$t('trials:medicalFeedback:title:relatedadjudicationTask')"-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
width="120" <!-- width="120"-->
> <!-- >-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-button <!-- <el-button-->
v-if="scope.row.JudgeTaskId" <!-- v-if="scope.row.JudgeTaskId"-->
type="text" <!-- type="text"-->
@click="handleView(scope.row,scope.row.JudgeTaskId)" <!-- @click="handleView(scope.row,scope.row.JudgeTaskId)"-->
> <!-- >-->
{{ scope.row.JudgeTaskName }} <!-- {{ scope.row.JudgeTaskName }}-->
</el-button> <!-- </el-button>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
</el-table> </el-table>
</template> </template>
<script> <script>
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
export default { export default {
name: 'VReview', name: 'VReview',
props: { props: {
auditInfo: { auditInfo: {
type: Object, type: Object,
default() { default() {
return {} return {}
} }
}, },
rowData: { rowData: {
type: Object, type: Object,
default() { default() {
return {} return {}
} }
} }
}, },
data() { data() {
return { return {
taskList: [], taskList: [],
judgeQuestion: [] judgeQuestion: []
} }
}, },
mounted() { mounted() {
this.initPage() this.initPage()
}, },
methods: { methods: {
initPage() { initPage() {
var judgeQS = [] var judgeQS = []
if (this.auditInfo.TaskList.length > 0 && this.auditInfo.TaskList[0].JudgeQuestionAnswerInfoList) { if (this.auditInfo.TaskList.length > 0 && this.auditInfo.TaskList[0].JudgeQuestionAnswerInfoList) {
this.auditInfo.TaskList[0].JudgeQuestionAnswerInfoList.map(v => { this.auditInfo.TaskList[0].JudgeQuestionAnswerInfoList.map(v => {
judgeQS.push(v.QuestionName) judgeQS.push(v.QuestionName)
}) })
} }
this.judgeQuestion = judgeQS this.judgeQuestion = judgeQS
this.taskList = this.auditInfo.TaskList this.taskList = this.auditInfo.TaskList
}, },
handleView(row, visitTaskId) { handleView(row, visitTaskId) {
var trialId = this.$route.query.trialId var trialId = this.$route.query.trialId
// var visitTaskId = type === 1 ? row.TaskId : row.OtherTaskId // var visitTaskId = type === 1 ? row.TaskId : row.OtherTaskId
var token = getToken() var token = getToken()
var criterionType = this.rowData.CriterionType var criterionType = this.rowData.CriterionType
var readingTool = this.rowData.ReadingTool var readingTool = this.rowData.ReadingTool
readingTool = isNaN(parseInt(readingTool)) ? null : parseInt(readingTool) readingTool = isNaN(parseInt(readingTool)) ? null : parseInt(readingTool)
var isReadingTaskViewInOrder = this.rowData.IsReadingTaskViewInOrder var isReadingTaskViewInOrder = this.rowData.IsReadingTaskViewInOrder
var trialReadingCriterionId = this.rowData.TrialReadingCriterionId var trialReadingCriterionId = this.rowData.TrialReadingCriterionId
var path = '' var path = ''
if (readingTool === 0) { if (readingTool === 0) {
path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}` path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`
} else { } else {
path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}` path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`
} }
const routeData = this.$router.resolve({ path }) const routeData = this.$router.resolve({ path })
window.open(routeData.href, '_blank') window.open(routeData.href, '_blank')
}, },
rowClass({ row, rowIndex }) { rowClass({ row, rowIndex }) {
if (row.IsCurrentTask) { if (row.IsCurrentTask) {
return 'highlight_row' return 'highlight_row'
} }
} }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.historicAssess_wrapper{ .historicAssess_wrapper{
.highlight_row{ .highlight_row{
color: #000; color: #000;
background-color: #ffde7b; background-color: #ffde7b;
} }
.highlight_row:hover>td { .highlight_row:hover>td {
background-color: #ffde7b !important; background-color: #ffde7b !important;
} }
} }
</style> </style>