Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
3d5229d3c0
|
@ -385,10 +385,10 @@ export default {
|
||||||
var isReadingTaskViewInOrder = parseInt(this.$router.currentRoute.query.isReadingTaskViewInOrder)
|
var isReadingTaskViewInOrder = parseInt(this.$router.currentRoute.query.isReadingTaskViewInOrder)
|
||||||
var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId)
|
var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId)
|
||||||
this.studyList = this.visitTaskList[idx].StudyList
|
this.studyList = this.visitTaskList[idx].StudyList
|
||||||
|
const studyList = this.visitTaskList[idx].StudyList.filter(i => i.IsDicom)
|
||||||
|
const seriesArr = studyList.map(s => s.SeriesList).flat()
|
||||||
if (isReadingTaskViewInOrder === 2) {
|
if (isReadingTaskViewInOrder === 2) {
|
||||||
// 受试者内随机
|
// 受试者内随机
|
||||||
const studyList = this.visitTaskList[idx].StudyList.filter(i => i.IsDicom)
|
|
||||||
const seriesArr = studyList.map(s => s.SeriesList).flat()
|
|
||||||
if (seriesArr.length === 1) {
|
if (seriesArr.length === 1) {
|
||||||
seriesList.push(seriesArr[0], seriesArr[0])
|
seriesList.push(seriesArr[0], seriesArr[0])
|
||||||
this.studyIndex = seriesArr[0].studyIndex
|
this.studyIndex = seriesArr[0].studyIndex
|
||||||
|
@ -410,9 +410,13 @@ export default {
|
||||||
this.activeNames = [`${this.studyList[ this.studyIndex].StudyId}`]
|
this.activeNames = [`${this.studyList[ this.studyIndex].StudyId}`]
|
||||||
this.studyList[ obj.studyIndex].SeriesList[obj.seriesIndex].isFirstRender = true
|
this.studyList[ obj.studyIndex].SeriesList[obj.seriesIndex].isFirstRender = true
|
||||||
} else {
|
} else {
|
||||||
// 初始化问题表单
|
|
||||||
if (this.studyList.length > 0) {
|
if (this.studyList.length > 0) {
|
||||||
this.activeNames = [`${this.studyList[0].StudyId}`]
|
// 初始化问题表单
|
||||||
|
this.studyIndex = seriesArr[0].studyIndex
|
||||||
|
this.seriesIndex = seriesArr[0].seriesIndex
|
||||||
|
this.activeNames = [`${seriesArr[0].studyId}`]
|
||||||
|
seriesList.push(seriesArr[0])
|
||||||
|
// this.activeNames = [`${this.studyList[0].StudyId}`]
|
||||||
}
|
}
|
||||||
|
|
||||||
// DicomEvent.$emit('loadMeasurementList', { visitTaskId: this.visitTaskList[idx].VisitTaskId, taskBlindName: this.visitTaskList[idx].TaskBlindName })
|
// DicomEvent.$emit('loadMeasurementList', { visitTaskId: this.visitTaskList[idx].VisitTaskId, taskBlindName: this.visitTaskList[idx].TaskBlindName })
|
||||||
|
@ -436,6 +440,7 @@ export default {
|
||||||
|
|
||||||
const firstObj = this.getFirstMarkedSeries(this.visitTaskList[bsIdx].MeasureData, [...this.visitTaskList[bsIdx].StudyList])
|
const firstObj = this.getFirstMarkedSeries(this.visitTaskList[bsIdx].MeasureData, [...this.visitTaskList[bsIdx].StudyList])
|
||||||
seriesList.push(firstObj.series)
|
seriesList.push(firstObj.series)
|
||||||
|
|
||||||
const secondObj = this.getSecondMarkedSeries(firstObj, { ...this.visitTaskList[idx] })
|
const secondObj = this.getSecondMarkedSeries(firstObj, { ...this.visitTaskList[idx] })
|
||||||
this.studyIndex = secondObj.studyIndex
|
this.studyIndex = secondObj.studyIndex
|
||||||
this.seriesIndex = secondObj.seriesIndex
|
this.seriesIndex = secondObj.seriesIndex
|
||||||
|
@ -575,22 +580,20 @@ export default {
|
||||||
obj.series = seriesObj.series
|
obj.series = seriesObj.series
|
||||||
obj.seriesId = seriesObj.series.seriesId
|
obj.seriesId = seriesObj.series.seriesId
|
||||||
obj.isMarked = false
|
obj.isMarked = false
|
||||||
} else {
|
|
||||||
const sIdx = studyList.findIndex(s => s.IsDicom)
|
|
||||||
if (sIdx > -1) {
|
|
||||||
// 判断是否存在层厚为5的序列,否则显示第一个检查的第一个序列
|
|
||||||
const series = studyList[sIdx].SeriesList[0]
|
|
||||||
var imageIdIndex = series.imageIds.length > 1 ? Math.floor(series.imageIds.length / 2) - 1 : 0
|
|
||||||
obj.studyIndex = sIdx
|
|
||||||
obj.seriesIndex = 0
|
|
||||||
obj.series = series
|
|
||||||
obj.series.imageIdIndex = imageIdIndex >= 0 ? imageIdIndex : 0
|
|
||||||
obj.seriesId = series.seriesId
|
|
||||||
obj.isMarked = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (Object.keys(obj).length === 0) {
|
||||||
|
const sIdx = studyList.findIndex(s => s.IsDicom)
|
||||||
|
if (sIdx > -1) {
|
||||||
|
obj.studyIndex = sIdx
|
||||||
|
obj.seriesIndex = 0
|
||||||
|
obj.series = studyList[obj.studyIndex].SeriesList[obj.seriesIndex]
|
||||||
|
const imageIdIndex = Math.floor(obj.series.imageIds.length / 2)
|
||||||
|
obj.series.imageIdIndex = imageIdIndex >= 0 ? imageIdIndex : 0
|
||||||
|
// obj.seriesId = series.seriesId
|
||||||
|
obj.isMarked = false
|
||||||
|
}
|
||||||
|
}
|
||||||
return obj
|
return obj
|
||||||
},
|
},
|
||||||
strSimilarity2Number(s, t) {
|
strSimilarity2Number(s, t) {
|
||||||
|
|
|
@ -555,19 +555,18 @@ export default {
|
||||||
obj.series = seriesObj.series
|
obj.series = seriesObj.series
|
||||||
obj.seriesId = seriesObj.series.seriesId
|
obj.seriesId = seriesObj.series.seriesId
|
||||||
obj.isMarked = false
|
obj.isMarked = false
|
||||||
} else {
|
}
|
||||||
const sIdx = studyList.findIndex(s => s.IsDicom)
|
}
|
||||||
if (sIdx > -1) {
|
if (Object.keys(obj).length === 0) {
|
||||||
// 判断是否存在层厚为5的序列,否则显示第一个检查的第一个序列
|
const sIdx = studyList.findIndex(s => s.IsDicom)
|
||||||
const series = studyList[sIdx].SeriesList[0]
|
if (sIdx > -1) {
|
||||||
var imageIdIndex = series.imageIds.length > 1 ? Math.floor(series.imageIds.length / 2) - 1 : 0
|
obj.studyIndex = sIdx
|
||||||
obj.studyIndex = sIdx
|
obj.seriesIndex = 0
|
||||||
obj.seriesIndex = 0
|
obj.series = studyList[obj.studyIndex].SeriesList[obj.seriesIndex]
|
||||||
obj.series = series
|
const imageIdIndex = Math.floor(obj.series.imageIds.length / 2)
|
||||||
obj.series.imageIdIndex = imageIdIndex >= 0 ? imageIdIndex : 0
|
obj.series.imageIdIndex = imageIdIndex >= 0 ? imageIdIndex : 0
|
||||||
obj.seriesId = series.seriesId
|
// obj.seriesId = series.seriesId
|
||||||
obj.isMarked = false
|
obj.isMarked = false
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue