下载功能修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
081c82283d
commit
03f9435cb9
|
|
@ -17,7 +17,8 @@
|
||||||
<el-form ref="hirAEform" :model="hirAE" label-width="120px">
|
<el-form ref="hirAEform" :model="hirAE" label-width="120px">
|
||||||
<el-form-item :label="$t('trials:inspection:pullImage:form:hirAEName')">
|
<el-form-item :label="$t('trials:inspection:pullImage:form:hirAEName')">
|
||||||
<span>{{ hirAE.CalledAE }}</span>
|
<span>{{ hirAE.CalledAE }}</span>
|
||||||
<i class="el-icon-document-copy copy" @click="copy(hirAE.CalledAE)"></i>
|
<i class="el-icon-document-copy copy"
|
||||||
|
@click="copy(`${$t('trials:inspection:pullImage:form:hirAEName')}:${hirAE.CalledAE}\n${$t('trials:inspection:pullImage:form:hirAIP')}:${hirAE.IP}\n${$t('trials:inspection:pullImage:form:hirAPort')}:${hirAE.Port}`)"></i>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('trials:inspection:pullImage:form:hirAIP')">
|
<el-form-item :label="$t('trials:inspection:pullImage:form:hirAIP')">
|
||||||
<span>{{ hirAE.IP }}</span>
|
<span>{{ hirAE.IP }}</span>
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@
|
||||||
<el-table-column align="center" prop="StudyInstanceUid" :label="$t('trials:audit:table:StudyInstanceUid')"
|
<el-table-column align="center" prop="StudyInstanceUid" :label="$t('trials:audit:table:StudyInstanceUid')"
|
||||||
show-overflow-tooltip min-width="180" sortable="custom"></el-table-column>
|
show-overflow-tooltip min-width="180" sortable="custom"></el-table-column>
|
||||||
<!--操作-->
|
<!--操作-->
|
||||||
<el-table-column :label="$t('common:action:action')" min-width="200" fixed="right">
|
<el-table-column :label="$t('common:action:action')" min-width="240" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- 影像 -->
|
<!-- 影像 -->
|
||||||
<el-button circle icon="el-icon-view" :title="$t('trials:inspection:button:image')"
|
<el-button circle icon="el-icon-view" :title="$t('trials:inspection:button:image')"
|
||||||
|
|
@ -149,6 +149,9 @@
|
||||||
<!-- 诊断报告 -->
|
<!-- 诊断报告 -->
|
||||||
<el-button circle icon="el-icon-document" @click.stop="report(scope.row)"
|
<el-button circle icon="el-icon-document" @click.stop="report(scope.row)"
|
||||||
:title="$t('trials:inspection:button:diagnosticReport')" disabled />
|
:title="$t('trials:inspection:button:diagnosticReport')" disabled />
|
||||||
|
<!-- 下载影像 -->
|
||||||
|
<el-button v-hasPermi="['trials:trialsInspection:downloadImage']" circle icon="el-icon-download"
|
||||||
|
@click="getDownloadPatientStudyInfo([scope.row])" :title="$t('trials:inspection:button:downloadImage')" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
|
|
@ -169,12 +169,15 @@
|
||||||
<el-table-column prop="LatestPushTime" :label="$t('trials:inspection:table:latestReceiveTime')"
|
<el-table-column prop="LatestPushTime" :label="$t('trials:inspection:table:latestReceiveTime')"
|
||||||
show-overflow-tooltip min-width="180" sortable="custom"></el-table-column>
|
show-overflow-tooltip min-width="180" sortable="custom"></el-table-column>
|
||||||
<!--操作-->
|
<!--操作-->
|
||||||
<el-table-column :label="$t('common:action:action')" min-width="100" fixed="right">
|
<el-table-column :label="$t('common:action:action')" min-width="140" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button circle icon="el-icon-view" :title="$t('trials:trialsInspection:button:view')"
|
<el-button circle icon="el-icon-view" :title="$t('trials:trialsInspection:button:view')"
|
||||||
@click.stop="handleOpenDialog(scope.row, 'study')" />
|
@click.stop="handleOpenDialog(scope.row, 'study')" />
|
||||||
<el-button circle v-hasPermi="['trials:trialsInspection:addTrials']" icon="el-icon-plus"
|
<el-button circle v-hasPermi="['trials:trialsInspection:addTrials']" icon="el-icon-plus"
|
||||||
:title="$t('trials:inspection:button:addTrials')" @click.stop="handleOpenDialog(scope.row, 'add')" />
|
:title="$t('trials:inspection:button:addTrials')" @click.stop="handleOpenDialog(scope.row, 'add')" />
|
||||||
|
<!-- 下载影像 -->
|
||||||
|
<el-button v-hasPermi="['trials:trialsInspection:downloadImage']" circle icon="el-icon-download"
|
||||||
|
@click="getDownloadPatientStudyInfo([scope.row])" :title="$t('trials:inspection:button:downloadImage')" />
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
circle
|
circle
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
|
|
@ -336,17 +339,23 @@ export default {
|
||||||
data.forEach(patient => {
|
data.forEach(patient => {
|
||||||
if (Array.isArray(patient.StudyList) && patient.StudyList.length > 0) {
|
if (Array.isArray(patient.StudyList) && patient.StudyList.length > 0) {
|
||||||
patient.StudyList.forEach((study) => {
|
patient.StudyList.forEach((study) => {
|
||||||
|
let arr = []
|
||||||
|
study.ModalityList.forEach(item => {
|
||||||
|
if (!arr.includes(item)) {
|
||||||
|
arr.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let str = arr.join('_')
|
||||||
|
if (study.StudyDIRPath && !study.dirHas) {
|
||||||
|
study.dirHas = true
|
||||||
|
let obj = {
|
||||||
|
name: `${study.PatientId}/${study.StudyTime.split(' ')[0]}_${str}/DICOMDIR`,
|
||||||
|
url: this.OSSclientConfig.basePath + study.StudyDIRPath,
|
||||||
|
}
|
||||||
|
files.push(obj)
|
||||||
|
}
|
||||||
if (Array.isArray(study.SeriesList) && study.SeriesList.length > 0) {
|
if (Array.isArray(study.SeriesList) && study.SeriesList.length > 0) {
|
||||||
study.SeriesList.forEach((series) => {
|
study.SeriesList.forEach((series) => {
|
||||||
if (study.StudyDIRPath && !study.dirHas) {
|
|
||||||
study.dirHas = true
|
|
||||||
let obj = {
|
|
||||||
name: `${study.PatientId}/${study.StudyTime.split(' ')[0]}_${series.Modality
|
|
||||||
}/DICOMDIR`,
|
|
||||||
url: this.OSSclientConfig.basePath + study.StudyDIRPath,
|
|
||||||
}
|
|
||||||
files.push(obj)
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
Array.isArray(series.InstanceList) &&
|
Array.isArray(series.InstanceList) &&
|
||||||
series.InstanceList.length > 0
|
series.InstanceList.length > 0
|
||||||
|
|
@ -354,8 +363,7 @@ export default {
|
||||||
series.InstanceList.forEach((instance) => {
|
series.InstanceList.forEach((instance) => {
|
||||||
let fileName = instance.FileName || instance.Path.split('/').pop()
|
let fileName = instance.FileName || instance.Path.split('/').pop()
|
||||||
let obj = {
|
let obj = {
|
||||||
name: `${study.PatientId}/${study.StudyTime.split(' ')[0]}_${series.Modality
|
name: `${study.PatientId}/${study.StudyTime.split(' ')[0]}_${str}/IMAGE/${fileName}`,
|
||||||
}/IMAGE/${fileName}`,
|
|
||||||
url: this.OSSclientConfig.basePath + instance.Path,
|
url: this.OSSclientConfig.basePath + instance.Path,
|
||||||
}
|
}
|
||||||
files.push(obj)
|
files.push(obj)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue