系统标准添加上传下载
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f58fa6011b
commit
6a3068f942
|
@ -352,7 +352,44 @@
|
|||
<div class="text">{{ $t('trials:reading:button:reset') }}</div>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
|
||||
<el-tooltip
|
||||
v-if="trialCriterion.ImageUploadEnum > 0"
|
||||
v-hasPermi="['role:ir']"
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="$t('trials:reading:button:upload')"
|
||||
placement="bottom"
|
||||
>
|
||||
<div class="tool-wrapper">
|
||||
<div class="icon" @click.prevent="openUploadImage('upload')">
|
||||
<i class="el-icon-upload2 svg-icon" />
|
||||
</div>
|
||||
<div class="text">{{ $t('trials:reading:button:upload') }}</div>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-if="trialCriterion.ImageDownloadEnum > 0"
|
||||
v-hasPermi="[
|
||||
'role:ir',
|
||||
'role:mim',
|
||||
'role:mc',
|
||||
'role:pm',
|
||||
'role:apm',
|
||||
'role:ea',
|
||||
'role:qa',
|
||||
]"
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="$t('trials:reading:button:download')"
|
||||
placement="bottom"
|
||||
>
|
||||
<div class="tool-wrapper">
|
||||
<div class="icon" @click.prevent="openUploadImage('download')">
|
||||
<i class="el-icon-download svg-icon" />
|
||||
</div>
|
||||
<div class="text">{{ $t('trials:reading:button:download') }}</div>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<div style="margin-left:auto;">
|
||||
<div style="padding:5px">
|
||||
<!-- 手册 -->
|
||||
|
@ -676,6 +713,20 @@
|
|||
</el-form-item>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
<upload-dicom-and-nonedicom
|
||||
v-if="uploadImageVisible"
|
||||
:SubjectId="uploadSubjectId"
|
||||
:SubjectCode="uploadSubjectCode"
|
||||
:Criterion="uploadTrialCriterion"
|
||||
:visible.sync="uploadImageVisible"
|
||||
/>
|
||||
<download-dicom-and-nonedicom
|
||||
v-if="downloadImageVisible"
|
||||
:SubjectId="uploadSubjectId"
|
||||
:SubjectCode="uploadSubjectCode"
|
||||
:Criterion="uploadTrialCriterion"
|
||||
:visible.sync="downloadImageVisible"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -707,6 +758,9 @@ import WL from './WL'
|
|||
import Others from './Others'
|
||||
import DicomEvent from './DicomEvent'
|
||||
import html2canvas from 'html2canvas'
|
||||
import uploadDicomAndNonedicom from '@/components/uploadDicomAndNonedicom'
|
||||
import downloadDicomAndNonedicom from '@/components/downloadDicomAndNonedicom'
|
||||
import { getCriterionReadingInfo } from '@/api/trials'
|
||||
export default {
|
||||
name: 'DicomViewer',
|
||||
components: {
|
||||
|
@ -723,7 +777,9 @@ export default {
|
|||
IRecistQuestionList,
|
||||
LuganoQuestionList,
|
||||
IVUSList,
|
||||
OCTList
|
||||
OCTList,
|
||||
'download-dicom-and-nonedicom': downloadDicomAndNonedicom,
|
||||
'upload-dicom-and-nonedicom': uploadDicomAndNonedicom,
|
||||
},
|
||||
props: {
|
||||
isShow: {
|
||||
|
@ -865,7 +921,15 @@ export default {
|
|||
activeCanvasWC: null,
|
||||
activeTaskInfo: {},
|
||||
clipPlaying: false,
|
||||
fps: 15
|
||||
fps: 15,
|
||||
trialCriterion: {},
|
||||
// 上传
|
||||
downloadImageVisible: false,
|
||||
uploadImageVisible: false,
|
||||
uploadSubjectId: null,
|
||||
uploadSubjectCode: null,
|
||||
uploadTrialCriterion: {},
|
||||
uploadStatus: 'upload',
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -938,6 +1002,7 @@ export default {
|
|||
mounted() {
|
||||
this.getHotKeys()
|
||||
this.getWwcTpl()
|
||||
this.getTrialCriterion()
|
||||
// cornerstone.imageCache.setMaximumSizeBytes(0)
|
||||
|
||||
// const maximumSizeInBytes = 1024 * 1024 * 1024 // 1 GB
|
||||
|
@ -1092,6 +1157,23 @@ export default {
|
|||
})
|
||||
},
|
||||
methods: {
|
||||
getTrialCriterion() {
|
||||
getCriterionReadingInfo({
|
||||
TrialId: this.trialId || this.$route.query.trialId,
|
||||
TrialReadingCriterionId: this.trialReadingCriterionId || this.$route.query.TrialReadingCriterionId,
|
||||
})
|
||||
.then((res) => {
|
||||
this.trialCriterion = res.Result
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
openUploadImage(status) {
|
||||
this.uploadSubjectCode = this.$route.query.subjectCode
|
||||
this.uploadSubjectId = this.$route.query.subjectId
|
||||
this.uploadTrialCriterion = this.trialCriterion
|
||||
this.uploadStatus = status
|
||||
this[`${status}ImageVisible`] = true
|
||||
},
|
||||
async getWwcTpl() {
|
||||
// const loading = this.$loading({ fullscreen: true })
|
||||
try {
|
||||
|
|
|
@ -473,7 +473,7 @@
|
|||
</div>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-if="trialCriterion.ImageUploadEnum > 0 && !trialCriterion.IsSign"
|
||||
v-if="trialCriterion.ImageUploadEnum > 0"
|
||||
v-hasPermi="['role:ir']"
|
||||
class="item"
|
||||
effect="dark"
|
||||
|
@ -694,7 +694,6 @@ import DicomEvent from './../components/DicomEvent'
|
|||
import { mapGetters } from 'vuex'
|
||||
import store from '@/store'
|
||||
import { getDoctorShortcutKey, getUserWLTemplateList } from '@/api/user'
|
||||
import uploadImage from '@/components/uploadImage'
|
||||
import uploadDicomAndNonedicom from '@/components/uploadDicomAndNonedicom'
|
||||
import downloadDicomAndNonedicom from '@/components/downloadDicomAndNonedicom'
|
||||
import { getCriterionReadingInfo } from '@/api/trials'
|
||||
|
@ -708,7 +707,6 @@ export default {
|
|||
Others,
|
||||
Manuals,
|
||||
MeasurementList,
|
||||
'upload-image': uploadImage,
|
||||
'download-dicom-and-nonedicom': downloadDicomAndNonedicom,
|
||||
'upload-dicom-and-nonedicom': uploadDicomAndNonedicom,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue