关键序列更改;lugano标准交互更改

main
caiyiling 2026-06-15 13:53:04 +08:00
parent 71418c393e
commit de7cd64c9b
3 changed files with 220 additions and 2 deletions

View File

@ -219,6 +219,48 @@
</div>
</el-tooltip>
<el-popover v-model="keySeriesPopoverVisible" placement="bottom" trigger="click" popper-class="key-series-popper"
@show="showKeySeriesPanel">
<ul class="key-series-list">
<li v-if="keySeriesLoading" class="key-series-empty">
<i class="el-icon-loading"></i>
</li>
<li v-else-if="keySeries.length === 0" class="key-series-empty">
{{ $t('trials:reading:keySeries:noData') }}
</li>
<li v-for="(kf, idx) in keySeries" :key="idx" class="key-series-item"
@click.stop.prevent="jumpToKeySeries(kf)">
<div class="key-series-img">
<img v-if="kf.PicturePath" :src="`${OSSclientConfig.basePath}${kf.PicturePath}`" />
<svg-icon v-else icon-class="image" class="svg-icon default-icon" />
</div>
<div class="key-series-info">
<div v-if="kf.MarkName" class="key-series-meta">
<div class="key-series-label">{{ $t('trials:reading:keySeries:annotationName') }}</div>
<div class="key-series-value" :title="kf.MarkName">
{{ kf.MarkName }}
</div>
</div>
<div class="key-series-meta">
<div class="key-series-label">{{ $t('trials:reading:keySeries:sopUid') }}</div>
<div class="key-series-value" :title="kf.SopInstanceUid">
{{ kf.SopInstanceUid }}
</div>
</div>
</div>
<div class="key-series-star">
<svg-icon icon-class="star" class="svg-icon" />
</div>
</li>
</ul>
<div slot="reference" class="tool-wrapper">
<div class="icon" :title="$t('trials:reading:button:keySeries')">
<i class="el-icon-star-off svg-icon" />
</div>
<div class="text">{{ $t('trials:reading:button:keySeries') }}</div>
</div>
</el-popover>
<div v-for="tool in measuredTools" :key="tool.toolName">
<el-tooltip class="item" effect="dark" placement="bottom">
<div slot="content">
@ -706,6 +748,7 @@ import downloadDicomAndNonedicom from '@/components/downloadDicomAndNonedicom'
import SignForm from '@/views/trials/components/newSignForm'
import { getCriterionReadingInfo, verifyVisitTaskQuestions, submitDicomVisitTask, setReadKeyFile } from '@/api/trials'
import { setSkipReadingCache } from '@/api/reading'
import { getMarkList } from '@/api/reading'
import { getAutoCutNextTask } from '@/api/user'
import const_ from '@/const/sign-code'
import { changeURLStatic } from '@/utils/history.js'
@ -903,6 +946,9 @@ export default {
uploadTrialCriterion: {},
uploadStatus: 'upload',
taskId: '',
keySeries: [],
keySeriesPopoverVisible: false,
keySeriesLoading: false,
signVisible: false,
signCode: null,
currentUser: zzSessionStorage.getItem('userName'),
@ -1349,6 +1395,46 @@ export default {
resetViewport() {
this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].resetViewport()
},
getKeySeriesVisitTaskId() {
const currentCanvas = this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`]
if (currentCanvas && currentCanvas[0] && currentCanvas[0].stack && currentCanvas[0].stack.visitTaskId) {
return currentCanvas[0].stack.visitTaskId
}
return this.activeSeries && this.activeSeries.visitTaskId ? this.activeSeries.visitTaskId : ''
},
async showKeySeriesPanel() {
this.keySeries = []
this.keySeriesLoading = true
const idx = this.visitTaskList.findIndex(i => i.IsCurrentTask)
if (idx === -1) return
const visitTaskId = this.visitTaskList[idx].VisitTaskId
try {
const res = await getMarkList({ visitTaskId })
if (res && res.Result) {
this.keySeries = res.Result
}
} catch (err) {
console.error(err)
} finally {
this.keySeriesLoading = false
}
},
jumpToKeySeries(kf) {
this.keySeriesPopoverVisible = false
const idx = this.visitTaskList.findIndex(i => i.IsCurrentTask)
if (idx === -1) return
const visitTaskId = this.visitTaskList[idx].VisitTaskId
if (!visitTaskId) return
let annotation = {}
try {
annotation = kf.MeasureData ? JSON.parse(kf.MeasureData) : {}
} catch (err) {
console.error(err)
}
const series = this.getSeriesInfoByMark(visitTaskId, {lesionName: kf.MarkName})
if (!series) return
this.loadImageStack(series)
},
previewConfig() {
this.activeName = '1'
this.personalConfigDialog.visible = true
@ -3030,3 +3116,135 @@ export default {
flex-grow: 1;
}
</style>
<style lang="scss">
.key-series-popper {
padding: 8px !important;
background-color: #1e1e1e !important;
border: 1px solid #4a4a4a !important;
.key-series-list {
width: 340px;
max-height: 420px;
overflow-y: auto;
margin: 0;
padding: 0;
list-style: none;
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-thumb {
background: #4a4a4a;
border-radius: 4px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
}
.key-series-empty {
text-align: center;
color: #999;
padding: 10px;
}
.key-series-item {
text-align: left;
display: flex;
align-items: center;
padding: 8px;
cursor: pointer;
background-color: #2b2b2b;
border-radius: 4px;
margin-bottom: 8px;
border: 1px solid transparent;
transition: all 0.2s ease;
&:last-child {
margin-bottom: 0;
}
&:hover {
background-color: #363636;
border-color: #555;
}
.key-series-img {
width: 60px;
height: 60px;
flex-shrink: 0;
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
margin-right: 12px;
border-radius: 2px;
img {
width: 100%;
height: 100%;
object-fit: contain;
}
.default-icon {
font-size: 24px;
color: #666;
}
}
.key-series-info {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
padding-right: 5px;
.key-series-meta {
width: 100%;
overflow: hidden;
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 4px;
&:last-child {
margin-bottom: 0;
}
}
.key-series-label {
font-size: 13px;
color: #aaa;
margin-right: 4px;
white-space: nowrap;
}
.key-series-value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
color: #ccc;
line-height: 1.2;
}
}
.key-series-star {
margin-left: 10px;
display: flex;
align-items: center;
justify-content: center;
.svg-icon {
color: #f39c12;
font-size: 18px;
}
}
}
}
</style>

View File

@ -94,7 +94,7 @@ export default {
this.resetSuvQuestions()
})
FusionEvent.$on('addAnnotation', obj => {
this.$set(obj, 'SaveEnum', 1)
// this.$set(obj, 'SaveEnum', 1)
this.addAnnotation(obj)
})
FusionEvent.$on('removeAnnotation', obj => {

View File

@ -115,7 +115,7 @@ export default {
})
if (this.groupClassify === 3) {
DicomEvent.$on('addAnnotation', obj => {
this.$set(obj, 'SaveEnum', 1)
// this.$set(obj, 'SaveEnum', 1)
this.addAnnotation(obj)
})
DicomEvent.$on('removeAnnotation', obj => {