阅片跟踪导出
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-10-22 14:53:09 +08:00
parent 5d13328c74
commit 6b1bfe0c0b
2 changed files with 113 additions and 46 deletions

View File

@ -214,3 +214,19 @@ export function getPatientList_Export(data) {
data data
}) })
} }
export function getCommonEvaluationList_Export(data) {
return requestDownload({
url: `/ExcelExport/getCommonEvaluationList_Export`,
responseType: 'blob',
method: 'post',
data
})
}
export function getCommonJudgeRatioList_Export(data) {
return requestDownload({
url: `/ExcelExport/getCommonJudgeRatioList_Export`,
responseType: 'blob',
method: 'post',
data
})
}

View File

@ -1,23 +1,27 @@
<template> <template>
<div style="text-align: right"> <div style="text-align: right">
<!--导出--> <!--导出-->
<el-button type="primary" :disabled="!(trialCriterionList.length>0)" icon="el-icon-download" size="mini" @click="handleExport(0)" style="margin-bottom: 10px"> <el-button
type="primary"
:disabled="!(trialCriterionList.length > 0)"
icon="el-icon-download"
size="mini"
@click="handleExport(0)"
style="margin-bottom: 10px"
>
{{ $t('common:button:export') }} {{ $t('common:button:export') }}
</el-button> </el-button>
<el-tabs type="border-card" v-model="TrialReadingCriterionId"> <el-tabs type="border-card" v-model="TrialReadingCriterionId">
<el-tab-pane :label="i.TrialReadingCriterionName" :name="i.TrialReadingCriterionId" v-for="i of trialCriterionList" :key="i.TrialReadingCriterionId"> <el-tab-pane
<el-table :label="i.TrialReadingCriterionName"
v-loading="loading" :name="i.TrialReadingCriterionId"
:data="list" v-for="i of trialCriterionList"
border :key="i.TrialReadingCriterionId"
stripe >
> <el-table v-loading="loading" :data="list" border stripe>
<el-table-column <el-table-column label="" :min-width="50">
label=""
:min-width="50"
>
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index + 1}} {{ scope.$index + 1 }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 文件名称 --> <!-- 文件名称 -->
@ -52,73 +56,120 @@
</template> </template>
<script> <script>
import { getReadingTaskList_Export, getTrialReadingCriterionCanExportDocumentList, getOverallTumorEvaluationList_Export, getEvaluationOfTumorEfficacy_Export, getDetailedOfEvaluatedLesion_Export } from '@/api/export' import {
getCommonEvaluationList_Export,
getCommonJudgeRatioList_Export,
getReadingTaskList_Export,
getTrialReadingCriterionCanExportDocumentList,
getOverallTumorEvaluationList_Export,
getEvaluationOfTumorEfficacy_Export,
getDetailedOfEvaluatedLesion_Export,
} from '@/api/export'
import { getTrialCriterionList } from '@/api/trials/reading' import { getTrialCriterionList } from '@/api/trials/reading'
export default { export default {
name: "exportList", name: 'exportList',
data() { data() {
return { return {
loading: false, loading: false,
trialCriterionList: [], trialCriterionList: [],
TrialReadingCriterionId: null, TrialReadingCriterionId: null,
trialId: null, trialId: null,
list: [] list: [],
} }
}, },
props: { props: {
data: { data: {
type: Object, type: Object,
default() { return {} } default() {
} return {}
},
},
}, },
watch: { watch: {
TrialReadingCriterionId(v) { TrialReadingCriterionId(v) {
if (v === '0') return if (v === '0') return
this.loading = true this.loading = true
getTrialReadingCriterionCanExportDocumentList({TrialReadingCriterionId: v}).then(res => { getTrialReadingCriterionCanExportDocumentList({
this.list = res.Result TrialReadingCriterionId: v,
this.loading = false })
}).catch(() => { this.loading = true }) .then((res) => {
} this.list = res.Result
this.loading = false
})
.catch(() => {
this.loading = true
})
},
}, },
mounted() { mounted() {
this.trialId =this.$route.query.trialId this.trialId = this.$route.query.trialId
this.getTrialCriterionList() this.getTrialCriterionList()
}, },
methods: { methods: {
handleExport(type) { handleExport(type) {
var searchData = {...this.data} var searchData = { ...this.data }
searchData.TrialReadingCriterionId = this.TrialReadingCriterionId searchData.TrialReadingCriterionId = this.TrialReadingCriterionId
switch (type) { switch (type) {
case 0: case 0:
getReadingTaskList_Export(searchData).then(res => { getReadingTaskList_Export(searchData)
}).catch(() => { this.loading = false }) .then((res) => {})
break; .catch(() => {
case 1: this.loading = false
getOverallTumorEvaluationList_Export(searchData).then(res => { })
}).catch(() => { this.loading = false }) break
break; case 4:
case 2: searchData.ReadingExportType = 0
getEvaluationOfTumorEfficacy_Export(searchData).then(res => { getCommonEvaluationList_Export(searchData)
}).catch(() => { this.loading = false }) .then((res) => {})
.catch(() => {
this.loading = false
})
break
case 5:
searchData.ReadingExportType = 1
getCommonEvaluationList_Export(searchData)
.then((res) => {})
.catch(() => {
this.loading = false
})
break
case 6:
searchData.ReadingExportType = 2
getCommonEvaluationList_Export(searchData)
.then((res) => {})
.catch(() => {
this.loading = false
})
break
case 7:
getCommonJudgeRatioList_Export(searchData)
.then((res) => {})
.catch(() => {
this.loading = false
})
break
case 8:
getCommonJudgeRatioList_Export(searchData)
.then((res) => {})
.catch(() => {
this.loading = false
})
break break
case 3:
getDetailedOfEvaluatedLesion_Export(searchData).then(res => {
}).catch(() => { this.loading = false })
break;
} }
}, },
getTrialCriterionList() { getTrialCriterionList() {
getTrialCriterionList(this.trialId).then(res => { getTrialCriterionList(this.trialId)
this.trialCriterionList = res.Result .then((res) => {
this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId this.trialCriterionList = res.Result
}).catch(() => {}) this.TrialReadingCriterionId =
} this.trialCriterionList[0].TrialReadingCriterionId
} })
.catch(() => {})
},
},
} }
</script> </script>
<style scoped> <style scoped>
</style> </style>