修改下载单个检查下的影像
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
parent
b409d6696f
commit
653d953ff8
|
@ -156,7 +156,7 @@ export default {
|
||||||
showSeriesList: []
|
showSeriesList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created: function() {
|
||||||
this.type = this.$router.currentRoute.query.type ? this.$router.currentRoute.query.type : ''
|
this.type = this.$router.currentRoute.query.type ? this.$router.currentRoute.query.type : ''
|
||||||
|
|
||||||
this.visitNum = this.$router.currentRoute.query.visitNum ? parseInt(this.$router.currentRoute.query.visitNum) : 0
|
this.visitNum = this.$router.currentRoute.query.visitNum ? parseInt(this.$router.currentRoute.query.visitNum) : 0
|
||||||
|
@ -176,28 +176,6 @@ export default {
|
||||||
this.loadStudy()
|
this.loadStudy()
|
||||||
} else if (this.type === 'Share') {
|
} else if (this.type === 'Share') {
|
||||||
this.loadStudy()
|
this.loadStudy()
|
||||||
try {
|
|
||||||
this.type = this.$route.query.type ? this.$route.query.type : ''
|
|
||||||
this.visitNum = this.$router.currentRoute.query.visitNum ? parseInt(this.$router.currentRoute.query.visitNum) : 0
|
|
||||||
cornerstone.events.addEventListener('cornerstoneimageloaded', this.cornerstoneImageLoaded)
|
|
||||||
// cornerstone.events.addEventListener('datasetscachechanged', this.datasetsCacheChanged)
|
|
||||||
if (this.$router.currentRoute.query.TokenKey) {
|
|
||||||
store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey)
|
|
||||||
changeURLStatic('TokenKey', '')
|
|
||||||
}
|
|
||||||
this.studyId = this.$router.currentRoute.query.studyId
|
|
||||||
if (this.type === 'Series') {
|
|
||||||
// this.initStudy()
|
|
||||||
this.showDelete = parseInt(this.$router.currentRoute.query.showDelete)
|
|
||||||
this.initSeries()
|
|
||||||
} else if (this.type === 'Study') {
|
|
||||||
this.showDelete = parseInt(this.$router.currentRoute.query.showDelete)
|
|
||||||
this.loadStudy()
|
|
||||||
} else if (this.type === 'Share') {
|
|
||||||
this.loadStudy()
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.log(e)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
@ -270,59 +248,55 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
initSeries() {
|
initSeries() {
|
||||||
try {
|
var scope = this
|
||||||
console.log(0)
|
this.studyCode = this.$router.currentRoute.query.studyCode
|
||||||
var scope = this
|
this.modality = this.$router.currentRoute.query.modality
|
||||||
this.studyCode = this.$router.currentRoute.query.studyCode
|
this.seriesCount = 1
|
||||||
this.modality = this.$router.currentRoute.query.modality
|
this.description = this.$router.currentRoute.query.description
|
||||||
this.seriesCount = 1
|
var seriesId = this.$router.currentRoute.query.seriesId
|
||||||
this.description = this.$router.currentRoute.query.description
|
var seriesNumber = this.$router.currentRoute.query.seriesNumber
|
||||||
var seriesId = this.$router.currentRoute.query.seriesId
|
var subjectVisitId = this.$router.currentRoute.query.subjectVisitId
|
||||||
var seriesNumber = this.$router.currentRoute.query.seriesNumber
|
var studyId = this.$router.currentRoute.query.studyId
|
||||||
var subjectVisitId = this.$router.currentRoute.query.subjectVisitId
|
var trialId = this.$router.currentRoute.query.trialId
|
||||||
var studyId = this.$router.currentRoute.query.studyId
|
getInstanceList(seriesId).then(res => {
|
||||||
var trialId = this.$router.currentRoute.query.trialId
|
if (!res.Result || (res.Result && res.Result.length === 0)) return
|
||||||
console.log(1)
|
var seriesInstanceUid = res.Result[0].SeriesInstanceUid
|
||||||
getInstanceList(seriesId).then(res => {
|
var sliceLocation = res.Result[0].SliceLocation
|
||||||
if (!res.Result || (res.Result && res.Result.length === 0)) return
|
var isReading = res.Result[0].IsReading
|
||||||
var seriesInstanceUid = res.Result[0].SeriesInstanceUid
|
var isDeleted = res.Result[0].IsDeleted
|
||||||
var sliceLocation = res.Result[0].SliceLocation
|
var seriesList = []
|
||||||
var isReading = res.Result[0].IsReading
|
var imageIds = []
|
||||||
var isDeleted = res.Result[0].IsDeleted
|
res.Result.forEach(instance => {
|
||||||
var seriesList = []
|
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instance.Path}`)
|
||||||
var imageIds = []
|
|
||||||
res.Result.forEach(instance => {
|
|
||||||
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instance.Path}`)
|
|
||||||
})
|
|
||||||
seriesList.push({
|
|
||||||
trialId,
|
|
||||||
subjectVisitId,
|
|
||||||
studyId,
|
|
||||||
imageIds: imageIds,
|
|
||||||
seriesId: seriesId,
|
|
||||||
seriesUid: seriesInstanceUid,
|
|
||||||
seriesNumber: seriesNumber,
|
|
||||||
sliceThickness: sliceLocation,
|
|
||||||
modality: this.modality,
|
|
||||||
description: this.description,
|
|
||||||
isReading,
|
|
||||||
isDeleted,
|
|
||||||
previewImageUrl: res.OtherInfo.ImageResizePath ? scope.OSSclientConfig.basePath + res.OtherInfo.ImageResizePath : res.OtherInfo.ImageResizePath,
|
|
||||||
instanceCount: res.Result.length,
|
|
||||||
prefetchInstanceCount: 0,
|
|
||||||
loadStatus: false,
|
|
||||||
imageloadedArr: []
|
|
||||||
})
|
|
||||||
this.seriesList = seriesList
|
|
||||||
if (this.seriesList.length > 0) {
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.loadAllImages()
|
|
||||||
this.$refs.dicomViewer.loadImageStack(this.seriesList[0])
|
|
||||||
this.firstInstanceId = this.seriesList[0].imageIds[0]
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
} catch (e) {console.log(e)}
|
seriesList.push({
|
||||||
|
trialId,
|
||||||
|
subjectVisitId,
|
||||||
|
studyId,
|
||||||
|
imageIds: imageIds,
|
||||||
|
seriesId: seriesId,
|
||||||
|
seriesUid: seriesInstanceUid,
|
||||||
|
seriesNumber: seriesNumber,
|
||||||
|
sliceThickness: sliceLocation,
|
||||||
|
modality: this.modality,
|
||||||
|
description: this.description,
|
||||||
|
isReading,
|
||||||
|
isDeleted,
|
||||||
|
previewImageUrl: res.OtherInfo.ImageResizePath ? scope.OSSclientConfig.basePath + res.OtherInfo.ImageResizePath : res.OtherInfo.ImageResizePath,
|
||||||
|
instanceCount: res.Result.length,
|
||||||
|
prefetchInstanceCount: 0,
|
||||||
|
loadStatus: false,
|
||||||
|
imageloadedArr: []
|
||||||
|
})
|
||||||
|
this.seriesList = seriesList
|
||||||
|
if (this.seriesList.length > 0) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.loadAllImages()
|
||||||
|
this.$refs.dicomViewer.loadImageStack(this.seriesList[0])
|
||||||
|
this.firstInstanceId = this.seriesList[0].imageIds[0]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
showSeriesImage(e, seriesIndex, series) {
|
showSeriesImage(e, seriesIndex, series) {
|
||||||
// if (seriesIndex === this.currentSeriesIndex) return
|
// if (seriesIndex === this.currentSeriesIndex) return
|
||||||
|
|
Loading…
Reference in New Issue