阅片保存病灶逻辑更改
parent
cdcc98efeb
commit
b04530ddd2
File diff suppressed because it is too large
Load Diff
|
|
@ -1,4 +1,4 @@
|
|||
<template>
|
||||
<template>
|
||||
<el-form v-if="isRender" ref="measurementForm" v-loading="loading" :model="questionForm" size="mini"
|
||||
class="measurement-form">
|
||||
<div class="base-dialog-body">
|
||||
|
|
@ -277,7 +277,8 @@ export default {
|
|||
splitLesionTargetPPD: null,
|
||||
splitLesionTargetLDi: null,
|
||||
splitLesionTargetSDi: null,
|
||||
saveLoading: false
|
||||
saveLoading: false,
|
||||
validationDialogVisible: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -300,7 +301,24 @@ export default {
|
|||
handleReadingChart(e) {
|
||||
this.$emit('handleReadingChart', e)
|
||||
},
|
||||
scrollHandle() {
|
||||
async showValidationDialog(msg) {
|
||||
if (this.validationDialogVisible) {
|
||||
return false
|
||||
}
|
||||
this.validationDialogVisible = true
|
||||
try {
|
||||
await this.$confirm(msg, {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false
|
||||
})
|
||||
} catch (e) {
|
||||
} finally {
|
||||
this.validationDialogVisible = false
|
||||
}
|
||||
return false
|
||||
}, scrollHandle() {
|
||||
for (const k in this.$refs) {
|
||||
if (k.indexOf('select_') === -1) continue
|
||||
if (this.$refs[k] instanceof Array) {
|
||||
|
|
@ -1065,22 +1083,16 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
// 评估状态为“存在”的淋巴结靶病灶,长径应大于15 mm,请使用长短径测量工具添加标记。
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 15 && lesionLength >= 2 * measureData.thick)) {
|
||||
this.$confirm(this.$t('trials:lugano:message:validState1'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState1'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 评估状态为“存在”的非淋巴结靶病灶,长径应大于10 mm,请使用长短径测量工具添加标记。
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 10 && lesionLength >= 2 * measureData.thick)) {
|
||||
this.$confirm(this.$t('trials:lugano:message:validState2'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState2'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1092,22 +1104,16 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg21'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
|
||||
this.$confirm(this.$t('trials:lugano:message:validState12'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState12'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1120,11 +1126,8 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 15)) {
|
||||
// 状态为“存在”的淋巴结靶病灶,长径应大于15 mm,请使用长短径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:lugano:message:validState3'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState3'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1132,11 +1135,8 @@ export default {
|
|||
// 非淋巴结靶病灶 长短径测量工具
|
||||
if (!(measureData && measureData.type === 'Bidirectional')) {
|
||||
// 状态为“存在”的非淋巴结靶病灶,长径应大于10 mm,请使用长短径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:lugano:message:validState4'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState4'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1148,11 +1148,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用箭头工具,长径、短径记录为5mm
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg25'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg25'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -1167,11 +1164,8 @@ export default {
|
|||
// 非淋巴结靶病灶 箭头工具,长径记录为5mm
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg26'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg26'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -1191,11 +1185,8 @@ export default {
|
|||
// 淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg27'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg27'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1203,11 +1194,8 @@ export default {
|
|||
// 非淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 状态为无法评估的非淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg28'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg28'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1220,20 +1208,14 @@ export default {
|
|||
// 淋巴结靶病灶 使用箭头工具 measureData.type === 'ArrowAnnotate' ||
|
||||
if (!(measureData && (measureData.type === 'Bidirectional'))) {
|
||||
// 评估状态为消失的淋巴结靶病灶需使用箭头工具或长短径工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState5'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState5'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'Bidirectional' && lesionLength > 15) {
|
||||
// 评估状态为消失的淋巴结靶病灶,短径应不大于15mm!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState6'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState6'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1251,11 +1233,8 @@ export default {
|
|||
// 非淋巴结靶病灶 箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:warnning:validState7'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:warnning:validState7'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1280,11 +1259,8 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 15)) {
|
||||
// 状态为“疾病进展”的淋巴结靶病灶,长径应大于15 mm,请使用长短径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:lugano:message:validState7'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState7'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1292,11 +1268,8 @@ export default {
|
|||
// 非淋巴结靶病灶 直径测量工具
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 10)) {
|
||||
// 状态为“疾病进展”的非淋巴结靶病灶,长径应大于10 mm,请使用长短径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:lugano:message:validState8'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState8'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1309,11 +1282,8 @@ export default {
|
|||
// 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg31'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1321,11 +1291,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState9'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState9'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1338,11 +1305,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg33'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1350,11 +1314,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 矩形工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为显著增大的非淋巴结非靶病灶需使用矩形工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState10'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState10'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1367,11 +1328,8 @@ export default {
|
|||
// 淋巴结靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg35'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg35'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1379,11 +1337,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg36'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg36'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1396,11 +1351,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate' || (measureData.type === 'Bidirectional' && lesionLength < 15)))) {
|
||||
// 评估状态为消失的淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:lgmsg37'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:lgmsg37'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1408,11 +1360,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg38'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg38'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1425,11 +1374,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg39'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg39'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1437,11 +1383,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的非淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState11'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState11'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1483,11 +1426,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg43'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg43'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1495,11 +1435,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg44'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg44'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1512,11 +1449,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate' || (measureData.type === 'Bidirectional' && lesionLength < 15)))) {
|
||||
// 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:lgmsg45'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:lgmsg45'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1524,11 +1458,8 @@ export default {
|
|||
// 箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg46'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg46'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<template>
|
||||
<template>
|
||||
<el-form v-if="isRender" ref="measurementForm" v-loading="loading" :model="questionForm" size="mini"
|
||||
class="measurement-form">
|
||||
<div class="base-dialog-body">
|
||||
|
|
@ -277,7 +277,8 @@ export default {
|
|||
splitLesionTargetPPD: null,
|
||||
splitLesionTargetLDi: null,
|
||||
splitLesionTargetSDi: null,
|
||||
saveLoading: false
|
||||
saveLoading: false,
|
||||
validationDialogVisible: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -300,7 +301,24 @@ export default {
|
|||
handleReadingChart(e) {
|
||||
this.$emit('handleReadingChart', e)
|
||||
},
|
||||
scrollHandle() {
|
||||
async showValidationDialog(msg) {
|
||||
if (this.validationDialogVisible) {
|
||||
return false
|
||||
}
|
||||
this.validationDialogVisible = true
|
||||
try {
|
||||
await this.$confirm(msg, {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false
|
||||
})
|
||||
} catch (e) {
|
||||
} finally {
|
||||
this.validationDialogVisible = false
|
||||
}
|
||||
return false
|
||||
}, scrollHandle() {
|
||||
for (const k in this.$refs) {
|
||||
if (k.indexOf('select_') === -1) continue
|
||||
if (this.$refs[k] instanceof Array) {
|
||||
|
|
@ -1065,22 +1083,16 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
// 评估状态为“存在”的淋巴结靶病灶,长径应大于15 mm,请使用长短径测量工具添加标记。
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 15 && lesionLength >= 2 * measureData.thick)) {
|
||||
this.$confirm(this.$t('trials:lugano:message:validState1'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState1'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 评估状态为“存在”的非淋巴结靶病灶,长径应大于10 mm,请使用长短径测量工具添加标记。
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 10 && lesionLength >= 2 * measureData.thick)) {
|
||||
this.$confirm(this.$t('trials:lugano:message:validState2'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState2'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1092,22 +1104,16 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg21'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
|
||||
this.$confirm(this.$t('trials:lugano:message:validState12'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState12'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1120,11 +1126,8 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 15)) {
|
||||
// 状态为“存在”的淋巴结靶病灶,长径应大于15 mm,请使用长短径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:lugano:message:validState3'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState3'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1132,11 +1135,8 @@ export default {
|
|||
// 非淋巴结靶病灶 长短径测量工具
|
||||
if (!(measureData && measureData.type === 'Bidirectional')) {
|
||||
// 状态为“存在”的非淋巴结靶病灶,长径应大于10 mm,请使用长短径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:lugano:message:validState4'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState4'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1148,11 +1148,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用箭头工具,长径、短径记录为5mm
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg25'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg25'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -1167,11 +1164,8 @@ export default {
|
|||
// 非淋巴结靶病灶 箭头工具,长径记录为5mm
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg26'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg26'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -1191,11 +1185,8 @@ export default {
|
|||
// 淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg27'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg27'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1203,11 +1194,8 @@ export default {
|
|||
// 非淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 状态为无法评估的非淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg28'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg28'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1220,20 +1208,14 @@ export default {
|
|||
// 淋巴结靶病灶 使用箭头工具 measureData.type === 'ArrowAnnotate' ||
|
||||
if (!(measureData && (measureData.type === 'Bidirectional'))) {
|
||||
// 评估状态为消失的淋巴结靶病灶需使用箭头工具或长短径工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState5'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState5'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'Bidirectional' && lesionLength > 15) {
|
||||
// 评估状态为消失的淋巴结靶病灶,短径应不大于15mm!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState6'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState6'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1251,11 +1233,8 @@ export default {
|
|||
// 非淋巴结靶病灶 箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:warnning:validState7'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:warnning:validState7'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1280,11 +1259,8 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 15)) {
|
||||
// 状态为“疾病进展”的淋巴结靶病灶,长径应大于15 mm,请使用长短径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:lugano:message:validState7'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState7'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1292,11 +1268,8 @@ export default {
|
|||
// 非淋巴结靶病灶 直径测量工具
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionLength > 10)) {
|
||||
// 状态为“疾病进展”的非淋巴结靶病灶,长径应大于10 mm,请使用长短径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:lugano:message:validState8'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState8'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1309,11 +1282,8 @@ export default {
|
|||
// 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg31'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1321,11 +1291,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState9'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState9'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1338,11 +1305,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg33'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1350,11 +1314,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 矩形工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为显著增大的非淋巴结非靶病灶需使用矩形工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState10'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState10'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1367,11 +1328,8 @@ export default {
|
|||
// 淋巴结靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg35'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg35'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1379,11 +1337,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg36'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg36'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1396,11 +1351,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate' || (measureData.type === 'Bidirectional' && lesionLength < 15)))) {
|
||||
// 评估状态为消失的淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:lgmsg37'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:lgmsg37'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1408,11 +1360,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg38'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg38'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1425,11 +1374,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg39'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg39'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1437,11 +1383,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的非淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:lugano:message:validState11'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:lugano:message:validState11'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1483,11 +1426,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg43'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg43'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1495,11 +1435,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg44'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg44'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1512,11 +1449,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate' || (measureData.type === 'Bidirectional' && lesionLength < 15)))) {
|
||||
// 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:lgmsg45'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:lgmsg45'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1524,11 +1458,8 @@ export default {
|
|||
// 箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg46'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg46'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<template>
|
||||
<template>
|
||||
<el-form v-if="isRender" ref="measurementForm" v-loading="loading" :model="questionForm" size="mini"
|
||||
class="measurement-form">
|
||||
<div class="base-dialog-body">
|
||||
|
|
@ -199,7 +199,8 @@ export default {
|
|||
digitPlaces: 0,
|
||||
focusQs: null,
|
||||
currentMarkTool: '',
|
||||
saveLoading: false
|
||||
saveLoading: false,
|
||||
validationDialogVisible: false
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -217,7 +218,24 @@ export default {
|
|||
handleReadingChart(e) {
|
||||
this.$emit('handleReadingChart', e)
|
||||
},
|
||||
validateLesionCount(rule, value, callback) {
|
||||
async showValidationDialog(msg) {
|
||||
if (this.validationDialogVisible) {
|
||||
return false
|
||||
}
|
||||
this.validationDialogVisible = true
|
||||
try {
|
||||
await this.$confirm(msg, {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false
|
||||
})
|
||||
} catch (e) {
|
||||
} finally {
|
||||
this.validationDialogVisible = false
|
||||
}
|
||||
return false
|
||||
}, validateLesionCount(rule, value, callback) {
|
||||
// const reg = /^[1-9][0-9]?$|^100$/
|
||||
// const reg = /^(0+)|[^\d]+/g
|
||||
const reg = /^(?:[1-9]|[1-9][0-9])$/
|
||||
|
|
@ -586,11 +604,8 @@ export default {
|
|||
// 病灶状态为“存在”的新病灶,请使用箭头工具添加标记2
|
||||
if (this.lesionType === 2 && lesionState === 2) {
|
||||
if (!(measureData && measureData.type === 'ArrowAnnotate')) {
|
||||
this.$confirm(this.$t('trials:readingPGWC:warnning:msg2'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingPGWC:warnning:msg2'))
|
||||
|
||||
this.saveLoading = false
|
||||
return
|
||||
}
|
||||
|
|
@ -599,11 +614,8 @@ export default {
|
|||
// 病灶状态为“存在”的既往新病灶,请使用箭头工具添加标记2
|
||||
if (this.lesionType === 3 && lesionState === 2) {
|
||||
if (!(measureData && measureData.type === 'ArrowAnnotate')) {
|
||||
this.$confirm(this.$t('trials:readingPGWC:warnning:msg3'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingPGWC:warnning:msg3'))
|
||||
|
||||
this.saveLoading = false
|
||||
return
|
||||
}
|
||||
|
|
@ -611,11 +623,8 @@ export default {
|
|||
// 病灶状态为“良性”的既往新病灶,请使用箭头工具添加标记3
|
||||
if (this.lesionType === 3 && lesionState === 3) {
|
||||
if (!(measureData && measureData.type === 'ArrowAnnotate')) {
|
||||
this.$confirm(this.$t('trials:readingPGWC:warnning:msg4'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingPGWC:warnning:msg4'))
|
||||
|
||||
this.saveLoading = false
|
||||
return
|
||||
}
|
||||
|
|
@ -623,11 +632,8 @@ export default {
|
|||
// 病灶状态为“消失”的既往新病灶,请使用箭头工具添加标记1
|
||||
if (this.lesionType === 3 && lesionState === 1) {
|
||||
if (!(measureData && measureData.type === 'ArrowAnnotate')) {
|
||||
this.$confirm(this.$t('trials:readingPGWC:warnning:msg5'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingPGWC:warnning:msg5'))
|
||||
|
||||
this.saveLoading = false
|
||||
return
|
||||
}
|
||||
|
|
@ -635,11 +641,8 @@ export default {
|
|||
// 病灶状态为“不可评估”的既往新病灶,不需要添加标记4
|
||||
if (this.lesionType === 3 && lesionState === 4) {
|
||||
if (measureData) {
|
||||
this.$confirm(this.$t('trials:readingPGWC:warnning:msg6'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingPGWC:warnning:msg6'))
|
||||
|
||||
this.saveLoading = false
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<template>
|
||||
<template>
|
||||
<el-form v-if="isRender" ref="measurementForm" v-loading="loading" :model="questionForm" size="mini"
|
||||
class="measurement-form">
|
||||
<div class="base-dialog-body">
|
||||
|
|
@ -218,7 +218,8 @@ export default {
|
|||
deleteInfo: null,
|
||||
pictureBaseStr: '',
|
||||
currentMarkTool: '',
|
||||
saveLoading: false
|
||||
saveLoading: false,
|
||||
validationDialogVisible: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -235,7 +236,24 @@ export default {
|
|||
handleReadingChart(e) {
|
||||
this.$emit('handleReadingChart', e)
|
||||
},
|
||||
async initForm() {
|
||||
async showValidationDialog(msg) {
|
||||
if (this.validationDialogVisible) {
|
||||
return false
|
||||
}
|
||||
this.validationDialogVisible = true
|
||||
try {
|
||||
await this.$confirm(msg, {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false
|
||||
})
|
||||
} catch (e) {
|
||||
} finally {
|
||||
this.validationDialogVisible = false
|
||||
}
|
||||
return false
|
||||
}, async initForm() {
|
||||
const loading = this.$loading({ fullscreen: true })
|
||||
const closeLoading = loading.close.bind(loading)
|
||||
loading.close = () => {
|
||||
|
|
@ -797,11 +815,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具,短径大于等于15mm
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 15)) {
|
||||
// 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记,且短径须大于15mm!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg19'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg19'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -809,11 +824,8 @@ export default {
|
|||
// 非淋巴结靶病灶 直径测量工具 长径须大于等于10mm且不小于2倍层厚
|
||||
if (!(measureData && measureData.type === 'Length' && lesionLength >= 10 && (measureData.thick && lesionLength >= 2 * measureData.thick || !measureData.thick))) {
|
||||
// 评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记,长径须大于10mm且不小于2倍层厚!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg20'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg20'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -826,11 +838,8 @@ export default {
|
|||
// 淋巴结非靶病灶 必须使用长短径测量工具或箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg21'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -838,11 +847,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具或箭头工具
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg22'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg22'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -856,11 +862,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具
|
||||
if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 10)) {
|
||||
// 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg23'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg23'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -868,11 +871,8 @@ export default {
|
|||
// 非淋巴结靶病灶 直径测量工具
|
||||
if (!(measureData && measureData.type === 'Length')) {
|
||||
// `评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg24'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg24'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -884,11 +884,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用箭头工具,短径记录为5mm
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg25'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg25'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -900,11 +897,8 @@ export default {
|
|||
// 非淋巴结靶病灶 箭头工具,长径记录为5mm
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg26'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg26'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -921,11 +915,8 @@ export default {
|
|||
// 淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg27'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg27'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -933,11 +924,8 @@ export default {
|
|||
// 非淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 状态为无法评估的非淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg28'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg28'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -968,11 +956,8 @@ export default {
|
|||
// }
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' && lesionShort < 10))) {
|
||||
// `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg29'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg29'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -980,11 +965,8 @@ export default {
|
|||
// 非淋巴结靶病灶 箭头工具
|
||||
if (!(measureData && measureData.type === 'ArrowAnnotate')) {
|
||||
// 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg30'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg30'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -1001,11 +983,8 @@ export default {
|
|||
// 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg31'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1013,11 +992,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg32'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg32'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1030,11 +1006,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
|
||||
// `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg33'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1042,11 +1015,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
|
||||
// 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg34'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg34'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1059,11 +1029,8 @@ export default {
|
|||
// 淋巴结靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg35'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg35'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1071,11 +1038,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg36'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg36'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1088,11 +1052,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate' || (measureData.type === 'Bidirectional' && lesionShort < 10)))) {
|
||||
// 评估状态为消失的淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg37'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg37'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1100,11 +1061,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg38'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg38'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1117,11 +1075,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg39'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg39'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1129,11 +1084,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg40'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg40'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1146,11 +1098,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为疑似的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg41'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg41'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1158,11 +1107,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// `评估状态为疑似的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg42'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg42'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1175,11 +1121,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg43'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg43'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1187,11 +1130,8 @@ export default {
|
|||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg44'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg44'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1204,11 +1144,8 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate' || (measureData.type === 'Bidirectional' && lesionShort < 10)))) {
|
||||
// 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg45'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg45'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -1216,11 +1153,8 @@ export default {
|
|||
// 箭头工具
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg46'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg46'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<template>
|
||||
<template>
|
||||
<el-form v-if="isRender" ref="measurementForm" v-loading="loading" :model="questionForm" size="mini"
|
||||
class="measurement-form">
|
||||
<div class="base-dialog-body">
|
||||
|
|
@ -209,7 +209,8 @@ export default {
|
|||
deleteInfo: null,
|
||||
pictureBaseStr: '',
|
||||
currentMarkTool: '',
|
||||
saveLoading: false
|
||||
saveLoading: false,
|
||||
validationDialogVisible: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -226,7 +227,24 @@ export default {
|
|||
handleReadingChart(e) {
|
||||
this.$emit('handleReadingChart', e)
|
||||
},
|
||||
async initForm() {
|
||||
async showValidationDialog(msg) {
|
||||
if (this.validationDialogVisible) {
|
||||
return false
|
||||
}
|
||||
this.validationDialogVisible = true
|
||||
try {
|
||||
await this.$confirm(msg, {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false
|
||||
})
|
||||
} catch (e) {
|
||||
} finally {
|
||||
this.validationDialogVisible = false
|
||||
}
|
||||
return false
|
||||
}, async initForm() {
|
||||
const loading = this.$loading({ fullscreen: true })
|
||||
const closeLoading = loading.close.bind(loading)
|
||||
loading.close = () => {
|
||||
|
|
@ -722,11 +740,8 @@ export default {
|
|||
// 靶病灶 直径测量工具 长径须大于等于10mm且不小于2倍层厚
|
||||
if (!(measureData && measureData.type === 'Length' && lesionLength >= 10 && (measureData.thick && lesionLength >= 2 * measureData.thick || !measureData.thick))) {
|
||||
// 病灶状态为“存在”的靶病灶,长径应大于10mm且不小于2倍层厚。请使用直径测量工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg06'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg06'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -736,11 +751,8 @@ export default {
|
|||
if (this.lesionType === 1 && lesionState === 0) {
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
|
||||
// 病灶状态为“存在”的非靶病灶,请使用直径测量工具或矩形工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg07'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg07'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -751,11 +763,8 @@ export default {
|
|||
if (this.lesionType === 0 && lesionState === 0) {
|
||||
if (!(measureData && measureData.type === 'Length')) {
|
||||
// `病灶状态为“存在”的靶病灶,请使用直径测量工具添加标记。`
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg08'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg08'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -764,11 +773,8 @@ export default {
|
|||
if (this.lesionType === 0 && lesionState === 1) {
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 病灶状态为“太小”的靶病灶,请使用箭头工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg09'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg09'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -782,11 +788,8 @@ export default {
|
|||
if (this.lesionType === 0 && lesionState === 2) {
|
||||
if (measureData) {
|
||||
// 病灶状态为“无法评估”的靶病灶,不需要添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg10'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg10'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -796,11 +799,8 @@ export default {
|
|||
if (this.lesionType === 0 && lesionState === 3) {
|
||||
if (!(measureData && measureData.type === 'ArrowAnnotate')) {
|
||||
// 病灶状态为“消失”的靶病灶,请使用箭头工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg11'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg11'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
} else if (measureData && measureData.type === 'ArrowAnnotate') {
|
||||
|
|
@ -814,11 +814,8 @@ export default {
|
|||
if (this.lesionType === 1 && lesionState === 0) {
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
|
||||
// 病灶状态为“存在”的非靶病灶,请使用直径测量工具或矩形工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg12'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg12'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -828,11 +825,8 @@ export default {
|
|||
if (this.lesionType === 1 && lesionState === 1) {
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
|
||||
// 病灶状态为“显著增大”的非靶病灶,请使用直径测量工具或矩形工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg13'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg13'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -842,11 +836,8 @@ export default {
|
|||
if (this.lesionType === 1 && lesionState === 2) {
|
||||
if (measureData) {
|
||||
// 病灶状态为“无法评估”的非靶病灶,不需要添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg14'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg14'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -856,11 +847,8 @@ export default {
|
|||
if (this.lesionType === 1 && lesionState === 3) {
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 病灶状态为“消失”的非靶病灶,请使用箭头工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg15'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg15'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -870,11 +858,8 @@ export default {
|
|||
if (this.lesionType === 2 && lesionState === 0) {
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 病灶状态为“明确”的新病灶,请使用直径测量工具或箭头工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg16'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg16'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -884,11 +869,8 @@ export default {
|
|||
if (this.lesionType === 2 && lesionState === 1) {
|
||||
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
|
||||
// 病灶状态为“疑似”的新病灶,请使用直径测量工具或箭头工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg17'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg17'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -898,11 +880,8 @@ export default {
|
|||
if (this.lesionType === 2 && lesionState === 2) {
|
||||
if (measureData) {
|
||||
// 病灶状态为“无法评估”的新病灶,不需要添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg18'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg18'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
@ -912,11 +891,8 @@ export default {
|
|||
if (this.lesionType === 2 && lesionState === 3) {
|
||||
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
|
||||
// 病灶状态为“消失”的新病灶,请使用箭头工具添加标记。
|
||||
this.$confirm(this.$t('trials:readingBM:warnning:msg19'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
await this.showValidationDialog(this.$t('trials:readingBM:warnning:msg19'))
|
||||
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -283,6 +283,7 @@ export default {
|
|||
imageQualityIssuesId: '',
|
||||
outerSaveLoading: false,
|
||||
rowSaveLoadingMap: {},
|
||||
validationDialogVisible: false,
|
||||
|
||||
|
||||
merge: { visible: false, loading: false },
|
||||
|
|
@ -325,6 +326,24 @@ export default {
|
|||
handleReadingChart(e) {
|
||||
this.$emit('handleReadingChart', e)
|
||||
},
|
||||
async showValidationDialog(msg) {
|
||||
if (this.validationDialogVisible) {
|
||||
return false
|
||||
}
|
||||
this.validationDialogVisible = true
|
||||
try {
|
||||
await this.$confirm(msg, {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false
|
||||
})
|
||||
} catch (e) {
|
||||
} finally {
|
||||
this.validationDialogVisible = false
|
||||
}
|
||||
return false
|
||||
},
|
||||
// 融合
|
||||
async handleMerge(answers, questionId, orderMark) {
|
||||
this.lesionData = []
|
||||
|
|
@ -994,24 +1013,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具,短径大于等于15mm
|
||||
if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 15)) {
|
||||
// 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记,且短径须大于15mm!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg19'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg19'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结靶病灶 直径测量工具 长径须大于等于10mm且不小于2倍层厚
|
||||
if (!(measureData && measureData.markTool === 'Length' && lesionLength >= 10 && (measureData.sliceThickness && lesionLength >= 2 * measureData.sliceThickness || !measureData.sliceThickness))) {
|
||||
// 评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记,长径须大于10mm且不小于2倍层厚!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg20'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg20'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1023,12 +1032,7 @@ export default {
|
|||
// 淋巴结非靶病灶 必须使用长短径测量工具或箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI' || measureData.markTool === "RectangleRoi"))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg21'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
|
|
@ -1036,12 +1040,7 @@ export default {
|
|||
console.log(measureData, 'measureData')
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI' || measureData.markTool === "RectangleRoi"))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg22'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg22'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1054,24 +1053,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具
|
||||
if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 10)) {
|
||||
// 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg23'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg23'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结靶病灶 直径测量工具
|
||||
if (!(measureData && measureData.markTool === 'Length')) {
|
||||
// `评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg24'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg24'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1082,12 +1071,7 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用箭头工具,短径记录为5mm
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg25'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg25'))
|
||||
return
|
||||
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
|
||||
const shortId = this.getQuestionId(1, table.TableQuestions.Questions)
|
||||
|
|
@ -1099,12 +1083,7 @@ export default {
|
|||
// 非淋巴结靶病灶 箭头工具,长径记录为5mm
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg26'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg26'))
|
||||
return
|
||||
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
|
||||
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
|
||||
|
|
@ -1121,24 +1100,14 @@ export default {
|
|||
// 淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg27'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg27'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 状态为无法评估的非淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg28'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg28'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1149,24 +1118,14 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' && lesionShort < 10))) {
|
||||
// `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg29'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg29'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结靶病灶 箭头工具
|
||||
if (!(measureData && measureData.markTool === 'ArrowAnnotate')) {
|
||||
// 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg30'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg30'))
|
||||
return
|
||||
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
|
||||
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
|
||||
|
|
@ -1183,24 +1142,14 @@ export default {
|
|||
// 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI' || measureData.markTool === "RectangleRoi"))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg31'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI' || measureData.markTool === "RectangleRoi"))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg32'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg32'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1212,24 +1161,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI' || measureData.markTool === "RectangleRoi"))) {
|
||||
// `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg33'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI' || measureData.markTool === "RectangleRoi"))) {
|
||||
// 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg34'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg34'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1241,24 +1180,14 @@ export default {
|
|||
// 淋巴结靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg35'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg35'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg36'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg36'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1270,24 +1199,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate' || (measureData.markTool === 'Bidirectional' && lesionShort < 10)))) {
|
||||
// 评估状态为消失的淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg37'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg37'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg38'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg38'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1299,24 +1218,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg39'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg39'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg40'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg40'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1328,24 +1237,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为疑似的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg41'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg41'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// `评估状态为疑似的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg42'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg42'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1357,24 +1256,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg43'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg43'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg44'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg44'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1386,24 +1275,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate' || (measureData.markTool === 'Bidirectional' && lesionShort < 10)))) {
|
||||
// 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg45'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg45'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg46'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg46'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -281,6 +281,7 @@ export default {
|
|||
imageQualityIssuesId: '',
|
||||
outerSaveLoading: false,
|
||||
rowSaveLoadingMap: {},
|
||||
validationDialogVisible: false,
|
||||
|
||||
merge: { visible: false, loading: false },
|
||||
lesionData: [],
|
||||
|
|
@ -321,6 +322,24 @@ export default {
|
|||
handleReadingChart(e) {
|
||||
this.$emit('handleReadingChart', e)
|
||||
},
|
||||
async showValidationDialog(msg) {
|
||||
if (this.validationDialogVisible) {
|
||||
return false
|
||||
}
|
||||
this.validationDialogVisible = true
|
||||
try {
|
||||
await this.$confirm(msg, {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false
|
||||
})
|
||||
} catch (e) {
|
||||
} finally {
|
||||
this.validationDialogVisible = false
|
||||
}
|
||||
return false
|
||||
},
|
||||
// 融合
|
||||
async handleMerge(answers, questionId, orderMark) {
|
||||
this.lesionData = []
|
||||
|
|
@ -1002,34 +1021,19 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具,短径大于等于15mm
|
||||
if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 15)) {
|
||||
// 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记,且短径须大于15mm!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg19'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg19'))
|
||||
return
|
||||
}
|
||||
if ((lesionPart === '肝门淋巴结' || lesionPart === 'Lymph node-hilum of liver') && !(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 20)) {
|
||||
// 靶病灶部位为肝门淋巴结时,选择要求时短轴≥2cm
|
||||
this.$confirm(this.$t('trials:mRecist:warnning:msg2'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:mRecist:warnning:msg2'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结靶病灶 直径测量工具 长径须大于等于10mm且不小于2倍层厚
|
||||
if (!(measureData && measureData.markTool === 'Length' && lesionLength >= 10 && (measureData.sliceThickness && lesionLength >= 2 * measureData.sliceThickness || !measureData.sliceThickness))) {
|
||||
// 评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记,长径须大于10mm且不小于2倍层厚!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg20'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg20'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1041,24 +1045,14 @@ export default {
|
|||
// 淋巴结非靶病灶 必须使用长短径测量工具或箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg21'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具或箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg22'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg22'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1071,24 +1065,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具
|
||||
if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 10)) {
|
||||
// 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg23'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg23'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结靶病灶 直径测量工具
|
||||
if (!(measureData && measureData.markTool === 'Length')) {
|
||||
// `评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg24'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg24'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1099,12 +1083,7 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用箭头工具,短径记录为5mm
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg25'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg25'))
|
||||
return
|
||||
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
|
||||
const shortId = this.getQuestionId(1, table.TableQuestions.Questions)
|
||||
|
|
@ -1116,12 +1095,7 @@ export default {
|
|||
// 非淋巴结靶病灶 箭头工具,长径记录为5mm
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg26'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg26'))
|
||||
return
|
||||
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
|
||||
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
|
||||
|
|
@ -1138,24 +1112,14 @@ export default {
|
|||
// 淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg27'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg27'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结靶病灶 不需要添加标记
|
||||
if (measureData) {
|
||||
// 状态为无法评估的非淋巴结靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg28'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg28'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1166,24 +1130,14 @@ export default {
|
|||
if (lymphNodes === 1) {
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' && lesionShort < 10))) {
|
||||
// `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg29'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg29'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结靶病灶 箭头工具
|
||||
if (!(measureData && measureData.markTool === 'ArrowAnnotate')) {
|
||||
// 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg30'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg30'))
|
||||
return
|
||||
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
|
||||
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
|
||||
|
|
@ -1200,24 +1154,14 @@ export default {
|
|||
// 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) {
|
||||
// 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg31'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
|
||||
// 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg32'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg32'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1229,24 +1173,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) {
|
||||
// `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg33'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
|
||||
// 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg34'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg34'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1258,24 +1192,14 @@ export default {
|
|||
// 淋巴结靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg35'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg35'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 无标记
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结非靶病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg36'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg36'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1287,24 +1211,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate' || measureData.markTool === 'Bidirectional'))) {
|
||||
// 评估状态为消失的淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg37'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg37'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结非靶病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg38'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg38'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1316,44 +1230,24 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg39'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg39'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (intrahepaticLesion && !(measureData && measureData.markTool === 'Length')) {
|
||||
// 评估状态为存在的非淋巴结新病灶需使用直径测量工具添加标记!
|
||||
this.$confirm(this.$t('trials:mRecist:warnning:msg6'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:mRecist:warnning:msg6'))
|
||||
return
|
||||
}
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg40'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg40'))
|
||||
return
|
||||
}
|
||||
if (measureData && measureData.markTool === 'Length' && innerForm.IntrahepaticLesion && lesionLength < 10) {
|
||||
// 病灶状态为“明确”的典型肝内病灶,长径应不小于10mm。
|
||||
this.$confirm(this.$t('trials:mRecist:warnning:msg3'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:mRecist:warnning:msg3'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1365,44 +1259,24 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为疑似的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg41'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg41'))
|
||||
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()
|
||||
await this.showValidationDialog(this.$t('trials:mRecist:warnning:msg6'))
|
||||
return
|
||||
}
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// `评估状态为疑似的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg42'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg42'))
|
||||
return
|
||||
}
|
||||
if (measureData && measureData.markTool === 'Length' && innerForm.IntrahepaticLesion && lesionLength >= 10) {
|
||||
// 病灶状态为“疑似”的典型肝内病灶,长径应小于10mm。
|
||||
this.$confirm(this.$t('trials:mRecist:warnning:msg4'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:mRecist:warnning:msg4'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1414,24 +1288,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg43'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg43'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (measureData) {
|
||||
// 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg44'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg44'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1443,24 +1307,14 @@ export default {
|
|||
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate' || measureData.markTool === 'Bidirectional'))) {
|
||||
// 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg45'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg45'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg46'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => { }
|
||||
})
|
||||
loading.close()
|
||||
await this.showValidationDialog(this.$t('trials:reading:warnning:msg46'))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
@ -1533,6 +1387,9 @@ export default {
|
|||
}
|
||||
} finally {
|
||||
this.$set(this.rowSaveLoadingMap, rowKey, false)
|
||||
if (loading) {
|
||||
loading.close()
|
||||
}
|
||||
}
|
||||
},
|
||||
// 上传截图
|
||||
|
|
|
|||
Loading…
Reference in New Issue