上传bug
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
b9fddc0a4b
commit
97052452f3
|
@ -157,25 +157,36 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created: function() {
|
created: function() {
|
||||||
this.type = this.$router.currentRoute.query.type ? this.$router.currentRoute.query.type : ''
|
try {
|
||||||
|
console.log(this.$route.query)
|
||||||
this.visitNum = this.$router.currentRoute.query.visitNum ? parseInt(this.$router.currentRoute.query.visitNum) : 0
|
this.type = this.$route.query.type ? this.$route.query.type : ''
|
||||||
cornerstone.events.addEventListener('cornerstoneimageloaded', this.cornerstoneImageLoaded)
|
this.visitNum = this.$router.currentRoute.query.visitNum ? parseInt(this.$router.currentRoute.query.visitNum) : 0
|
||||||
// cornerstone.events.addEventListener('datasetscachechanged', this.datasetsCacheChanged)
|
console.log(this.type)
|
||||||
if (this.$router.currentRoute.query.TokenKey) {
|
console.log(111)
|
||||||
store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey)
|
cornerstone.events.addEventListener('cornerstoneimageloaded', this.cornerstoneImageLoaded)
|
||||||
changeURLStatic('TokenKey', '')
|
// cornerstone.events.addEventListener('datasetscachechanged', this.datasetsCacheChanged)
|
||||||
}
|
if (this.$router.currentRoute.query.TokenKey) {
|
||||||
this.studyId = this.$router.currentRoute.query.studyId
|
store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey)
|
||||||
if (this.type === 'Series') {
|
changeURLStatic('TokenKey', '')
|
||||||
// this.initStudy()
|
}
|
||||||
this.showDelete = parseInt(this.$router.currentRoute.query.showDelete)
|
console.log(222)
|
||||||
this.initSeries()
|
console.log(this.type)
|
||||||
} else if (this.type === 'Study') {
|
this.studyId = this.$router.currentRoute.query.studyId
|
||||||
this.showDelete = parseInt(this.$router.currentRoute.query.showDelete)
|
if (this.type === 'Series') {
|
||||||
this.loadStudy()
|
// this.initStudy()
|
||||||
} else if (this.type === 'Share') {
|
console.log(333)
|
||||||
this.loadStudy()
|
console.log(this.$router.currentRoute.query.showDelete)
|
||||||
|
this.showDelete = parseInt(this.$router.currentRoute.query.showDelete)
|
||||||
|
console.log(333)
|
||||||
|
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() {
|
||||||
|
@ -247,55 +258,59 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
initSeries() {
|
initSeries() {
|
||||||
var scope = this
|
try {
|
||||||
this.studyCode = this.$router.currentRoute.query.studyCode
|
console.log(0)
|
||||||
this.modality = this.$router.currentRoute.query.modality
|
var scope = this
|
||||||
this.seriesCount = 1
|
this.studyCode = this.$router.currentRoute.query.studyCode
|
||||||
this.description = this.$router.currentRoute.query.description
|
this.modality = this.$router.currentRoute.query.modality
|
||||||
var seriesId = this.$router.currentRoute.query.seriesId
|
this.seriesCount = 1
|
||||||
var seriesNumber = this.$router.currentRoute.query.seriesNumber
|
this.description = this.$router.currentRoute.query.description
|
||||||
var subjectVisitId = this.$router.currentRoute.query.subjectVisitId
|
var seriesId = this.$router.currentRoute.query.seriesId
|
||||||
var studyId = this.$router.currentRoute.query.studyId
|
var seriesNumber = this.$router.currentRoute.query.seriesNumber
|
||||||
var trialId = this.$router.currentRoute.query.trialId
|
var subjectVisitId = this.$router.currentRoute.query.subjectVisitId
|
||||||
getInstanceList(seriesId).then(res => {
|
var studyId = this.$router.currentRoute.query.studyId
|
||||||
if (!res.Result || (res.Result && res.Result.length === 0)) return
|
var trialId = this.$router.currentRoute.query.trialId
|
||||||
var seriesInstanceUid = res.Result[0].SeriesInstanceUid
|
console.log(1)
|
||||||
var sliceLocation = res.Result[0].SliceLocation
|
getInstanceList(seriesId).then(res => {
|
||||||
var isReading = res.Result[0].IsReading
|
if (!res.Result || (res.Result && res.Result.length === 0)) return
|
||||||
var isDeleted = res.Result[0].IsDeleted
|
var seriesInstanceUid = res.Result[0].SeriesInstanceUid
|
||||||
var seriesList = []
|
var sliceLocation = res.Result[0].SliceLocation
|
||||||
var imageIds = []
|
var isReading = res.Result[0].IsReading
|
||||||
res.Result.forEach(instance => {
|
var isDeleted = res.Result[0].IsDeleted
|
||||||
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instance.Path}`)
|
var seriesList = []
|
||||||
})
|
var imageIds = []
|
||||||
seriesList.push({
|
res.Result.forEach(instance => {
|
||||||
trialId,
|
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instance.Path}`)
|
||||||
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]
|
|
||||||
})
|
})
|
||||||
}
|
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)}
|
||||||
},
|
},
|
||||||
showSeriesImage(e, seriesIndex, series) {
|
showSeriesImage(e, seriesIndex, series) {
|
||||||
// if (seriesIndex === this.currentSeriesIndex) return
|
// if (seriesIndex === this.currentSeriesIndex) return
|
||||||
|
|
|
@ -1592,14 +1592,18 @@ export default {
|
||||||
},
|
},
|
||||||
// 预览某个序列
|
// 预览某个序列
|
||||||
handlePreviewInstance(row) {
|
handlePreviewInstance(row) {
|
||||||
if (this.open) {
|
try {
|
||||||
this.open.close()
|
if (this.open) {
|
||||||
|
this.open.close()
|
||||||
|
}
|
||||||
|
var token = getToken()
|
||||||
|
const routeData = this.$router.resolve({
|
||||||
|
path: `/showdicom?trialId=${this.trialId}&studyId=${row.StudyId}&studyCode=${row.StudyCode}&modality=${row.Modality}&seriesId=${row.Id}&seriesNumber=${row.SeriesNumber}&showDelete=${this.isAudit ? 0 : 1}&subjectVisitId=${this.data.Id}&type=Series&TokenKey=${token}&description=${row.Description}`
|
||||||
|
})
|
||||||
|
this.open = window.open(routeData.href, '_blank')
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
var token = getToken()
|
|
||||||
const routeData = this.$router.resolve({
|
|
||||||
path: `/showdicom?trialId=${this.trialId}&studyId=${row.StudyId}&studyCode=${row.StudyCode}&modality=${row.Modality}&description=${row.Description}&seriesId=${row.Id}&seriesNumber=${row.SeriesNumber}&showDelete=${this.isAudit ? 0 : 1}&subjectVisitId=${this.data.Id}&TokenKey=${token}&type=Series`
|
|
||||||
})
|
|
||||||
this.open = window.open(routeData.href, '_blank')
|
|
||||||
},
|
},
|
||||||
// 预览所有检查下非Dicom文件
|
// 预览所有检查下非Dicom文件
|
||||||
handleViewAllNoneDicoms() {
|
handleViewAllNoneDicoms() {
|
||||||
|
|
Loading…
Reference in New Issue