dicom预览更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-07-26 13:21:12 +08:00
parent 16581bd7b9
commit 8b6714806e
5 changed files with 8 additions and 6 deletions

View File

@ -212,8 +212,10 @@ export default {
this.toolState.clipPlaying = false this.toolState.clipPlaying = false
const element = this.$refs.canvas const element = this.$refs.canvas
cornerstone.enable(element) cornerstone.enable(element)
cornerstoneTools.stopClip(this.canvas)
this.toolState.clipPlaying = false
this.loading = true this.loading = true
cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex]) cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex])
.then(image => { .then(image => {
this.loading = false this.loading = false

View File

@ -155,7 +155,7 @@ import store from '@/store'
import { changeURLStatic } from '@/utils/history.js' import { changeURLStatic } from '@/utils/history.js'
cornerstoneWADOImageLoader.external.dicomParser = dicomParser cornerstoneWADOImageLoader.external.dicomParser = dicomParser
cornerstoneWADOImageLoader.external.cornerstone = cornerstone cornerstoneWADOImageLoader.external.cornerstone = cornerstone
const maximumSizeInBytes = 1024 * 1024 * 1024 * 3// 3 GB const maximumSizeInBytes = 1024 * 1024 * 1024 * 6
export default { export default {
components: { components: {
'dicom-viewer': dicomViewer 'dicom-viewer': dicomViewer

View File

@ -168,7 +168,7 @@ import store from '@/store'
import SrList from './SrList' import SrList from './SrList'
cornerstoneWADOImageLoader.external.dicomParser = dicomParser cornerstoneWADOImageLoader.external.dicomParser = dicomParser
cornerstoneWADOImageLoader.external.cornerstone = cornerstone cornerstoneWADOImageLoader.external.cornerstone = cornerstone
const maximumSizeInBytes = 1024 * 1024 * 1024 * 3 const maximumSizeInBytes = 1024 * 1024 * 1024 * 6
cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes) cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes)
export default { export default {
name: 'StudyList', name: 'StudyList',

View File

@ -914,9 +914,9 @@ export default {
this.getWwcTpl() this.getWwcTpl()
// cornerstone.imageCache.setMaximumSizeBytes(0) // cornerstone.imageCache.setMaximumSizeBytes(0)
const maximumSizeInBytes = 1024 * 1024 * 1024 * 3 // const maximumSizeInBytes = 1024 * 1024 * 1024 * 6
// const maximumSizeInBytes = 1024 * 1024 * 500 // const maximumSizeInBytes = 1024 * 1024 * 500
cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes) // cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes)
this.customWwc = { this.customWwc = {
visible: false, visible: false,
title: this.$t('trials:reading:dagTitle:wwwcCustom') title: this.$t('trials:reading:dagTitle:wwwcCustom')

View File

@ -167,7 +167,7 @@ import store from '@/store'
import SrList from './../components/SrList' import SrList from './../components/SrList'
cornerstoneWADOImageLoader.external.dicomParser = dicomParser cornerstoneWADOImageLoader.external.dicomParser = dicomParser
cornerstoneWADOImageLoader.external.cornerstone = cornerstone cornerstoneWADOImageLoader.external.cornerstone = cornerstone
const maximumSizeInBytes = 1024 * 1024 * 1024 * 3 const maximumSizeInBytes = 1024 * 1024 * 1024 * 6
cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes) cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes)
export default { export default {
name: 'StudyList', name: 'StudyList',