1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
95097caac2
commit
1e132e0046
|
@ -45,15 +45,9 @@ export function saveImageLabelList(param) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getStudyInfo(studyId, visitTaskId) {
|
export function getStudyInfo(studyId) {
|
||||||
let url = ''
|
|
||||||
if (visitTaskId) {
|
|
||||||
url = `/Study/item/${studyId}?visitTaskId=${visitTaskId}`
|
|
||||||
} else {
|
|
||||||
url = `/Study/item/${studyId}`
|
|
||||||
}
|
|
||||||
return request({
|
return request({
|
||||||
url: url,
|
url: `/Study/item/${studyId}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,8 +194,7 @@ export default {
|
||||||
imageList: [],
|
imageList: [],
|
||||||
showSeriesList: [],
|
showSeriesList: [],
|
||||||
currentLoadIns: [],
|
currentLoadIns: [],
|
||||||
isFromCRCUpload: false,
|
isFromCRCUpload: false
|
||||||
visitTaskId: null
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created: function() {
|
created: function() {
|
||||||
|
@ -217,7 +216,6 @@ 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.$route.query.visitTaskId
|
|
||||||
this.loadStudy()
|
this.loadStudy()
|
||||||
} else if (this.type === 'Share') {
|
} else if (this.type === 'Share') {
|
||||||
this.loadStudy()
|
this.loadStudy()
|
||||||
|
@ -239,12 +237,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async loadStudy() {
|
async loadStudy() {
|
||||||
let data = null
|
const data = await getStudyInfo(this.studyId)
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue