部分问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3551a521c8
commit
d12b4adb68
|
@ -214,15 +214,16 @@
|
|||
<svg-icon icon-class="refresh" class="svg-icon" />
|
||||
</div>
|
||||
<!-- 更多 -->
|
||||
<div v-if="criterionType === 0" class="tool-item" :title="$t('trials:reading:button:more')"
|
||||
@click.stop="showPanel($event)" @mouseleave="toolMouseout">
|
||||
<div v-if="criterionType === 0" :title="$t('trials:reading:button:more')"
|
||||
@click.stop="showPanel($event)" @mouseleave="toolMouseout"
|
||||
:class="['tool-item', readingTaskState === 2 ? 'tool-disabled' : '']">
|
||||
<div class="dropdown">
|
||||
<div class="icon" data-tool="more">
|
||||
<svg-icon icon-class="more" class="svg-icon" />
|
||||
<i class="el-icon-arrow-down" style="color:#fff;" />
|
||||
</div>
|
||||
<div class="dropdown-content">
|
||||
<ul style="width:100px;">
|
||||
<ul style="width:100px;" v-if="readingTaskState < 2">
|
||||
<li v-for="i in customizeStandards" :key="i.toolName" style="text-align:left;">
|
||||
<a href="#" @click.prevent="setMoreToolActive(i.toolName)">
|
||||
{{ $t(i.i18nKey) }}
|
||||
|
@ -718,7 +719,8 @@ export default {
|
|||
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
||||
if (this.criterionType === 0) {
|
||||
this.tools = getCustomizeStandardsTools(this.taskInfo.ReadingToolList)
|
||||
this.customizeStandards = [...config.customizeStandards]
|
||||
let toolNames = this.tools.map(i => i.toolName)
|
||||
this.customizeStandards = config.customizeStandards.filter(item => !toolNames.includes(item.toolName))
|
||||
} else {
|
||||
this.tools = getTools(this.criterionType)
|
||||
}
|
||||
|
@ -1313,15 +1315,15 @@ export default {
|
|||
const nFrames = instance.NumberOfFrames || 0
|
||||
if (nFrames === 0) {
|
||||
// 单帧
|
||||
stack.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?visitTaskId=${taskId}&instanceId=${instance.Id}`)
|
||||
stack.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?instanceId=${instance.Id}`)
|
||||
} else {
|
||||
// 多帧
|
||||
for (let i = 0; i < nFrames; i++) {
|
||||
const newImageId = `wadouri:${this.OSSclientConfig.basePath}${instance.Path}?visitTaskId=${taskId}&instanceId=${instance.Id}&frame=${i + 1}`
|
||||
const newImageId = `wadouri:${this.OSSclientConfig.basePath}${instance.Path}?instanceId=${instance.Id}&frame=${i + 1}`
|
||||
stack.push(newImageId)
|
||||
}
|
||||
}
|
||||
imageIds.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?visitTaskId=${taskId}&instanceId=${instance.Id}`)
|
||||
imageIds.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?instanceId=${instance.Id}`)
|
||||
this.instanceInfo[instance.Id] = { taskIndex, studyIndex, seriesIndex }
|
||||
}
|
||||
})
|
||||
|
@ -1341,12 +1343,12 @@ export default {
|
|||
keyImages.forEach(instance => {
|
||||
if (instance.KeyFramesList.length > 0) {
|
||||
instance.KeyFramesList.map(i => {
|
||||
keyStack.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?visitTaskId=${taskId}&instanceId=${instance.Id}&frame=${i}`)
|
||||
keyStack.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?instanceId=${instance.Id}&frame=${i}`)
|
||||
})
|
||||
} else {
|
||||
keyStack.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?visitTaskId=${taskId}&instanceId=${instance.Id}`)
|
||||
keyStack.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?instanceId=${instance.Id}`)
|
||||
}
|
||||
keyImageIds.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?visitTaskId=${taskId}&instanceId=${instance.Id}`)
|
||||
keyImageIds.push(`wadouri:${this.OSSclientConfig.basePath}${instance.Path}?instanceId=${instance.Id}`)
|
||||
})
|
||||
res1.Result[keyStudyIndex].SeriesList[keySeriesIndex].ImageIds = keyImageIds
|
||||
res1.Result[keyStudyIndex].SeriesList[keySeriesIndex].Stack = keyStack
|
||||
|
@ -1625,8 +1627,6 @@ export default {
|
|||
annotation.data.text = markName
|
||||
}
|
||||
this.saveCustomAnnotation(annotation)
|
||||
} else {
|
||||
this.removeAnnotation(annotation)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1641,7 +1641,7 @@ export default {
|
|||
try {
|
||||
const measureData = Object.assign({}, annotation)
|
||||
const params = {}
|
||||
params.VisitTaskId = annotation.visitTaskId
|
||||
params.VisitTaskId = this.taskInfo.VisitTaskId
|
||||
params.StudyId = annotation.studyId
|
||||
params.SeriesId = annotation.seriesId
|
||||
params.InstanceId = annotation.instanceId
|
||||
|
@ -2504,14 +2504,12 @@ export default {
|
|||
async getScreenshots(measureData, callback) {
|
||||
if (measureData) {
|
||||
await this.imageLocation(measureData)
|
||||
setTimeout(async () => {
|
||||
const divForDownloadViewport = document.querySelector(
|
||||
`div[data-viewport-uid="viewport-${this.activeViewportIndex}"]`
|
||||
)
|
||||
const canvas = await html2canvas(divForDownloadViewport)
|
||||
const base64Str = canvas.toDataURL('image/png', 1)
|
||||
callback(base64Str)
|
||||
}, 50)
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
|
@ -3194,7 +3192,8 @@ export default {
|
|||
}
|
||||
|
||||
.content-wrapper {
|
||||
flex: 1 0 0%;
|
||||
flex: 1;
|
||||
height: calc(100% - 50px);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 90%;
|
||||
|
@ -3232,7 +3231,7 @@ export default {
|
|||
width: 400px;
|
||||
height: 100%;
|
||||
border: 1px solid #727272;
|
||||
overflow-y: auto;
|
||||
// overflow-y: auto;
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -244,6 +244,9 @@ export default {
|
|||
this.imageInfo.location = imagePlaneModule.sliceLocation
|
||||
this.getOrientationMarker()
|
||||
this.$emit('renderAnnotations', this.series)
|
||||
// const toolGroupId = `viewport-${this.viewportIndex}`
|
||||
// const toolGroup = ToolGroupManager.getToolGroup(toolGroupId)
|
||||
// toolGroup.setToolEnabled('ScaleOverlay')
|
||||
}
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue