Merge branch 'uat'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
6980cd275e
|
@ -1,39 +1,19 @@
|
|||
<template>
|
||||
<el-dialog
|
||||
:visible.sync="visible"
|
||||
:fullscreen="true"
|
||||
:close-on-click-modal="false"
|
||||
:before-close="beforeClose"
|
||||
:append-to-body="true"
|
||||
v-loading="btnLoading"
|
||||
class="downloadDicomAndNonedicom"
|
||||
>
|
||||
<el-dialog :visible.sync="visible" :fullscreen="true" :close-on-click-modal="false" :before-close="beforeClose"
|
||||
:append-to-body="true" v-loading="btnLoading" class="downloadDicomAndNonedicom">
|
||||
<span slot="title">{{ title }}</span>
|
||||
<div class="top">
|
||||
<span>{{ $t('download:top:title') }}</span>
|
||||
<div class="btnBox">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
v-if="hasDicom"
|
||||
@click.stop="getIRReadingDownloadStudyInfo('dicom')"
|
||||
>
|
||||
<el-button type="primary" size="mini" v-if="hasDicom" @click.stop="getIRReadingDownloadStudyInfo('dicom')">
|
||||
{{ $t('download:button:downloadDicom') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
v-if="hasNonedicom"
|
||||
@click.stop="getIRReadingDownloadStudyInfo('noneDicom')"
|
||||
>
|
||||
<el-button type="primary" size="mini" v-if="hasNonedicom"
|
||||
@click.stop="getIRReadingDownloadStudyInfo('noneDicom')">
|
||||
{{ $t('download:button:downloadNonedicom') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
v-if="hasDicom || hasNonedicom"
|
||||
@click.stop="getIRReadingDownloadStudyInfo('all')"
|
||||
>
|
||||
<el-button type="primary" size="mini" v-if="hasDicom || hasNonedicom"
|
||||
@click.stop="getIRReadingDownloadStudyInfo('all')">
|
||||
{{ $t('download:button:downloadAll') }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
@ -43,16 +23,9 @@
|
|||
<div v-html="$t('download:tip:message')"></div>
|
||||
</div>
|
||||
<!--上传列表@selection-change="handleSelectionChange"-->
|
||||
<el-table
|
||||
ref="dicomFilesTable"
|
||||
v-adaptive="{ bottomOffset: 85 }"
|
||||
height="100"
|
||||
:data="list"
|
||||
:loading="loading"
|
||||
class="dicomFiles-table"
|
||||
@sort-change="handleSortByColumn"
|
||||
:default-sort="{ prop: 'TaskBlindName', order: 'descending' }"
|
||||
>
|
||||
<el-table ref="dicomFilesTable" v-adaptive="{ bottomOffset: 85 }" height="100" :data="list" :loading="loading"
|
||||
class="dicomFiles-table" @sort-change="handleSortByColumn"
|
||||
:default-sort="{ prop: 'TaskBlindName', order: 'descending' }">
|
||||
<!-- <el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
|
@ -60,50 +33,28 @@
|
|||
/> -->
|
||||
<el-table-column type="index" width="40" />
|
||||
<!--受试者-->
|
||||
<el-table-column
|
||||
:label="$t('download:table:subjectCode')"
|
||||
min-width="130"
|
||||
prop="SubjectCode"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column :label="$t('download:table:subjectCode')" min-width="130" prop="SubjectCode"
|
||||
show-overflow-tooltip />
|
||||
<!--任务名称-->
|
||||
<el-table-column
|
||||
:label="$t('download:table:taskName')"
|
||||
min-width="130"
|
||||
show-overflow-tooltip
|
||||
prop="TaskBlindName"
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column :label="$t('download:table:taskName')" min-width="130" show-overflow-tooltip prop="TaskBlindName"
|
||||
sortable="custom" />
|
||||
<!--检查类型-->
|
||||
<el-table-column
|
||||
:label="$t('download:table:studyType')"
|
||||
min-width="130"
|
||||
show-overflow-tooltip
|
||||
prop="IsDicom"
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column :label="$t('download:table:studyType')" min-width="130" show-overflow-tooltip prop="IsDicom"
|
||||
sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ $fd('IsDicom', scope.row.IsDicom) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('download:table:orginalStudyListNum')"
|
||||
min-width="150"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column :label="$t('download:table:orginalStudyListNum')" min-width="150" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="
|
||||
(scope.row.IsDicom &&
|
||||
scope.row.DicomStudyList &&
|
||||
scope.row.DicomStudyList.length >= 1) ||
|
||||
(!scope.row.IsDicom &&
|
||||
scope.row.NoneDicomStudyList &&
|
||||
scope.row.NoneDicomStudyList.length >= 1)
|
||||
"
|
||||
type="text"
|
||||
@click="handleOpenDialog(scope.row)"
|
||||
>
|
||||
<el-button v-if="
|
||||
(scope.row.IsDicom &&
|
||||
scope.row.DicomStudyList &&
|
||||
scope.row.DicomStudyList.length >= 1) ||
|
||||
(!scope.row.IsDicom &&
|
||||
scope.row.NoneDicomStudyList &&
|
||||
scope.row.NoneDicomStudyList.length >= 1)
|
||||
" type="text" @click="handleOpenDialog(scope.row)">
|
||||
<span>{{
|
||||
scope.row.IsDicom
|
||||
? scope.row.DicomStudyList.length
|
||||
|
@ -113,37 +64,19 @@
|
|||
<span v-else>0</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('common:action:action')"
|
||||
fixed="right"
|
||||
width="150"
|
||||
>
|
||||
<el-table-column :label="$t('common:action:action')" fixed="right" width="150">
|
||||
<template slot-scope="scope">
|
||||
<!--预览--->
|
||||
<el-button
|
||||
circle
|
||||
icon="el-icon-view"
|
||||
:title="$t('download:button:preview')"
|
||||
@click.stop="preview(scope.row)"
|
||||
/>
|
||||
<el-button circle icon="el-icon-view" :title="$t('download:button:preview')"
|
||||
@click.stop="preview(scope.row)" />
|
||||
<!--下载--->
|
||||
<el-button
|
||||
circle
|
||||
icon="el-icon-download"
|
||||
:title="$t('download:button:download')"
|
||||
@click.stop="getIRReadingDownloadStudyInfo('one', scope.row)"
|
||||
/>
|
||||
<el-button circle icon="el-icon-download" :title="$t('download:button:download')"
|
||||
@click.stop="getIRReadingDownloadStudyInfo('one', scope.row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<study-view
|
||||
v-if="model_cfg.visible"
|
||||
:model_cfg="model_cfg"
|
||||
:modelList="modelList"
|
||||
:bodyPart="bodyPart"
|
||||
:IsDicom="IsDicom"
|
||||
:visitTaskId="modelTaskId"
|
||||
/>
|
||||
<study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :modelList="modelList" :bodyPart="bodyPart"
|
||||
:IsDicom="IsDicom" :visitTaskId="modelTaskId" />
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -358,7 +291,8 @@ export default {
|
|||
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
|
||||
}
|
||||
if (this.IsReadingTaskViewInOrder === 0) {
|
||||
name = `${list[0].TaskBlindName}.zip`
|
||||
// name = `${list[0].TaskBlindName}.zip`
|
||||
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
|
||||
}
|
||||
list.forEach((data) => {
|
||||
if (data.StudyList && data.StudyList.length > 0) {
|
||||
|
@ -370,11 +304,9 @@ export default {
|
|||
series.InstancePathList.forEach((instance) => {
|
||||
let fileName = instance.Path.split('/').pop()
|
||||
let obj = {
|
||||
name: `${data.SubjectCode}/${
|
||||
data.TaskBlindName
|
||||
}/${this.$fd('IsDicom', true)}/${
|
||||
study.StudyCode
|
||||
}/${fileName}`,
|
||||
name: `${data.SubjectCode}/${data.TaskBlindName
|
||||
}/${this.$fd('IsDicom', true)}/${study.StudyCode
|
||||
}/${fileName}`,
|
||||
url: this.OSSclientConfig.basePath + instance.Path,
|
||||
}
|
||||
if (this.IsReadingTaskViewInOrder === 0) {
|
||||
|
@ -500,10 +432,12 @@ export default {
|
|||
justify-content: space-between;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.tip {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin-top: 5px;
|
||||
|
||||
i {
|
||||
margin: 3px 5px 0 0;
|
||||
}
|
||||
|
|
|
@ -936,19 +936,19 @@ export default {
|
|||
) {
|
||||
++instanceIndex
|
||||
}
|
||||
if (instanceIndex >= fileList.length) {
|
||||
fileList.push({
|
||||
instanceUid: instanceUid,
|
||||
file: file,
|
||||
})
|
||||
}
|
||||
scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||
scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||
(prev, next) => {
|
||||
return prev + next.file.size
|
||||
},
|
||||
0
|
||||
)
|
||||
// if (instanceIndex >= fileList.length) {
|
||||
// fileList.push({
|
||||
// instanceUid: instanceUid,
|
||||
// file: file,
|
||||
// })
|
||||
// }
|
||||
// scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||
// scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||
// (prev, next) => {
|
||||
// return prev + next.file.size
|
||||
// },
|
||||
// 0
|
||||
// )
|
||||
|
||||
var seriesUid = data.string('x0020000e')
|
||||
var seriesList = scope.uploadQueues[studyIndex].seriesList
|
||||
|
@ -1046,6 +1046,19 @@ export default {
|
|||
}
|
||||
instanceList.push(instanceItem)
|
||||
}
|
||||
if (instanceIndex >= fileList.length) {
|
||||
fileList.push({
|
||||
instanceUid: instanceUid,
|
||||
file: file,
|
||||
})
|
||||
}
|
||||
scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||
scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||
(prev, next) => {
|
||||
return prev + next.file.size
|
||||
},
|
||||
0
|
||||
)
|
||||
resolve()
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
|
|
@ -952,19 +952,19 @@ export default {
|
|||
) {
|
||||
++instanceIndex
|
||||
}
|
||||
if (instanceIndex >= fileList.length) {
|
||||
fileList.push({
|
||||
instanceUid: instanceUid,
|
||||
file: file,
|
||||
})
|
||||
}
|
||||
scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||
scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||
(prev, next) => {
|
||||
return prev + next.file.size
|
||||
},
|
||||
0
|
||||
)
|
||||
// if (instanceIndex >= fileList.length) {
|
||||
// fileList.push({
|
||||
// instanceUid: instanceUid,
|
||||
// file: file,
|
||||
// })
|
||||
// }
|
||||
// scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||
// scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||
// (prev, next) => {
|
||||
// return prev + next.file.size
|
||||
// },
|
||||
// 0
|
||||
// )
|
||||
|
||||
var seriesUid = data.string('x0020000e')
|
||||
var seriesList = scope.uploadQueues[studyIndex].seriesList
|
||||
|
@ -1065,6 +1065,19 @@ export default {
|
|||
}
|
||||
instanceList.push(instanceItem)
|
||||
}
|
||||
if (instanceIndex >= fileList.length) {
|
||||
fileList.push({
|
||||
instanceUid: instanceUid,
|
||||
file: file,
|
||||
})
|
||||
}
|
||||
scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||
scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||
(prev, next) => {
|
||||
return prev + next.file.size
|
||||
},
|
||||
0
|
||||
)
|
||||
resolve()
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
|
Loading…
Reference in New Issue