Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-04-25 09:39:03 +08:00
commit 74f3852ecc
8 changed files with 377 additions and 267 deletions

View File

@ -1,7 +1,7 @@
<template>
<div ref="container" style="width:100%;height:100%" class="dicom-container">
<!-- 访视阅片 -->
<div v-if="readingCategory=== 1 && (CriterionType === 7 || CriterionType === 1 )" class="reading-wrapper">
<div v-if="readingCategory=== 1 && (CriterionType === 7 || ((CriterionType === 1 || CriterionType === 0) && readingVersionEnum === 1)) " class="reading-wrapper">
<VisitReview />
</div>
<div v-else-if="(isReadingTaskViewInOrder === 1 || ((isReadingTaskViewInOrder !== 1) && isShow)) && readingCategory=== 1 && CriterionType !== 0" class="reading-wrapper">
@ -234,7 +234,8 @@ export default {
isFullscreen: false,
tipVisible: false,
closeCDVisible: false,
cdVisitTaskId: ''
cdVisitTaskId: '',
readingVersionEnum: null
}
},
mounted() {
@ -346,6 +347,7 @@ export default {
localStorage.setItem('IsExistUnprocessedFeedback', res.Result.IsExistUnprocessedFeedback)
localStorage.setItem('taskInfo', JSON.stringify(res.Result))
this.readingCategory = res.Result.ReadingCategory
this.readingVersionEnum = res.Result.ReadingVersionEnum
this.questionFormChangeState = false
this.questionFormChangeNum = 0
if (this.isExistsClinicalData && this.isNeedReadClinicalData && !this.isReadClinicalData) {

View File

@ -25,7 +25,7 @@
v-if="selectArr.includes(s.VisitTaskId) && s.StudyList.length > 0"
:ref="s.VisitTaskId"
:visit-task-info="s"
:markedSeriesIds="markedSeriesIds"
:marked-series-ids="markedSeriesIds"
@activeSeries="activeSeries"
@showMultiFrame="showMultiFrame"
/>
@ -366,9 +366,9 @@
</div>
</div>
</div>
</div>
<!-- 自定义调窗 -->
<el-dialog
v-if="customWwc.visible"
@ -473,7 +473,7 @@ import {
import * as cornerstoneTools from '@cornerstonejs/tools'
import initLibraries from '@/views/trials/trials-panel/reading/dicoms/components/Fusion/js/initLibraries'
import html2canvas from 'html2canvas'
import { getTools } from './toolConfig'
import { getTools, getCustomizeStandardsTools } from './toolConfig'
import StudyList from './StudyList'
import Viewport from './Viewport'
import mRecisit from './mRecist/QuestionList'
@ -687,34 +687,11 @@ export default {
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
if (this.criterionType === 0) {
this.tools = [{
"name": "直径测量工具",
"icon": "length",
"toolName": "Length",
"i18nKey": "trials:reading:button:length",
"isDisabled": false,
"disabledReason": ''
},
{
"name": "矩形工具",
"icon": "rectangle",
"toolName": "RectangleROI",
"i18nKey": "trials:reading:button:rectangle",
"isDisabled": false,
"disabledReason": ''
},
{
"name": "箭头工具",
"icon": "arrow",
"toolName": "ArrowAnnotate",
"i18nKey": "trials:reading:button:arrowAnnotate",
"isDisabled": false,
"disabledReason": ''
}]
this.tools = getCustomizeStandardsTools(this.taskInfo.ReadingToolList)
} else {
this.tools = getTools(this.criterionType)
}
this.trialId = this.$route.query.trialId
this.readingTaskState = this.taskInfo.ReadingTaskState
if (!this.taskInfo.IsBaseLine && this.taskInfo.IsReadingTaskViewInOrder !== 0) {
@ -765,14 +742,14 @@ export default {
}
if (item.IsCurrentTask) {
this.markedSeriesIds = []
annotations.map(i=> {
annotations.map(i => {
if (i.MeasureData && i.MeasureData.seriesId) {
this.markedSeriesIds.push(i.MeasureData.seriesId)
}
})
}
}
this.visitTaskList.push({
...item,
StudyList: studyList,
@ -806,7 +783,7 @@ export default {
let keySeriesIndex = -1
// const arr = [res1.Result[0]]
const arr = res1.Result
arr.forEach((study, studyIndex) => {
arr.forEach((study, studyIndex) => {
study.SeriesList.forEach((series, seriesIndex) => {
const imageIds = []
const stack = []
@ -862,7 +839,7 @@ export default {
//
let res2 = null
if (this.criterionType === 0) {
res2 = await getCustomTag({visitTaskId: taskId})
res2 = await getCustomTag({ visitTaskId: taskId })
} else {
res2 = await getTableAnswerRowInfoList(taskId)
}
@ -939,7 +916,7 @@ export default {
//
async initLoader() {
await initLibraries()
cache.setMaxCacheSize(6 * 1024 * 1024 * 1024);
cache.setMaxCacheSize(6 * 1024 * 1024 * 1024)
let renderingEngine = getRenderingEngine(renderingEngineId)
if (!renderingEngine) {
renderingEngine = new RenderingEngine(renderingEngineId)
@ -1129,6 +1106,7 @@ export default {
// })
},
renderAnnotations(series) {
console.log('renderAnnotations')
const taskId = series.TaskInfo.VisitTaskId
if (!taskId || this.renderedTaskIds.includes(taskId)) return
this.renderedTaskIds.push(taskId)
@ -1179,9 +1157,9 @@ export default {
console.log(arr)
},
annotationAddedListener(e) {
},
annotationCompletedListener(e) {
console.log('Completed')
if (this.readingTaskState === 2) return
@ -1199,12 +1177,12 @@ export default {
annotation.sliceThickness = series.SliceThickness
annotation.numberOfFrames = isNaN(parseInt(params.frame)) ? null : parseInt(params.frame)
annotation.markTool = annotation.metadata.toolName
// this.$refs['ecrf'].setAnnotation({ annotation, toolName: annotation.metadata.toolName })
this.$refs[`ecrf_${this.lastViewportTaskId}`][0].setAnnotation({ annotation, toolName: annotation.metadata.toolName })
this.markedSeriesIds.push(series.Id)
}
this.setToolsPassive()
},
annotationModifiedListener(e) {
@ -1249,22 +1227,21 @@ export default {
annotation.numberOfFrames = isNaN(parseInt(params.frame)) ? null : parseInt(params.frame)
annotation.markTool = annotation.metadata.toolName
this.markedSeriesIds.push(series.Id)
let markName = await this.customPrompt()
const markName = await this.customPrompt()
if (markName) {
annotation.data.label = markName
this.saveCustomAnnotation(annotation)
} else {
this.removeAnnotation(annotation)
}
}
this.setToolsPassive()
},
async saveCustomAnnotation(annotation) {
try {
let measureData = Object.assign({}, annotation)
let params = {}
const measureData = Object.assign({}, annotation)
const params = {}
params.VisitTaskId = annotation.visitTaskId
params.StudyId = annotation.studyId
params.SeriesId = annotation.seriesId
@ -1272,10 +1249,10 @@ export default {
params.Id = annotation.id ? annotation.id : ''
params.MeasureData = JSON.stringify(measureData)
params.NumberOfFrames = annotation.numberOfFrames
let res = await submitCustomTag(params)
const res = await submitCustomTag(params)
annotation.id = res.Result
console.log(res)
} catch(e) {
} catch (e) {
console.log(e)
}
},
@ -1320,7 +1297,7 @@ export default {
//
let res = null
if (this.criterionType === 0) {
res = await getCustomTag({visitTaskId: visitTaskId})
res = await getCustomTag({ visitTaskId: visitTaskId })
} else {
res = await getTableAnswerRowInfoList(visitTaskId)
}
@ -1346,7 +1323,7 @@ export default {
//
let res = null
if (this.criterionType === 0) {
res = await getCustomTag({visitTaskId: visitTaskId})
res = await getCustomTag({ visitTaskId: visitTaskId })
} else {
res = await getTableAnswerRowInfoList(visitTaskId)
}
@ -1367,6 +1344,13 @@ export default {
cornerstoneTools.annotation.state.removeAnnotation(i.annotationUID)
}
})
annotations.map(i => {
if (i.MeasureData) {
const annotation = i.MeasureData
cornerstoneTools.annotation.state.addAnnotation(annotation)
this.markedSeriesIds.push(annotation.seriesId)
}
})
const renderingEngine = getRenderingEngine(renderingEngineId)
for (let i = 0; i < this.cells.length; i++) {
const viewportId = `viewport-${i}`
@ -1380,6 +1364,7 @@ export default {
if (idx === -1) return
if (annotations[idx].metadata.toolName === 'ArrowAnnotate') {
annotations[idx].data.text = obj.name
annotations[idx].data.label = obj.name
} else {
annotations[idx].data.label = obj.name
}
@ -1795,9 +1780,9 @@ export default {
bindHotKey() {
const container = this.$refs['container']
container.addEventListener('keydown', event => {
let idx = this.hotKeyList.findIndex(i => i.code === event.code && i.ctrlKey === event.ctrlKey && i.shiftKey === event.shiftKey && i.altKey === event.altKey)
const idx = this.hotKeyList.findIndex(i => i.code === event.code && i.ctrlKey === event.ctrlKey && i.shiftKey === event.shiftKey && i.altKey === event.altKey)
if (idx === -1) return
let shortcutKeyEnum = this.hotKeyList[idx].shortcutKeyEnum
const shortcutKeyEnum = this.hotKeyList[idx].shortcutKeyEnum
if (shortcutKeyEnum === 1) {
//
@ -1890,7 +1875,6 @@ export default {
fitToType(forceFitToWindow) {
this.forceFitToWindow = !forceFitToWindow
this.$refs[`viewport-${this.activeViewportIndex}`][0].resize(forceFitToWindow)
},
//
toggleFullScreen(e, index) {
@ -2596,7 +2580,7 @@ export default {
}
}
}
.personal_config {
::v-deep .el-tabs__content{
height: 450px;

View File

@ -1306,11 +1306,10 @@ export default {
this.activeName = ''
}
loading.close()
} catch(e) {
} catch (e) {
console.log(e)
loading.close()
}
},
//
async uploadScreenshots(fileName, file) {
@ -1377,9 +1376,6 @@ export default {
this.$set(this.innerFormData[`${obj.tableId}_${obj.rowIndex}`], 'IsLymphNodes', i.val)
} else if (i.questionMark === 5) {
this.$set(this.innerFormData[`${obj.tableId}_${obj.rowIndex}`], 'LesionOrgan', i.val)
if (innerForm.LesionType === 2) {
this.setNewTargetState(obj.tableId, obj.rowIndex)
}
}
})
}
@ -1622,9 +1618,17 @@ export default {
let lesionLength = null
let lesionShort = null
if (innerForm.MeasureData) {
//
lesionLength = innerForm.LesionLength ? innerForm.LesionLength : null
lesionShort = innerForm.LesionShort ? innerForm.LesionShort : null
if (innerForm.MeasureData.metadata.toolName === 'Length') {
const referencedImageId = innerForm.MeasureData.metadata.referencedImageId
const length = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].length
lesionLength = length ? parseFloat(length).toFixed(this.digitPlaces) : length
} else if (innerForm.MeasureData.metadata.toolName === 'Bidirectional') {
const referencedImageId = innerForm.MeasureData.metadata.referencedImageId
const length = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].length
lesionLength = length ? parseFloat(length).toFixed(this.digitPlaces) : length
const short = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].width
lesionShort = short ? parseFloat(short).toFixed(this.digitPlaces) : short
}
this.$emit('setMarkName', {
annotationUID: innerForm.MeasureData.annotationUID,
name: answer.LesionName

View File

@ -110,10 +110,10 @@ import {
utilities as csUtils
} from '@cornerstonejs/core'
import * as cornerstoneTools from '@cornerstonejs/tools'
import cornerstoneDICOMImageLoader from '@cornerstonejs/dicom-image-loader';
const {
ToolGroupManager
} = cornerstoneTools
import cornerstoneDICOMImageLoader from '@cornerstonejs/dicom-image-loader'
// const {
// ToolGroupManager
// } = cornerstoneTools
import { vec3 } from 'gl-matrix'
export default {
name: 'ImageViewport',
@ -312,7 +312,7 @@ export default {
newImageIdIndex = numImages - 1
}
// viewport.setImageIdIndex(newImageIdIndex)
csUtils.jumpToSlice(viewport.element, {imageIndex: newImageIdIndex})
csUtils.jumpToSlice(viewport.element, { imageIndex: newImageIdIndex })
cornerstoneTools.utilities.cine.stopClip(viewport.element)
},
setZoom(ratio) {
@ -338,7 +338,6 @@ export default {
viewport.setZoom(1)
viewport.render()
}
},
async prefetchMetadataInformation(imageIdsToPrefetch) {
let taskPromises = []
@ -363,10 +362,9 @@ export default {
await viewport.setStack(this.series.Stack, obj.SliceIndex)
// cornerstoneTools.utilities.stackContextPrefetch.enable(viewport.element)
viewport.render()
} catch(e) {
} catch (e) {
console.log(e)
}
},
cornerstoneToolsMouseMove(e) {
const { currentPoints } = e.detail
@ -408,7 +406,7 @@ export default {
this.viewportId
)
// viewport.setImageIdIndex(sliceIdx)
csUtils.jumpToSlice(viewport.element, {imageIndex: sliceIdx})
csUtils.jumpToSlice(viewport.element, { imageIndex: sliceIdx })
viewport.render()
},
sliderMouseup(e) {
@ -438,7 +436,7 @@ export default {
this.viewportId
)
// viewport.setImageIdIndex(sliceIdx)
csUtils.jumpToSlice(viewport.element, {imageIndex: sliceIdx})
csUtils.jumpToSlice(viewport.element, { imageIndex: sliceIdx })
viewport.render()
},
sliderMouseleave(e) {

View File

@ -9,7 +9,7 @@
:label="$t('trials:reading:tabTitle:review')"
name="read"
>
<read-page ref="readPage"/>
<read-page ref="readPage" />
</el-tab-pane>
<!-- 报告 -->
<el-tab-pane
@ -17,12 +17,12 @@
:label="$t('trials:reading:tabTitle:report')"
name="report"
>
<report-page
v-if="activeName === 'report' && taskInfo.CriterionType !== 0"
<report-page
v-if="activeName === 'report' && taskInfo.CriterionType !== 0"
@setReadingTaskState="setReadingTaskState"
/>
<customize-report-page
v-if="activeName === 'report' && taskInfo.CriterionType === 0"
<customize-report-page
v-if="activeName === 'report' && taskInfo.CriterionType === 0"
@setReadingTaskState="setReadingTaskState"
/>
</el-tab-pane>

View File

@ -832,9 +832,27 @@ export default {
async saveLesion(table, rowIndex) {
const valid = await this.$refs[`${table.Id}_${rowIndex}`][0].validate()
if (!valid) return
const loading = this.$loading({ fullscreen: true })
let loading = null
try {
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
if (table.LesionType === 0 && this.isBaseLineTask && !innerForm.IsLymphNodes && !innerForm.IntrahepaticLesion) {
const arr = Object.values(this.innerFormData).filter(
obj => !obj.IntrahepaticLesion && (obj.LesionOrgan === '肝脏' || obj.LesionOrgan === 'Liver') && obj.LesionType === 0 && obj.SaveTypeEnum === 2
)
if (arr.length === 0) {
const confirm = await this.$confirm(
this.$t('trials:mRecist:warnning:msg7'),
{
type: 'warning',
distinguishCancelAndClose: true
}
)
if (confirm !== 'confirm') return
}
}
loading = this.$loading({ fullscreen: true })
const measureData = innerForm.MeasureData
const lesionState = innerForm.LesionState
let lesionLength = innerForm.LesionLength
@ -842,6 +860,7 @@ export default {
const lymphNodes = innerForm.IsLymphNodes
const lesionType = table.LesionType
const lesionPart = innerForm.LesionPart
const intrahepaticLesion = innerForm.IntrahepaticLesion
if (this.isBaseLineTask) {
// 线
// 0
@ -1174,6 +1193,16 @@ export default {
}
} else {
//
if (intrahepaticLesion && !(measureData && measureData.markTool === 'Length')) {
// 使
this.$confirm(this.$t('trials:mRecist:warnning:msg6'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg40'), {
@ -1212,6 +1241,16 @@ export default {
return
}
} else {
if (innerForm.IntrahepaticLesion && !(measureData && (measureData.markTool === 'Length'))) {
// `使`
this.$confirm(this.$t('trials:mRecist:warnning:msg6'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
//
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
// `使`
@ -1356,7 +1395,9 @@ export default {
loading.close()
} catch (e) {
console.log(e)
loading.close()
if (loading) {
loading.close()
}
}
},
//
@ -1704,9 +1745,17 @@ export default {
let lesionLength = null
let lesionShort = null
if (innerForm.MeasureData) {
//
lesionLength = innerForm.LesionLength ? innerForm.LesionLength : null
lesionShort = innerForm.LesionShort ? innerForm.LesionShort : null
if (innerForm.MeasureData.metadata.toolName === 'Length') {
const referencedImageId = innerForm.MeasureData.metadata.referencedImageId
const length = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].length
lesionLength = length ? parseFloat(length).toFixed(this.digitPlaces) : length
} else if (innerForm.MeasureData.metadata.toolName === 'Bidirectional') {
const referencedImageId = innerForm.MeasureData.metadata.referencedImageId
const length = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].length
lesionLength = length ? parseFloat(length).toFixed(this.digitPlaces) : length
const short = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].width
lesionShort = short ? parseFloat(short).toFixed(this.digitPlaces) : short
}
this.$emit('setMarkName', {
annotationUID: innerForm.MeasureData.annotationUID,
name: answer.LesionName
@ -1816,6 +1865,7 @@ export default {
const rowIndex = this.activeName.split('_')[1]
const innerForm = this.innerFormData[`${tableId}_${rowIndex}`]
const isLymphNodes = innerForm.IsLymphNodes
const intrahepaticLesion = innerForm.IntrahepaticLesion
if (!innerForm.MeasureData) {
if (this.isBaseLineTask) {
if (innerForm.LesionType === 0 && isLymphNodes === 1 && toolName !== 'Bidirectional') {
@ -1851,6 +1901,10 @@ export default {
} else if (innerForm.LesionType === 2 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate') {
// 使
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg12') }
} else if (innerForm.LesionType === 2 && isLymphNodes === 0 && toolName !== 'Length' && intrahepaticLesion) {
// 使
// 使
return { isCanActiveTool: false, reason: this.$t('trials:mRecist:warnning:msg5') }
} else if (innerForm.LesionType === 2 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate') {
// 使
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg13') }

View File

@ -1,237 +1,275 @@
const config = {
"standards": [
'standards': [
{
"type": 1,
"name": "RECIST 1.1",
"tools": [
{
"name": "直径测量工具",
"icon": "length",
"toolName": "Length",
"i18nKey": "trials:reading:button:length",
"isDisabled": false,
"disabledReason": ''
'type': 1,
'name': 'RECIST 1.1',
'tools': [
{
'name': '直径测量工具',
'icon': 'length',
'toolName': 'Length',
'i18nKey': 'trials:reading:button:length',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "长短径测量工具",
"icon": "bidirection",
"toolName": "Bidirectional",
"i18nKey": "trials:reading:button:bidirectional",
"isDisabled": false,
"disabledReason": ''
{
'name': '长短径测量工具',
'icon': 'bidirection',
'toolName': 'Bidirectional',
'i18nKey': 'trials:reading:button:bidirectional',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "矩形工具",
"icon": "rectangle",
"toolName": "RectangleROI",
"i18nKey": "trials:reading:button:rectangle",
"isDisabled": false,
"disabledReason": ''
{
'name': '矩形工具',
'icon': 'rectangle',
'toolName': 'RectangleROI',
'i18nKey': 'trials:reading:button:rectangle',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "箭头工具",
"icon": "arrow",
"toolName": "ArrowAnnotate",
"i18nKey": "trials:reading:button:arrowAnnotate",
"isDisabled": false,
"disabledReason": ''
{
'name': '箭头工具',
'icon': 'arrow',
'toolName': 'ArrowAnnotate',
'i18nKey': 'trials:reading:button:arrowAnnotate',
'isDisabled': false,
'disabledReason': ''
}
]
},
{
"type": 2,
"name": "Lugano 2014",
"tools": [
{
"name": "直径测量工具",
"icon": "length",
"toolName": "Length",
"i18nKey": "trials:reading:button:length",
"isDisabled": false,
"disabledReason": ''
'type': 2,
'name': 'Lugano 2014',
'tools': [
{
'name': '直径测量工具',
'icon': 'length',
'toolName': 'Length',
'i18nKey': 'trials:reading:button:length',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "长短径测量工具",
"icon": "bidirection",
"toolName": "Bidirectional",
"i18nKey": "trials:reading:button:bidirectional",
"isDisabled": false,
"disabledReason": ''
{
'name': '长短径测量工具',
'icon': 'bidirection',
'toolName': 'Bidirectional',
'i18nKey': 'trials:reading:button:bidirectional',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "矩形工具",
"icon": "rectangle",
"toolName": "RectangleROI",
"i18nKey": "trials:reading:button:rectangle",
"isDisabled": false,
"disabledReason": ''
{
'name': '矩形工具',
'icon': 'rectangle',
'toolName': 'RectangleROI',
'i18nKey': 'trials:reading:button:rectangle',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "箭头工具",
"icon": "arrow",
"toolName": "ArrowAnnotate",
"i18nKey": "trials:reading:button:arrowAnnotate",
"isDisabled": false,
"disabledReason": ''
{
'name': '箭头工具',
'icon': 'arrow',
'toolName': 'ArrowAnnotate',
'i18nKey': 'trials:reading:button:arrowAnnotate',
'isDisabled': false,
'disabledReason': ''
}
]
},
{
"type": 3,
"name": "iRECIST",
"tools": [
{
"name": "直径测量工具",
"icon": "length",
"toolName": "Length",
"i18nKey": "trials:reading:button:length",
"isDisabled": false,
"disabledReason": ''
'type': 3,
'name': 'iRECIST',
'tools': [
{
'name': '直径测量工具',
'icon': 'length',
'toolName': 'Length',
'i18nKey': 'trials:reading:button:length',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "长短径测量工具",
"icon": "bidirection",
"toolName": "Bidirectional",
"i18nKey": "trials:reading:button:bidirectional",
"isDisabled": false,
"disabledReason": ''
{
'name': '长短径测量工具',
'icon': 'bidirection',
'toolName': 'Bidirectional',
'i18nKey': 'trials:reading:button:bidirectional',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "矩形工具",
"icon": "rectangle",
"toolName": "RectangleROI",
"i18nKey": "trials:reading:button:rectangle",
"isDisabled": false,
"disabledReason": ''
{
'name': '矩形工具',
'icon': 'rectangle',
'toolName': 'RectangleROI',
'i18nKey': 'trials:reading:button:rectangle',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "箭头工具",
"icon": "arrow",
"toolName": "ArrowAnnotate",
"i18nKey": "trials:reading:button:arrowAnnotate",
"isDisabled": false,
"disabledReason": ''
{
'name': '箭头工具',
'icon': 'arrow',
'toolName': 'ArrowAnnotate',
'i18nKey': 'trials:reading:button:arrowAnnotate',
'isDisabled': false,
'disabledReason': ''
}
]
},
{
"type": 7,
"name": "mRECIST HCC",
"tools": [
{
"name": "直径测量工具",
"icon": "length",
"toolName": "Length",
"i18nKey": "trials:reading:button:length",
"isDisabled": false,
"disabledReason": ''
'type': 7,
'name': 'mRECIST HCC',
'tools': [
{
'name': '直径测量工具',
'icon': 'length',
'toolName': 'Length',
'i18nKey': 'trials:reading:button:length',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "长短径测量工具",
"icon": "bidirection",
"toolName": "Bidirectional",
"i18nKey": "trials:reading:button:bidirectional",
"isDisabled": false,
"disabledReason": ''
{
'name': '长短径测量工具',
'icon': 'bidirection',
'toolName': 'Bidirectional',
'i18nKey': 'trials:reading:button:bidirectional',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "矩形工具",
"icon": "rectangle",
"toolName": "RectangleROI",
"i18nKey": "trials:reading:button:rectangle",
"isDisabled": false,
"disabledReason": ''
{
'name': '矩形工具',
'icon': 'rectangle',
'toolName': 'RectangleROI',
'i18nKey': 'trials:reading:button:rectangle',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "箭头工具",
"icon": "arrow",
"toolName": "ArrowAnnotate",
"i18nKey": "trials:reading:button:arrowAnnotate",
"isDisabled": false,
"disabledReason": ''
{
'name': '箭头工具',
'icon': 'arrow',
'toolName': 'ArrowAnnotate',
'i18nKey': 'trials:reading:button:arrowAnnotate',
'isDisabled': false,
'disabledReason': ''
}
]
},
{
"type": 10,
"name": "PCWG3",
"tools": [
{
"name": "矩形工具",
"icon": "rectangle",
"toolName": "RectangleROI",
"i18nKey": "trials:reading:button:rectangle",
"isDisabled": false,
"disabledReason": ''
'type': 10,
'name': 'PCWG3',
'tools': [
{
'name': '矩形工具',
'icon': 'rectangle',
'toolName': 'RectangleROI',
'i18nKey': 'trials:reading:button:rectangle',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "箭头工具",
"icon": "arrow",
"toolName": "ArrowAnnotate",
"i18nKey": "trials:reading:button:arrowAnnotate",
"isDisabled": false,
"disabledReason": ''
{
'name': '箭头工具',
'icon': 'arrow',
'toolName': 'ArrowAnnotate',
'i18nKey': 'trials:reading:button:arrowAnnotate',
'isDisabled': false,
'disabledReason': ''
}
]
},
{
"type": 17,
"name": "PCWG3",
"tools": [
{
"name": "直径测量工具",
"icon": "length",
"toolName": "Length",
"i18nKey": "trials:reading:button:length",
"isDisabled": false,
"disabledReason": ''
'type': 17,
'name': 'PCWG3',
'tools': [
{
'name': '直径测量工具',
'icon': 'length',
'toolName': 'Length',
'i18nKey': 'trials:reading:button:length',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "矩形工具",
"icon": "rectangle",
"toolName": "RectangleROI",
"i18nKey": "trials:reading:button:rectangle",
"isDisabled": false,
"disabledReason": ''
{
'name': '矩形工具',
'icon': 'rectangle',
'toolName': 'RectangleROI',
'i18nKey': 'trials:reading:button:rectangle',
'isDisabled': false,
'disabledReason': ''
},
{
"name": "箭头工具",
"icon": "arrow",
"toolName": "ArrowAnnotate",
"i18nKey": "trials:reading:button:arrowAnnotate",
"isDisabled": false,
"disabledReason": ''
{
'name': '箭头工具',
'icon': 'arrow',
'toolName': 'ArrowAnnotate',
'i18nKey': 'trials:reading:button:arrowAnnotate',
'isDisabled': false,
'disabledReason': ''
}
]
},
{
"type": 19,
"name": "IVUS定量评估",
"tools": []
'type': 19,
'name': 'IVUS定量评估',
'tools': []
},
{
"type": 20,
"name": "OCT定量评估",
"tools": []
'type': 20,
'name': 'OCT定量评估',
'tools': []
},
{
"type": 21,
"name": "MRI-PDFF",
"tools": [
{
"name": "圆形测量",
"icon": "oval",
"toolName": "Probe",
"i18nKey": "trials:reading:button:circle",
"isDisabled": false,
"disabledReason": ''
'type': 21,
'name': 'MRI-PDFF',
'tools': [
{
'name': '圆形测量',
'icon': 'oval',
'toolName': 'Probe',
'i18nKey': 'trials:reading:button:circle',
'isDisabled': false,
'disabledReason': ''
}
]
}
],
'customizeStandards': [
{
'name': '直径测量工具',
'icon': 'length',
'toolName': 'Length',
'i18nKey': 'trials:reading:button:length',
'isDisabled': false,
'disabledReason': ''
},
{
'name': '长短径测量工具',
'icon': 'bidirection',
'toolName': 'Bidirectional',
'i18nKey': 'trials:reading:button:bidirectional',
'isDisabled': false,
'disabledReason': ''
},
{
'name': '矩形工具',
'icon': 'rectangle',
'toolName': 'RectangleROI',
'i18nKey': 'trials:reading:button:rectangle',
'isDisabled': false,
'disabledReason': ''
},
{
'name': '箭头工具',
'icon': 'arrow',
'toolName': 'ArrowAnnotate',
'i18nKey': 'trials:reading:button:arrowAnnotate',
'isDisabled': false,
'disabledReason': ''
}
]
}
const getTools = (criterionType) => {
const standard = config.standards.find(s => s.type === criterionType);
return standard?.tools || [];
};
export {config, getTools}
const standard = config.standards.find(s => s.type === criterionType)
return standard?.tools || []
}
const getCustomizeStandardsTools = (toolNames) => {
const filteredTools = config.customizeStandards.filter(item => toolNames.includes(item.toolName))
return filteredTools || []
}
export { config, getTools, getCustomizeStandardsTools }

View File

@ -64,6 +64,28 @@
</el-radio>
</el-radio-group>
</el-form-item>
<!-- 测量工具 -->
<el-form-item
v-if="CriterionType === 0 && form.ReadingTool === 0 && form.ReadingTaskViewEnum === 1"
:label="$t('trials:readingUnit:readingRules:title:measureTool')"
>
<el-checkbox-group
v-model="form.ReadingToolList"
:disabled="
isConfirm ||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
"
>
<el-checkbox
v-for="tool in tools"
:key="tool.toolName"
:label="tool.toolName"
name="ReadingToolList"
>
{{ $t(`${tool.i18nKey}`) }}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<!--检查类型筛选-->
<el-form-item
:label="$t('trials:processCfg:form:IsImageFilter')"
@ -593,6 +615,7 @@
</template>
<script>
import { getCriterionReadingInfo, setCriterionReadingInfo } from '@/api/trials'
import { config } from '@/views/trials/trials-panel/reading/dicoms3D/components/toolConfig'
export default {
name: 'ReadingRules',
props: {
@ -614,6 +637,8 @@ export default {
TrialId: '',
ImagePlatform: null,
ReadingTool: 0,
ReadingVersionEnum: null,
ReadingToolList: [],
ReadingTaskViewEnum: null,
IsImageLabeled: null,
IsReadingShowSubjectInfo: null,
@ -807,9 +832,14 @@ export default {
modalityList: [],
CriterionModalitys: [],
modalityIsCheck: false, //
tools: []
}
},
mounted() {
if (this.CriterionType === 0) {
this.tools = [...config.customizeStandards]
}
this.initPage()
},
computed: {