检查列表bug修复
parent
98b126f630
commit
4135349bfa
|
@ -896,6 +896,12 @@ const actions = {
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
setImageloadedInfo({ state }, obj) {
|
||||||
|
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
||||||
|
let prefetchInstanceCount = state.visitTaskList[index].StudyList[obj.studyIndex].SeriesList[obj.seriesIndex].prefetchInstanceCount
|
||||||
|
state.visitTaskList[index].StudyList[obj.studyIndex].SeriesList[obj.seriesIndex].prefetchInstanceCount = prefetchInstanceCount + 100
|
||||||
|
state.visitTaskList[index].StudyList[obj.studyIndex].SeriesList[obj.seriesIndex].imageloadedArr.push(obj.imageId)
|
||||||
|
},
|
||||||
setStatus({ state }, obj) {
|
setStatus({ state }, obj) {
|
||||||
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
||||||
state.visitTaskList[index].IsInit = true
|
state.visitTaskList[index].IsInit = true
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<div class="flex-div">
|
<div class="flex-div">
|
||||||
<div style="width: 40px;display: flex;flex-direction: row;justify-content: space-between;">
|
<div style="width: 40px;display: flex;flex-direction: row;justify-content: space-between;">
|
||||||
<div v-if="!study.IsCriticalSequence">#{{ series.seriesNumber }}</div>
|
<div v-if="!study.IsCriticalSequence">#{{ series.seriesNumber }}</div>
|
||||||
<div v-if="series.isDicom && series.prefetchInstanceCount<series.instanceCount && series.modality!== 'SR'">
|
<div v-if="series.isDicom && series.prefetchInstanceCount<series.instanceCount * 100 && series.modality!== 'SR'">
|
||||||
<!-- 下载 -->
|
<!-- 下载 -->
|
||||||
<el-tooltip v-if="!series.isLoading" class="item" effect="dark" :content="$t('trials:reading:button:download')" placement="bottom">
|
<el-tooltip v-if="!series.isLoading" class="item" effect="dark" :content="$t('trials:reading:button:download')" placement="bottom">
|
||||||
<i class="el-icon-video-play" style="font-size: 18px;margin-right: 5px;color: #ffeb3b;cursor: pointer;" @click.stop="loadSeries(series,index,i)" />
|
<i class="el-icon-video-play" style="font-size: 18px;margin-right: 5px;color: #ffeb3b;cursor: pointer;" @click.stop="loadSeries(series,index,i)" />
|
||||||
|
@ -300,11 +300,14 @@ export default {
|
||||||
// 初始化待渲染序列
|
// 初始化待渲染序列
|
||||||
this.getInitSeries().then((res) => {
|
this.getInitSeries().then((res) => {
|
||||||
requestPoolManager.startTaskTimer()
|
requestPoolManager.startTaskTimer()
|
||||||
res.map((item) => {
|
res.map(async(item) => {
|
||||||
// this.loadInitialImage(item)
|
// this.loadInitialImage(item)
|
||||||
const imageId = item.imageIds[item.imageIdIndex]
|
const imageId = item.imageIds[item.imageIdIndex]
|
||||||
const p = parseInt(new Date().getTime())
|
const p = parseInt(new Date().getTime())
|
||||||
requestPoolManager.loadAndCacheImagePlus(imageId, item.seriesId, p * 100)
|
await requestPoolManager.loadAndCacheImagePlus(imageId, item.seriesId, p * 100)
|
||||||
|
if (!item.isCurrentTask) {
|
||||||
|
store.dispatch('reading/setImageloadedInfo', item)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
var i = res.findIndex(s => s.isCurrentTask)
|
var i = res.findIndex(s => s.isCurrentTask)
|
||||||
if (i > -1) {
|
if (i > -1) {
|
||||||
|
@ -916,21 +919,13 @@ export default {
|
||||||
const seriesId = this.studyList[studyIndex].SeriesList[seriesIndex].seriesId
|
const seriesId = this.studyList[studyIndex].SeriesList[seriesIndex].seriesId
|
||||||
const i = this.keySeriesLoad.findIndex(i => i.seriesId === seriesId)
|
const i = this.keySeriesLoad.findIndex(i => i.seriesId === seriesId)
|
||||||
if (this.studyList[studyIndex].IsCriticalSequence && percentComplete >= 100) {
|
if (this.studyList[studyIndex].IsCriticalSequence && percentComplete >= 100) {
|
||||||
// 关键序列处理
|
// 关键序列处理
|
||||||
if (i === -1) {
|
if (i === -1) {
|
||||||
this.keySeriesLoad.push({ seriesId: seriesId, loadCount: 1, imageIds: [imageId] })
|
this.keySeriesLoad.push({ seriesId: seriesId, loadCount: 1, imageIds: [imageId] })
|
||||||
} else {
|
} else {
|
||||||
++this.keySeriesLoad[i].loadCount
|
++this.keySeriesLoad[i].loadCount
|
||||||
this.keySeriesLoad[i].imageIds.push(imageId)
|
this.keySeriesLoad[i].imageIds.push(imageId)
|
||||||
}
|
}
|
||||||
} else if (this.studyList[studyIndex].SeriesList[seriesIndex].IsBeMark && percentComplete >= 100) {
|
|
||||||
// 带有标注的序列处理
|
|
||||||
if (i === -1) {
|
|
||||||
this.keySeriesLoad.push({ seriesId: seriesId, loadCount: 1, imageIds: [imageId] })
|
|
||||||
} else {
|
|
||||||
++this.keySeriesLoad[i].loadCount
|
|
||||||
this.keySeriesLoad[i].imageIds.push(imageId)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!this.studyList[studyIndex].IsCriticalSequence && i > -1) {
|
if (!this.studyList[studyIndex].IsCriticalSequence && i > -1) {
|
||||||
this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount = this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount + 100 * this.keySeriesLoad[i].loadCount
|
this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount = this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount + 100 * this.keySeriesLoad[i].loadCount
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<div class="flex-div">
|
<div class="flex-div">
|
||||||
<div style="width: 40px;display: flex;flex-direction: row;justify-content: space-between;">
|
<div style="width: 40px;display: flex;flex-direction: row;justify-content: space-between;">
|
||||||
<div v-if="!study.IsCriticalSequence">#{{ series.seriesNumber }}</div>
|
<div v-if="!study.IsCriticalSequence">#{{ series.seriesNumber }}</div>
|
||||||
<div v-if="series.isDicom && series.prefetchInstanceCount<series.instanceCount && series.modality!== 'SR'">
|
<div v-if="series.isDicom && series.prefetchInstanceCount<series.instanceCount * 100 && series.modality!== 'SR'">
|
||||||
<!-- 下载 -->
|
<!-- 下载 -->
|
||||||
<el-tooltip v-if="!series.isLoading" class="item" effect="dark" :content="$t('trials:reading:button:download')" placement="bottom">
|
<el-tooltip v-if="!series.isLoading" class="item" effect="dark" :content="$t('trials:reading:button:download')" placement="bottom">
|
||||||
<i class="el-icon-video-play" style="font-size: 18px;margin-right: 5px;color: #ffeb3b;cursor: pointer;" @click.stop="loadSeries(series,index,i)" />
|
<i class="el-icon-video-play" style="font-size: 18px;margin-right: 5px;color: #ffeb3b;cursor: pointer;" @click.stop="loadSeries(series,index,i)" />
|
||||||
|
@ -282,10 +282,14 @@ export default {
|
||||||
// 初始化待渲染序列
|
// 初始化待渲染序列
|
||||||
this.getInitSeries().then((res) => {
|
this.getInitSeries().then((res) => {
|
||||||
requestPoolManager.startTaskTimer()
|
requestPoolManager.startTaskTimer()
|
||||||
res.map((item) => {
|
res.map(async(item) => {
|
||||||
let imageId = item.imageIds[item.imageIdIndex]
|
let imageId = item.imageIds[item.imageIdIndex]
|
||||||
const p = parseInt(new Date().getTime())
|
const p = parseInt(new Date().getTime())
|
||||||
requestPoolManager.loadAndCacheImagePlus(imageId, item.seriesId, p * 100)
|
// requestPoolManager.loadAndCacheImagePlus(imageId, item.seriesId, p * 100)
|
||||||
|
await requestPoolManager.loadAndCacheImagePlus(imageId, item.seriesId, p * 100)
|
||||||
|
if (!item.isCurrentTask) {
|
||||||
|
store.dispatch('reading/setImageloadedInfo', item)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
var i = res.findIndex(s => s.isCurrentTask)
|
var i = res.findIndex(s => s.isCurrentTask)
|
||||||
if (i > -1) {
|
if (i > -1) {
|
||||||
|
@ -896,14 +900,6 @@ export default {
|
||||||
++this.keySeriesLoad[i].loadCount
|
++this.keySeriesLoad[i].loadCount
|
||||||
this.keySeriesLoad[i].imageIds.push(imageId)
|
this.keySeriesLoad[i].imageIds.push(imageId)
|
||||||
}
|
}
|
||||||
} else if (this.studyList[studyIndex].SeriesList[seriesIndex].IsBeMark && percentComplete >= 100) {
|
|
||||||
// 带有标注的序列处理
|
|
||||||
if (i === -1) {
|
|
||||||
this.keySeriesLoad.push({ seriesId: seriesId, loadCount: 1, imageIds: [imageId] })
|
|
||||||
} else {
|
|
||||||
++this.keySeriesLoad[i].loadCount
|
|
||||||
this.keySeriesLoad[i].imageIds.push(imageId)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!this.studyList[studyIndex].IsCriticalSequence && i > -1) {
|
if (!this.studyList[studyIndex].IsCriticalSequence && i > -1) {
|
||||||
this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount = this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount + 100 * this.keySeriesLoad[i].loadCount
|
this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount = this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount + 100 * this.keySeriesLoad[i].loadCount
|
||||||
|
|
Loading…
Reference in New Issue