1
continuous-integration/drone/push Build is passing Details

uat
caiyiling 2025-04-17 09:29:23 +08:00
parent aeef8eaacf
commit c7df59e564
2 changed files with 28 additions and 25 deletions

View File

@ -145,6 +145,7 @@
:model="innerFormData[`${table.Id}_${answer.RowIndex}`]"
>
<table-question-form-item
:ref="`form_${table.Id}_${answer.RowIndex}`"
:table-info="table"
:answer="answer"
:question-form="innerFormData[`${table.Id}_${answer.RowIndex}`]"
@ -624,6 +625,7 @@ export default {
}
const stateId = this.getQuestionId(7, tableInfo.TableQuestions.Questions)
answer[stateId] = state
answer.LesionState = state
tableInfo.TableQuestions.Answers.push(answer)
if (typeof annotation === 'object') {
answer.MeasureData = annotation
@ -710,6 +712,7 @@ export default {
this.$set(this.innerFormData[`${table.Id}_${rowIndex}`], 'MeasureData', null)
//
this.$set(this.innerFormData[`${table.Id}_${rowIndex}`], 'SaveTypeEnum', innerForm.RowId ? 1 : 0)
this.$refs[`form_${table.Id}_${rowIndex}`][0].getOrganList()
},
//
async deleteLesion(table, rowIndex) {
@ -792,7 +795,7 @@ export default {
}
} else {
// 10mm2
if (!(measureData && measureData.markTool === 'Length' && lesionLength >= 10 && (measureData.thick && lesionLength >= 2 * measureData.thick || !measureData.thick))) {
if (!(measureData && measureData.markTool === 'Length' && lesionLength >= 10 && (measureData.sliceThickness && lesionLength >= 2 * measureData.sliceThickness || !measureData.sliceThickness))) {
// 使10mm2
this.$confirm(this.$t('trials:reading:warnning:msg20'), {
type: 'warning',
@ -809,7 +812,7 @@ export default {
if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
type: 'warning',
@ -821,7 +824,7 @@ export default {
}
} else {
//
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg22'), {
type: 'warning',
@ -965,7 +968,7 @@ export default {
if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
type: 'warning',
@ -977,7 +980,7 @@ export default {
}
} else {
//
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg32'), {
type: 'warning',
@ -994,7 +997,7 @@ export default {
if (lesionType === 1 && lesionState === 1) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) {
// `使`
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
type: 'warning',
@ -1006,7 +1009,7 @@ export default {
}
} else {
//
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg34'), {
type: 'warning',
@ -1653,9 +1656,9 @@ export default {
if (this.activeName) {
return this.checkToolCanActive(toolName)
} else {
if (this.isBaseLineTask && (toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleRoi')) {
if (this.isBaseLineTask && (toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleROI')) {
return { isCanActiveTool: true, reason: '' }
} else if (!this.isBaseLineTask && (toolName === 'ArrowAnnotate' || toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleRoi')) {
} else if (!this.isBaseLineTask && (toolName === 'ArrowAnnotate' || toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleROI')) {
return { isCanActiveTool: true, reason: '' }
} else if (this.isBaseLineTask && toolName === 'ArrowAnnotate') {
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg54') }
@ -1678,10 +1681,10 @@ export default {
} else if (innerForm.LesionType === 0 && isLymphNodes === 0 && toolName !== 'Length') {
// '使'
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg7') }
} else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'RectangleRoi') {
} else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'RectangleROI') {
// '使'
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg8') }
} else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'RectangleRoi') {
} else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'RectangleROI') {
// '使'
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg9') }
} else if (toolName === 'ArrowAnnotate') {
@ -1696,10 +1699,10 @@ export default {
} else if (innerForm.LesionType === 0 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate') {
// 使
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg11') }
} else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleRoi') {
} else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleROI') {
// 使
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg52') }
} else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleRoi') {
} else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleROI') {
// 使
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg53') }
} else if (innerForm.LesionType === 2 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate') {

View File

@ -839,7 +839,7 @@ export default {
if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRo'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
type: 'warning',
@ -851,7 +851,7 @@ export default {
}
} else {
//
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg22'), {
type: 'warning',
@ -995,7 +995,7 @@ export default {
if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
type: 'warning',
@ -1007,7 +1007,7 @@ export default {
}
} else {
//
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg32'), {
type: 'warning',
@ -1024,7 +1024,7 @@ export default {
if (lesionType === 1 && lesionState === 1) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) {
// `使`
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
type: 'warning',
@ -1036,7 +1036,7 @@ export default {
}
} else {
//
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) {
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg34'), {
type: 'warning',
@ -1742,9 +1742,9 @@ export default {
if (this.activeName) {
return this.checkToolCanActive(toolName)
} else {
if (this.isBaseLineTask && (toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleRoi')) {
if (this.isBaseLineTask && (toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleROI')) {
return { isCanActiveTool: true, reason: '' }
} else if (!this.isBaseLineTask && (toolName === 'ArrowAnnotate' || toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleRoi')) {
} else if (!this.isBaseLineTask && (toolName === 'ArrowAnnotate' || toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleROI')) {
return { isCanActiveTool: true, reason: '' }
} else if (this.isBaseLineTask && toolName === 'ArrowAnnotate') {
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg54') }
@ -1767,10 +1767,10 @@ export default {
} else if (innerForm.LesionType === 0 && isLymphNodes === 0 && toolName !== 'Length') {
// '使'
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg7') }
} else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'RectangleRoi') {
} else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'RectangleROI') {
// '使'
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg8') }
} else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'RectangleRoi') {
} else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'RectangleROI') {
// '使'
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg9') }
} else if (toolName === 'ArrowAnnotate') {
@ -1785,10 +1785,10 @@ export default {
} else if (innerForm.LesionType === 0 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate') {
// 使
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg11') }
} else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleRoi') {
} else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleROI') {
// 使
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg52') }
} else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleRoi') {
} else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleROI') {
// 使
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg53') }
} else if (innerForm.LesionType === 2 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate') {