Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
commit
dcde93b4f8
|
@ -45,9 +45,15 @@ export function saveImageLabelList(param) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getStudyInfo(studyId) {
|
export function getStudyInfo(studyId, visitTaskId) {
|
||||||
|
let url = ''
|
||||||
|
if (visitTaskId) {
|
||||||
|
url = `/Study/item/${studyId}?visitTaskId=${visitTaskId}`
|
||||||
|
} else {
|
||||||
|
url = `/Study/item/${studyId}`
|
||||||
|
}
|
||||||
return request({
|
return request({
|
||||||
url: `/Study/item/${studyId}`,
|
url: url,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -486,7 +486,7 @@ export default {
|
||||||
var token = getToken()
|
var token = getToken()
|
||||||
let trialId = this.$route.query.trialId
|
let trialId = this.$route.query.trialId
|
||||||
const routeData = this.$router.resolve({
|
const routeData = this.$router.resolve({
|
||||||
path: `/showvisitdicoms?trialId=${trialId}&subjectVisitId=${row.SourceSubjectVisitId}&isReading=1&TokenKey=${token}`,
|
path: `/showvisitdicoms?trialId=${trialId}&visitTaskId=${row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&isReading=1&TokenKey=${token}`,
|
||||||
})
|
})
|
||||||
this.open = window.open(routeData.href, '_blank')
|
this.open = window.open(routeData.href, '_blank')
|
||||||
},
|
},
|
||||||
|
|
|
@ -194,7 +194,8 @@ export default {
|
||||||
imageList: [],
|
imageList: [],
|
||||||
showSeriesList: [],
|
showSeriesList: [],
|
||||||
currentLoadIns: [],
|
currentLoadIns: [],
|
||||||
isFromCRCUpload: false
|
isFromCRCUpload: false,
|
||||||
|
visitTaskId: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created: function() {
|
created: function() {
|
||||||
|
@ -216,6 +217,7 @@ export default {
|
||||||
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)
|
||||||
|
this.visitTaskId = this.$router.currentRoute.visitTaskId
|
||||||
this.loadStudy()
|
this.loadStudy()
|
||||||
} else if (this.type === 'Share') {
|
} else if (this.type === 'Share') {
|
||||||
this.loadStudy()
|
this.loadStudy()
|
||||||
|
@ -237,7 +239,12 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async loadStudy() {
|
async loadStudy() {
|
||||||
const data = await getStudyInfo(this.studyId)
|
let data = null
|
||||||
|
if (this.visitTaskId) {
|
||||||
|
data = await getStudyInfo(this.studyId, this.visitTaskId)
|
||||||
|
} else {
|
||||||
|
data = await getStudyInfo(this.studyId)
|
||||||
|
}
|
||||||
if (data.IsSuccess) {
|
if (data.IsSuccess) {
|
||||||
if (data.Result) {
|
if (data.Result) {
|
||||||
this.studyCode = data.Result.StudyCode
|
this.studyCode = data.Result.StudyCode
|
||||||
|
@ -251,7 +258,7 @@ export default {
|
||||||
},
|
},
|
||||||
async loadPatientStudy() {
|
async loadPatientStudy() {
|
||||||
try {
|
try {
|
||||||
let data = await getPatientSeriesList(this.studyId);
|
const data = await getPatientSeriesList(this.studyId)
|
||||||
if (data.IsSuccess) {
|
if (data.IsSuccess) {
|
||||||
const { Result } = data
|
const { Result } = data
|
||||||
var seriesList = []
|
var seriesList = []
|
||||||
|
|
Loading…
Reference in New Issue