病灶保存bug修复
continuous-integration/drone/push Build is passing Details

uat
caiyiling 2025-04-16 17:10:15 +08:00
parent a0c5c7d304
commit 38c06595aa
1 changed files with 474 additions and 468 deletions

View File

@ -639,6 +639,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
@ -782,518 +783,523 @@ export default {
const valid = await this.$refs[`${table.Id}_${rowIndex}`][0].validate()
if (!valid) return
const loading = this.$loading({ fullscreen: true })
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
const measureData = innerForm.MeasureData
const lesionState = innerForm.LesionState
let lesionLength = innerForm.LesionLength
let lesionShort = innerForm.LesionShort
const lymphNodes = innerForm.IsLymphNodes
const lesionType = table.LesionType
const lesionPart = innerForm.LesionPart
if (this.isBaseLineTask) {
// 线
// 0
if (lesionType === 0 && lesionState === 0) {
if (lymphNodes === 1) {
// 使,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()
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()
return
}
} else {
// 10mm2
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',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
try {
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
const measureData = innerForm.MeasureData
const lesionState = innerForm.LesionState
let lesionLength = innerForm.LesionLength
let lesionShort = innerForm.LesionShort
const lymphNodes = innerForm.IsLymphNodes
const lesionType = table.LesionType
const lesionPart = innerForm.LesionPart
if (this.isBaseLineTask) {
// 线
// 0
if (lesionType === 0 && lesionState === 0) {
if (lymphNodes === 1) {
console.log('靶病灶且状态为存在')
// 使,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()
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()
return
}
} else {
// 10mm2
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',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
}
}
}
// 0
if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
return
// 0
if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg21'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
return
}
}
}
}
} else {
// 线
// 0
if (lesionType === 0 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 10)) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg23'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (!(measureData && measureData.markTool === 'Length')) {
// `使`
this.$confirm(this.$t('trials:reading:warnning:msg24'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
} else {
// 线
// 0
if (lesionType === 0 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 10)) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg23'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (!(measureData && measureData.markTool === 'Length')) {
// `使`
this.$confirm(this.$t('trials:reading:warnning:msg24'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
}
}
}
// 1
if (lesionType === 0 && lesionState === 1) {
if (lymphNodes === 1) {
// 使5mm
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg25'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
const shortId = this.getQuestionId(1, table.TableQuestions.Questions)
this.$set(innerForm, shortId, 5)
lesionShort = 5
}
} else {
// 5mm
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg26'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
this.$set(this.questionForm, lengthId, 5)
lesionLength = 5
// 1
if (lesionType === 0 && lesionState === 1) {
if (lymphNodes === 1) {
// 使5mm
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg25'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
const shortId = this.getQuestionId(1, table.TableQuestions.Questions)
this.$set(innerForm, shortId, 5)
lesionShort = 5
}
} else {
// 5mm
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg26'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
this.$set(this.questionForm, lengthId, 5)
lesionLength = 5
}
}
}
}
// 2
if (lesionType === 0 && lesionState === 2) {
if (lymphNodes === 1) {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg27'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg28'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
// 2
if (lesionType === 0 && lesionState === 2) {
if (lymphNodes === 1) {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg27'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg28'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
}
}
}
// 3
if (lesionType === 0 && lesionState === 3) {
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()
return
}
} else {
//
if (!(measureData && measureData.markTool === 'ArrowAnnotate')) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg30'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
this.$set(innerForm, lengthId, 0)
lesionLength = 0
// 3
if (lesionType === 0 && lesionState === 3) {
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()
return
}
} else {
//
if (!(measureData && measureData.markTool === 'ArrowAnnotate')) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg30'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
} else if (measureData && measureData.markTool === 'ArrowAnnotate') {
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
this.$set(innerForm, lengthId, 0)
lesionLength = 0
}
}
}
}
// 0
if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
return
// 0
if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg31'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
return
}
}
}
}
// 1
if (lesionType === 1 && lesionState === 1) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
// `使`
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
return
// 1
if (lesionType === 1 && lesionState === 1) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) {
// `使`
this.$confirm(this.$t('trials:reading:warnning:msg33'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
return
}
}
}
}
// 2
if (lesionType === 1 && lesionState === 2) {
if (lymphNodes === 1) {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg35'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg36'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
// 2
if (lesionType === 1 && lesionState === 2) {
if (lymphNodes === 1) {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg35'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg36'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
}
}
}
// 3
if (lesionType === 1 && lesionState === 3) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg37'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg38'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
// 3
if (lesionType === 1 && lesionState === 3) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg37'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg38'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
}
}
}
// 0
if (lesionType === 2 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg39'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
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()
return
// 0
if (lesionType === 2 && lesionState === 0) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg39'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
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()
return
}
}
}
}
// 1
if (lesionType === 2 && lesionState === 1) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg41'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
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()
return
// 1
if (lesionType === 2 && lesionState === 1) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg41'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
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()
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()
return
}
}
}
}
// 2
if (lesionType === 2 && lesionState === 2) {
if (lymphNodes === 1) {
// 使
if (measureData) {
// ``
this.$confirm(this.$t('trials:reading:warnning:msg43'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg44'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
// 2
if (lesionType === 2 && lesionState === 2) {
if (lymphNodes === 1) {
// 使
if (measureData) {
// ``
this.$confirm(this.$t('trials:reading:warnning:msg43'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (measureData) {
//
this.$confirm(this.$t('trials:reading:warnning:msg44'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
}
}
}
// 3
if (lesionType === 2 && lesionState === 3) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg45'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg46'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
// 3
if (lesionType === 2 && lesionState === 3) {
if (lymphNodes === 1) {
// 使
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg45'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
} else {
//
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使
this.$confirm(this.$t('trials:reading:warnning:msg46'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
})
loading.close()
return
}
}
}
}
}
//
const obj = Object.assign({}, measureData)
obj.visitTaskId = this.visitTaskId
obj.lesionName = innerForm.LesionName
let picturePath = ''
if (measureData) {
const base64Str = await this.getScreenshots(obj)
const pictureObj = await this.uploadScreenshots(`${new Date().getTime()}`, base64Str)
picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : ''
}
const answers = []
const reg = new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
for (const k in innerForm) {
if (reg.test(k)) {
if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
answers.push({ tableQuestionId: k, answer: innerForm[k] })
//
const obj = Object.assign({}, measureData)
obj.visitTaskId = this.visitTaskId
obj.lesionName = innerForm.LesionName
let picturePath = ''
if (measureData) {
const base64Str = await this.getScreenshots(obj)
const pictureObj = await this.uploadScreenshots(`${new Date().getTime()}`, base64Str)
picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : ''
}
const answers = []
const reg = new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
for (const k in innerForm) {
if (reg.test(k)) {
if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
answers.push({ tableQuestionId: k, answer: innerForm[k] })
}
}
}
}
const params = {
questionId: table.Id,
rowId: innerForm.RowId,
rowIndex: innerForm.RowIndex,
visitTaskId: this.visitTaskId,
trialId: this.$route.query.trialId,
measureData: measureData ? JSON.stringify(measureData) : '',
answerList: answers,
isCanEditPosition: innerForm.IsCanEditPosition,
studyId: measureData ? measureData.studyId : '',
seriesId: measureData ? measureData.seriesId : '',
instanceId: measureData ? measureData.instanceId : '',
numberOfFrames: measureData ? measureData.frame : null,
picturePath: picturePath,
organInfoId: innerForm.OrganInfoId,
markTool: measureData ? measureData.markTool : '',
isDicomReading: innerForm.IsDicomReading
}
if (this.deleteTargetInfo && this.deleteTargetInfo.newLesionName === innerForm.LesionName) {
await deleteReadingRowAnswer({
const params = {
questionId: table.Id,
rowId: innerForm.RowId,
rowIndex: innerForm.RowIndex,
visitTaskId: this.visitTaskId,
questionId: this.deleteTargetInfo.tableId,
rowId: this.deleteTargetInfo.rowId
})
this.deleteTargetInfo = null
params.rowId = ''
trialId: this.$route.query.trialId,
measureData: measureData ? JSON.stringify(measureData) : '',
answerList: answers,
isCanEditPosition: innerForm.IsCanEditPosition,
studyId: measureData ? measureData.studyId : '',
seriesId: measureData ? measureData.seriesId : '',
instanceId: measureData ? measureData.instanceId : '',
numberOfFrames: measureData ? measureData.frame : null,
picturePath: picturePath,
organInfoId: innerForm.OrganInfoId,
markTool: measureData ? measureData.markTool : '',
isDicomReading: innerForm.IsDicomReading
}
if (this.deleteTargetInfo && this.deleteTargetInfo.newLesionName === innerForm.LesionName) {
await deleteReadingRowAnswer({
visitTaskId: this.visitTaskId,
questionId: this.deleteTargetInfo.tableId,
rowId: this.deleteTargetInfo.rowId
})
this.deleteTargetInfo = null
params.rowId = ''
}
const res = await submitTableQuestion(params)
if (res.IsSuccess) {
//
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.getTableQuestions()
this.$emit('getAnnotations', this.visitTaskId)
this.activeName = ''
}
loading.close()
} catch(e) {
loading.close()
}
const res = await submitTableQuestion(params)
if (res.IsSuccess) {
//
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.getTableQuestions()
this.$emit('getAnnotations', this.visitTaskId)
this.activeName = ''
}
loading.close()
},
//
async uploadScreenshots(fileName, file) {