病灶保存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) const stateId = this.getQuestionId(7, tableInfo.TableQuestions.Questions)
answer[stateId] = state answer[stateId] = state
answer.LesionState = state
tableInfo.TableQuestions.Answers.push(answer) tableInfo.TableQuestions.Answers.push(answer)
if (typeof annotation === 'object') { if (typeof annotation === 'object') {
answer.MeasureData = annotation answer.MeasureData = annotation
@ -782,518 +783,523 @@ export default {
const valid = await this.$refs[`${table.Id}_${rowIndex}`][0].validate() const valid = await this.$refs[`${table.Id}_${rowIndex}`][0].validate()
if (!valid) return if (!valid) return
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`] try {
const measureData = innerForm.MeasureData const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
const lesionState = innerForm.LesionState const measureData = innerForm.MeasureData
let lesionLength = innerForm.LesionLength const lesionState = innerForm.LesionState
let lesionShort = innerForm.LesionShort let lesionLength = innerForm.LesionLength
const lymphNodes = innerForm.IsLymphNodes let lesionShort = innerForm.LesionShort
const lesionType = table.LesionType const lymphNodes = innerForm.IsLymphNodes
const lesionPart = innerForm.LesionPart const lesionType = table.LesionType
if (this.isBaseLineTask) { const lesionPart = innerForm.LesionPart
// 线 if (this.isBaseLineTask) {
// 0 // 线
if (lesionType === 0 && lesionState === 0) { // 0
if (lymphNodes === 1) { if (lesionType === 0 && lesionState === 0) {
// 使,15mm if (lymphNodes === 1) {
if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 15)) { console.log('靶病灶且状态为存在')
// 使15mm // 使,15mm
this.$confirm(this.$t('trials:reading:warnning:msg19'), { if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 15)) {
type: 'warning', // 使15mm
showCancelButton: false, this.$confirm(this.$t('trials:reading:warnning:msg19'), {
callback: action => {} type: 'warning',
}) showCancelButton: false,
loading.close() callback: action => {}
return })
} loading.close()
if ((lesionPart === '肝门淋巴结' || lesionPart === 'Lymph node-hilum of liver') && !(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 20)) { return
// 2cm }
this.$confirm(this.$t('trials:mRecist:warnning:msg2'), { if ((lesionPart === '肝门淋巴结' || lesionPart === 'Lymph node-hilum of liver') && !(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 20)) {
type: 'warning', // 2cm
showCancelButton: false, this.$confirm(this.$t('trials:mRecist:warnning:msg2'), {
callback: action => {} type: 'warning',
}) showCancelButton: false,
loading.close() callback: action => {}
return })
} loading.close()
} else { return
// 10mm2 }
if (!(measureData && measureData.markTool === 'Length' && lesionLength >= 10 && (measureData.sliceThickness && lesionLength >= 2 * measureData.sliceThickness || !measureData.sliceThickness))) { } else {
// 使10mm2 // 10mm2
this.$confirm(this.$t('trials:reading:warnning:msg20'), { if (!(measureData && measureData.markTool === 'Length' && lesionLength >= 10 && (measureData.sliceThickness && lesionLength >= 2 * measureData.sliceThickness || !measureData.sliceThickness))) {
type: 'warning', // 使10mm2
showCancelButton: false, this.$confirm(this.$t('trials:reading:warnning:msg20'), {
callback: action => {} type: 'warning',
}) showCancelButton: false,
loading.close() callback: action => {}
return })
loading.close()
return
}
} }
} }
}
// 0 // 0
if (lesionType === 1 && lesionState === 0) { if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 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:msg21'), { this.$confirm(this.$t('trials:reading:warnning:msg21'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } 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'), { this.$confirm(this.$t('trials:reading:warnning:msg22'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
} } else {
} else { // 线
// 线 // 0
// 0 if (lesionType === 0 && lesionState === 0) {
if (lesionType === 0 && lesionState === 0) { if (lymphNodes === 1) {
if (lymphNodes === 1) { // 使
// 使 if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 10)) {
if (!(measureData && measureData.markTool === 'Bidirectional' && lesionShort >= 10)) { // 使
// 使 this.$confirm(this.$t('trials:reading:warnning:msg23'), {
this.$confirm(this.$t('trials:reading:warnning:msg23'), { type: 'warning',
type: 'warning', showCancelButton: false,
showCancelButton: false, callback: action => {}
callback: action => {} })
}) loading.close()
loading.close() return
return }
} } else {
} else { //
// if (!(measureData && measureData.markTool === 'Length')) {
if (!(measureData && measureData.markTool === 'Length')) { // `使`
// `使` this.$confirm(this.$t('trials:reading:warnning:msg24'), {
this.$confirm(this.$t('trials:reading:warnning:msg24'), { type: 'warning',
type: 'warning', showCancelButton: false,
showCancelButton: false, callback: action => {}
callback: action => {} })
}) loading.close()
loading.close() return
return }
} }
} }
} // 1
// 1 if (lesionType === 0 && lesionState === 1) {
if (lesionType === 0 && lesionState === 1) { if (lymphNodes === 1) {
if (lymphNodes === 1) { // 使5mm
// 使5mm if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) { // 使
// 使 this.$confirm(this.$t('trials:reading:warnning:msg25'), {
this.$confirm(this.$t('trials:reading:warnning:msg25'), { type: 'warning',
type: 'warning', showCancelButton: false,
showCancelButton: false, callback: action => {}
callback: action => {} })
}) loading.close()
loading.close() return
return } else if (measureData && measureData.markTool === 'ArrowAnnotate') {
} else if (measureData && measureData.markTool === 'ArrowAnnotate') { const shortId = this.getQuestionId(1, table.TableQuestions.Questions)
const shortId = this.getQuestionId(1, table.TableQuestions.Questions) this.$set(innerForm, shortId, 5)
this.$set(innerForm, shortId, 5) lesionShort = 5
lesionShort = 5 }
} } else {
} else { // 5mm
// 5mm if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) { // 使
// 使 this.$confirm(this.$t('trials:reading:warnning:msg26'), {
this.$confirm(this.$t('trials:reading:warnning:msg26'), { type: 'warning',
type: 'warning', showCancelButton: false,
showCancelButton: false, callback: action => {}
callback: action => {} })
}) loading.close()
loading.close() return
return } else if (measureData && measureData.markTool === 'ArrowAnnotate') {
} else if (measureData && measureData.markTool === 'ArrowAnnotate') { const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions) this.$set(this.questionForm, lengthId, 5)
this.$set(this.questionForm, lengthId, 5) lesionLength = 5
lesionLength = 5 }
} }
} }
}
// 2 // 2
if (lesionType === 0 && lesionState === 2) { if (lesionType === 0 && lesionState === 2) {
if (lymphNodes === 1) { if (lymphNodes === 1) {
// //
if (measureData) { if (measureData) {
// //
this.$confirm(this.$t('trials:reading:warnning:msg27'), { this.$confirm(this.$t('trials:reading:warnning:msg27'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } else {
// //
if (measureData) { if (measureData) {
// //
this.$confirm(this.$t('trials:reading:warnning:msg28'), { this.$confirm(this.$t('trials:reading:warnning:msg28'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
}
// 3 // 3
if (lesionType === 0 && lesionState === 3) { if (lesionType === 0 && lesionState === 3) {
if (lymphNodes === 1) { if (lymphNodes === 1) {
if (!(measureData && (measureData.markTool === 'Bidirectional' && lesionShort < 10))) { if (!(measureData && (measureData.markTool === 'Bidirectional' && lesionShort < 10))) {
// `使,10mm` // `使,10mm`
this.$confirm(this.$t('trials:reading:warnning:msg29'), { this.$confirm(this.$t('trials:reading:warnning:msg29'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } else {
// //
if (!(measureData && measureData.markTool === 'ArrowAnnotate')) { if (!(measureData && measureData.markTool === 'ArrowAnnotate')) {
// 使 // 使
this.$confirm(this.$t('trials:reading:warnning:msg30'), { this.$confirm(this.$t('trials:reading:warnning:msg30'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} else if (measureData && measureData.markTool === 'ArrowAnnotate') { } else if (measureData && measureData.markTool === 'ArrowAnnotate') {
const lengthId = this.getQuestionId(0, table.TableQuestions.Questions) const lengthId = this.getQuestionId(0, table.TableQuestions.Questions)
this.$set(innerForm, lengthId, 0) this.$set(innerForm, lengthId, 0)
lesionLength = 0 lesionLength = 0
}
} }
} }
}
// 0 // 0
if (lesionType === 1 && lesionState === 0) { if (lesionType === 1 && lesionState === 0) {
if (lymphNodes === 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:msg31'), { this.$confirm(this.$t('trials:reading:warnning:msg31'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } 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'), { this.$confirm(this.$t('trials:reading:warnning:msg32'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
}
// 1 // 1
if (lesionType === 1 && lesionState === 1) { if (lesionType === 1 && lesionState === 1) {
if (lymphNodes === 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'), { this.$confirm(this.$t('trials:reading:warnning:msg33'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } 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'), { this.$confirm(this.$t('trials:reading:warnning:msg34'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
}
// 2 // 2
if (lesionType === 1 && lesionState === 2) { if (lesionType === 1 && lesionState === 2) {
if (lymphNodes === 1) { if (lymphNodes === 1) {
// //
if (measureData) { if (measureData) {
// //
this.$confirm(this.$t('trials:reading:warnning:msg35'), { this.$confirm(this.$t('trials:reading:warnning:msg35'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } else {
// //
if (measureData) { if (measureData) {
// //
this.$confirm(this.$t('trials:reading:warnning:msg36'), { this.$confirm(this.$t('trials:reading:warnning:msg36'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
}
// 3 // 3
if (lesionType === 1 && lesionState === 3) { if (lesionType === 1 && lesionState === 3) {
if (lymphNodes === 1) { if (lymphNodes === 1) {
// 使 // 使
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) { if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使 // 使
this.$confirm(this.$t('trials:reading:warnning:msg37'), { this.$confirm(this.$t('trials:reading:warnning:msg37'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } else {
// //
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) { if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使 // 使
this.$confirm(this.$t('trials:reading:warnning:msg38'), { this.$confirm(this.$t('trials:reading:warnning:msg38'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
}
// 0 // 0
if (lesionType === 2 && lesionState === 0) { if (lesionType === 2 && lesionState === 0) {
if (lymphNodes === 1) { if (lymphNodes === 1) {
// 使 // 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) { if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
// 使 // 使
this.$confirm(this.$t('trials:reading:warnning:msg39'), { this.$confirm(this.$t('trials:reading:warnning:msg39'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } else {
// //
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) { if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
// 使 // 使
this.$confirm(this.$t('trials:reading:warnning:msg40'), { this.$confirm(this.$t('trials:reading:warnning:msg40'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
if (measureData && measureData.markTool === 'Length' && innerForm.IntrahepaticLesion && lesionLength < 10) { if (measureData && measureData.markTool === 'Length' && innerForm.IntrahepaticLesion && lesionLength < 10) {
// 10mm // 10mm
this.$confirm(this.$t('trials:mRecist:warnning:msg3'), { this.$confirm(this.$t('trials:mRecist:warnning:msg3'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
}
// 1 // 1
if (lesionType === 2 && lesionState === 1) { if (lesionType === 2 && lesionState === 1) {
if (lymphNodes === 1) { if (lymphNodes === 1) {
// 使 // 使
if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) { if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'ArrowAnnotate'))) {
// 使 // 使
this.$confirm(this.$t('trials:reading:warnning:msg41'), { this.$confirm(this.$t('trials:reading:warnning:msg41'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } else {
// //
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) { if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
// `使` // `使`
this.$confirm(this.$t('trials:reading:warnning:msg42'), { this.$confirm(this.$t('trials:reading:warnning:msg42'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
if (measureData && measureData.markTool === 'Length' && innerForm.IntrahepaticLesion && lesionLength >= 10) { if (measureData && measureData.markTool === 'Length' && innerForm.IntrahepaticLesion && lesionLength >= 10) {
// 10mm // 10mm
this.$confirm(this.$t('trials:mRecist:warnning:msg4'), { this.$confirm(this.$t('trials:mRecist:warnning:msg4'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
}
// 2 // 2
if (lesionType === 2 && lesionState === 2) { if (lesionType === 2 && lesionState === 2) {
if (lymphNodes === 1) { if (lymphNodes === 1) {
// 使 // 使
if (measureData) { if (measureData) {
// `` // ``
this.$confirm(this.$t('trials:reading:warnning:msg43'), { this.$confirm(this.$t('trials:reading:warnning:msg43'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } else {
// //
if (measureData) { if (measureData) {
// //
this.$confirm(this.$t('trials:reading:warnning:msg44'), { this.$confirm(this.$t('trials:reading:warnning:msg44'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
}
// 3 // 3
if (lesionType === 2 && lesionState === 3) { if (lesionType === 2 && lesionState === 3) {
if (lymphNodes === 1) { if (lymphNodes === 1) {
// 使 // 使
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) { if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使 // 使
this.$confirm(this.$t('trials:reading:warnning:msg45'), { this.$confirm(this.$t('trials:reading:warnning:msg45'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
} }
} else { } else {
// //
if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) { if (!(measureData && (measureData.markTool === 'ArrowAnnotate'))) {
// 使 // 使
this.$confirm(this.$t('trials:reading:warnning:msg46'), { this.$confirm(this.$t('trials:reading:warnning:msg46'), {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: action => {} callback: action => {}
}) })
loading.close() loading.close()
return return
}
} }
} }
} }
} //
// const obj = Object.assign({}, measureData)
const obj = Object.assign({}, measureData) obj.visitTaskId = this.visitTaskId
obj.visitTaskId = this.visitTaskId obj.lesionName = innerForm.LesionName
obj.lesionName = innerForm.LesionName let picturePath = ''
let picturePath = '' if (measureData) {
if (measureData) { const base64Str = await this.getScreenshots(obj)
const base64Str = await this.getScreenshots(obj) const pictureObj = await this.uploadScreenshots(`${new Date().getTime()}`, base64Str)
const pictureObj = await this.uploadScreenshots(`${new Date().getTime()}`, base64Str) picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : ''
picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : '' }
} const answers = []
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}$/)
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) {
for (const k in innerForm) { if (reg.test(k)) {
if (reg.test(k)) { if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
if (answers.findIndex(i => i.tableQuestionId === k) === -1) { answers.push({ tableQuestionId: k, answer: innerForm[k] })
answers.push({ tableQuestionId: k, answer: innerForm[k] }) }
} }
} }
} const params = {
const params = { questionId: table.Id,
questionId: table.Id, rowId: innerForm.RowId,
rowId: innerForm.RowId, rowIndex: innerForm.RowIndex,
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({
visitTaskId: this.visitTaskId, visitTaskId: this.visitTaskId,
questionId: this.deleteTargetInfo.tableId, trialId: this.$route.query.trialId,
rowId: this.deleteTargetInfo.rowId measureData: measureData ? JSON.stringify(measureData) : '',
}) answerList: answers,
this.deleteTargetInfo = null isCanEditPosition: innerForm.IsCanEditPosition,
params.rowId = '' 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) { async uploadScreenshots(fileName, file) {