医学审核查看图片及多帧bug修复
parent
42c1b56dda
commit
4212eb0f52
|
@ -1203,7 +1203,7 @@ export default {
|
||||||
this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null
|
this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null
|
||||||
this.stack.instanceId = instanceId
|
this.stack.instanceId = instanceId
|
||||||
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
|
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
|
||||||
this.resetWwwc()
|
// this.resetWwwc()
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -1941,6 +1941,9 @@ export default {
|
||||||
for (const [key, value] of searchParams.entries()) {
|
for (const [key, value] of searchParams.entries()) {
|
||||||
params[key] = value
|
params[key] = value
|
||||||
}
|
}
|
||||||
|
if (isNaN(params.frame)){
|
||||||
|
params.frame = 0
|
||||||
|
}
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
preventDefault(e) {
|
preventDefault(e) {
|
||||||
|
|
|
@ -672,7 +672,7 @@ export default {
|
||||||
},
|
},
|
||||||
showMultiFrames(studyIndex, series, seriesIndex, instanceInfo) {
|
showMultiFrames(studyIndex, series, seriesIndex, instanceInfo) {
|
||||||
this.currentSeriesIndex = seriesIndex
|
this.currentSeriesIndex = seriesIndex
|
||||||
var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId)
|
var idx = this.visitTaskIdx
|
||||||
const imageIds = []
|
const imageIds = []
|
||||||
if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) {
|
if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) {
|
||||||
for (let j = 0; j < instanceInfo.NumberOfFrames; j++) {
|
for (let j = 0; j < instanceInfo.NumberOfFrames; j++) {
|
||||||
|
|
|
@ -1181,7 +1181,7 @@ export default {
|
||||||
this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null
|
this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null
|
||||||
this.stack.instanceId = instanceId
|
this.stack.instanceId = instanceId
|
||||||
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
|
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
|
||||||
this.resetWwwc()
|
// this.resetWwwc()
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -1921,6 +1921,9 @@ export default {
|
||||||
for (const [key, value] of searchParams.entries()) {
|
for (const [key, value] of searchParams.entries()) {
|
||||||
params[key] = value
|
params[key] = value
|
||||||
}
|
}
|
||||||
|
if (isNaN(params.frame)){
|
||||||
|
params.frame = 0
|
||||||
|
}
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
preventDefault(e) {
|
preventDefault(e) {
|
||||||
|
|
|
@ -600,7 +600,8 @@ export default {
|
||||||
this.studyIndex = studyIndex
|
this.studyIndex = studyIndex
|
||||||
this.seriesIndex = seriesIndex
|
this.seriesIndex = seriesIndex
|
||||||
this.studyList[studyIndex].SeriesList[seriesIndex].measureData = this.measureData
|
this.studyList[studyIndex].SeriesList[seriesIndex].measureData = this.measureData
|
||||||
var dicomStatck = this.studyList[studyIndex].SeriesList[seriesIndex]
|
// var dicomStatck = this.studyList[studyIndex].SeriesList[seriesIndex]
|
||||||
|
var dicomStatck = Object.assign({},this.studyList[studyIndex].SeriesList[seriesIndex])
|
||||||
this.$emit('loadImageStack', dicomStatck)
|
this.$emit('loadImageStack', dicomStatck)
|
||||||
if (!series.loadStatus && series.modality !== 'SR') {
|
if (!series.loadStatus && series.modality !== 'SR') {
|
||||||
this.loopLoadStatus = -1
|
this.loopLoadStatus = -1
|
||||||
|
@ -642,18 +643,20 @@ export default {
|
||||||
},
|
},
|
||||||
showMultiFrames(studyIndex, series, seriesIndex, instanceInfo) {
|
showMultiFrames(studyIndex, series, seriesIndex, instanceInfo) {
|
||||||
this.currentSeriesIndex = seriesIndex
|
this.currentSeriesIndex = seriesIndex
|
||||||
|
var idx = this.visitTaskIdx
|
||||||
const imageIds = []
|
const imageIds = []
|
||||||
if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) {
|
if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) {
|
||||||
for (let j = 0; j < instanceInfo.NumberOfFrames; j++) {
|
for (let j = 0; j < instanceInfo.NumberOfFrames; j++) {
|
||||||
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instanceInfo.Path}?frame=${j}&instanceId=${instanceInfo.Id}&visitTaskId=${this.visitTaskId}&idx=${studyIndex}|${seriesIndex}`)
|
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instanceInfo.Path}?frame=${j}&instanceId=${instanceInfo.Id}&visitTaskId=${this.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${idx}`)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instanceInfo.Path}?instanceId=${instanceInfo.Id}&visitTaskId=${this.visitTaskId}&idx=${studyIndex}|${seriesIndex}`)
|
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instanceInfo.Path}?instanceId=${instanceInfo.Id}&visitTaskId=${this.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${idx}`)
|
||||||
}
|
}
|
||||||
this.studyIndex = studyIndex
|
this.studyIndex = studyIndex
|
||||||
this.seriesIndex = seriesIndex
|
this.seriesIndex = seriesIndex
|
||||||
this.studyList[studyIndex].SeriesList[seriesIndex].measureData = this.measureData
|
this.studyList[studyIndex].SeriesList[seriesIndex].measureData = this.measureData
|
||||||
var dicomStatck = this.studyList[studyIndex].SeriesList[seriesIndex]
|
// var dicomStatck = this.studyList[studyIndex].SeriesList[seriesIndex]
|
||||||
|
var dicomStatck = Object.assign({},this.studyList[studyIndex].SeriesList[seriesIndex])
|
||||||
dicomStatck.imageIds = imageIds
|
dicomStatck.imageIds = imageIds
|
||||||
dicomStatck.imageIdIndex = 0
|
dicomStatck.imageIdIndex = 0
|
||||||
this.$emit('loadImageStack', dicomStatck)
|
this.$emit('loadImageStack', dicomStatck)
|
||||||
|
|
|
@ -77,12 +77,23 @@
|
||||||
<!-- 本次医学审核相关截图(如适用)如下: -->
|
<!-- 本次医学审核相关截图(如适用)如下: -->
|
||||||
{{ $t('trials:medicalFeedback:message:msg5') }}
|
{{ $t('trials:medicalFeedback:message:msg5') }}
|
||||||
<ol>
|
<ol>
|
||||||
<li v-for="file in record.FileList" :key="file.ImagePath" style="list-style: none;">
|
<li v-for="file in record.FileList" :key="file.ImagePath" style="list-style: none;">
|
||||||
<el-button
|
<viewer
|
||||||
type="text"
|
v-if="file.ImagePath"
|
||||||
size="mini"
|
:ref="file.ImagePath"
|
||||||
@click="previewImage(file.ImagePath)"
|
style="margin:0 10px;"
|
||||||
>{{ file.FileName }}</el-button>
|
:images="[`${OSSclientConfig.basePath}${file.ImagePath}`]"
|
||||||
|
>
|
||||||
|
<el-button type="text" @click="previewImage(file.ImagePath)">
|
||||||
|
{{ file.FileName }}
|
||||||
|
</el-button>
|
||||||
|
<img
|
||||||
|
v-show="false"
|
||||||
|
crossorigin="anonymous"
|
||||||
|
:src="`${OSSclientConfig.basePath}${file.ImagePath}`"
|
||||||
|
alt="Image"
|
||||||
|
>
|
||||||
|
</viewer>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -138,20 +138,22 @@
|
||||||
>
|
>
|
||||||
<i slot="default" class="el-icon-plus" />
|
<i slot="default" class="el-icon-plus" />
|
||||||
<div slot="file" slot-scope="{file}">
|
<div slot="file" slot-scope="{file}">
|
||||||
<img
|
<viewer :ref="file.url" :images="images">
|
||||||
class="el-upload-list__item-thumbnail"
|
<img
|
||||||
:src="OSSclientConfig.basePath + file.url"
|
class="el-upload-list__item-thumbnail"
|
||||||
alt=""
|
:src="OSSclientConfig.basePath + file.url"
|
||||||
crossorigin="anonymous"
|
alt=""
|
||||||
>
|
crossorigin="anonymous"
|
||||||
<span class="el-upload-list__item-actions">
|
>
|
||||||
<span
|
<span class="el-upload-list__item-actions">
|
||||||
class="el-upload-list__item-preview"
|
<span
|
||||||
@click="handlePictureCardPreview(file)"
|
class="el-upload-list__item-preview"
|
||||||
>
|
@click="handlePictureCardPreview(file)"
|
||||||
<i class="el-icon-zoom-in" />
|
>
|
||||||
</span>
|
<i class="el-icon-zoom-in" />
|
||||||
</span>
|
</span>
|
||||||
|
</span>
|
||||||
|
</viewer>
|
||||||
</div>
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
@ -237,8 +239,8 @@ export default {
|
||||||
this.visitTaskArmList = JudgeInfo.VisitTaskArmList
|
this.visitTaskArmList = JudgeInfo.VisitTaskArmList
|
||||||
},
|
},
|
||||||
handlePictureCardPreview(file) {
|
handlePictureCardPreview(file) {
|
||||||
this.imageUrl = this.OSSclientConfig.basePath + file.url
|
this.images = this.fileList.map(f => this.OSSclientConfig.basePath + f.url)
|
||||||
this.imgVisible = true
|
this.$refs[file.url].$viewer.show()
|
||||||
},
|
},
|
||||||
handleViewDetail(visitTaskId) {
|
handleViewDetail(visitTaskId) {
|
||||||
console.log(this.rowData)
|
console.log(this.rowData)
|
||||||
|
|
|
@ -77,12 +77,23 @@
|
||||||
<!-- 本次医学审核相关截图(如适用)如下: -->
|
<!-- 本次医学审核相关截图(如适用)如下: -->
|
||||||
{{ $t('trials:medicalFeedback:message:msg5') }}
|
{{ $t('trials:medicalFeedback:message:msg5') }}
|
||||||
<ol>
|
<ol>
|
||||||
<li v-for="file in record.FileList" :key="file.ImagePath" style="list-style: none;">
|
<li v-for="file in record.FileList" :key="file.ImagePath" style="list-style: none;">
|
||||||
<el-button
|
<viewer
|
||||||
type="text"
|
v-if="file.ImagePath"
|
||||||
size="mini"
|
:ref="file.ImagePath"
|
||||||
@click="previewImage(file.ImagePath)"
|
style="margin:0 10px;"
|
||||||
>{{ file.FileName }}</el-button>
|
:images="[`${OSSclientConfig.basePath}${file.ImagePath}`]"
|
||||||
|
>
|
||||||
|
<el-button type="text" @click="previewImage(file.ImagePath)">
|
||||||
|
{{ file.FileName }}
|
||||||
|
</el-button>
|
||||||
|
<img
|
||||||
|
v-show="false"
|
||||||
|
crossorigin="anonymous"
|
||||||
|
:src="`${OSSclientConfig.basePath}${file.ImagePath}`"
|
||||||
|
alt="Image"
|
||||||
|
>
|
||||||
|
</viewer>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue