上传bug
continuous-integration/drone/push Build is passing Details

uat_us
熊飞 2024-01-29 15:31:02 +08:00
parent b9fddc0a4b
commit 97052452f3
2 changed files with 93 additions and 74 deletions

View File

@ -157,19 +157,27 @@ 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.type = this.$route.query.type ? this.$route.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
console.log(this.type)
console.log(111)
cornerstone.events.addEventListener('cornerstoneimageloaded', this.cornerstoneImageLoaded) cornerstone.events.addEventListener('cornerstoneimageloaded', this.cornerstoneImageLoaded)
// cornerstone.events.addEventListener('datasetscachechanged', this.datasetsCacheChanged) // cornerstone.events.addEventListener('datasetscachechanged', this.datasetsCacheChanged)
if (this.$router.currentRoute.query.TokenKey) { if (this.$router.currentRoute.query.TokenKey) {
store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey) store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey)
changeURLStatic('TokenKey', '') changeURLStatic('TokenKey', '')
} }
console.log(222)
console.log(this.type)
this.studyId = this.$router.currentRoute.query.studyId this.studyId = this.$router.currentRoute.query.studyId
if (this.type === 'Series') { if (this.type === 'Series') {
// this.initStudy() // this.initStudy()
console.log(333)
console.log(this.$router.currentRoute.query.showDelete)
this.showDelete = parseInt(this.$router.currentRoute.query.showDelete) this.showDelete = parseInt(this.$router.currentRoute.query.showDelete)
console.log(333)
this.initSeries() this.initSeries()
} else if (this.type === 'Study') { } else if (this.type === 'Study') {
this.showDelete = parseInt(this.$router.currentRoute.query.showDelete) this.showDelete = parseInt(this.$router.currentRoute.query.showDelete)
@ -177,6 +185,9 @@ export default {
} else if (this.type === 'Share') { } else if (this.type === 'Share') {
this.loadStudy() this.loadStudy()
} }
} catch (e) {
console.log(e)
}
}, },
beforeDestroy() { beforeDestroy() {
requestPoolManager.stopTaskTimer() requestPoolManager.stopTaskTimer()
@ -247,6 +258,8 @@ export default {
}) })
}, },
initSeries() { initSeries() {
try {
console.log(0)
var scope = this var scope = this
this.studyCode = this.$router.currentRoute.query.studyCode this.studyCode = this.$router.currentRoute.query.studyCode
this.modality = this.$router.currentRoute.query.modality this.modality = this.$router.currentRoute.query.modality
@ -257,6 +270,7 @@ export default {
var subjectVisitId = this.$router.currentRoute.query.subjectVisitId var subjectVisitId = this.$router.currentRoute.query.subjectVisitId
var studyId = this.$router.currentRoute.query.studyId var studyId = this.$router.currentRoute.query.studyId
var trialId = this.$router.currentRoute.query.trialId var trialId = this.$router.currentRoute.query.trialId
console.log(1)
getInstanceList(seriesId).then(res => { getInstanceList(seriesId).then(res => {
if (!res.Result || (res.Result && res.Result.length === 0)) return if (!res.Result || (res.Result && res.Result.length === 0)) return
var seriesInstanceUid = res.Result[0].SeriesInstanceUid var seriesInstanceUid = res.Result[0].SeriesInstanceUid
@ -296,6 +310,7 @@ export default {
}) })
} }
}) })
} catch (e) {console.log(e)}
}, },
showSeriesImage(e, seriesIndex, series) { showSeriesImage(e, seriesIndex, series) {
// if (seriesIndex === this.currentSeriesIndex) return // if (seriesIndex === this.currentSeriesIndex) return

View File

@ -1592,14 +1592,18 @@ export default {
}, },
// //
handlePreviewInstance(row) { handlePreviewInstance(row) {
try {
if (this.open) { if (this.open) {
this.open.close() this.open.close()
} }
var token = getToken() var token = getToken()
const routeData = this.$router.resolve({ 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` 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') this.open = window.open(routeData.href, '_blank')
} catch (e) {
console.log(e)
}
}, },
// Dicom // Dicom
handleViewAllNoneDicoms() { handleViewAllNoneDicoms() {