Compare commits
2 Commits
9b4f4d4419
...
c904b21287
Author | SHA1 | Date |
---|---|---|
|
c904b21287 | |
|
c5c096a592 |
|
@ -1540,7 +1540,7 @@ export default {
|
|||
if (this.isNumber(operateStateEnum)) {
|
||||
this.$refs[`ecrf_${series.TaskInfo.VisitTaskId}`][0].bindAnnotationToQuestion(annotation)
|
||||
} else {
|
||||
this.saveCustomAnnotation(annotation)
|
||||
setTimeout(()=>{this.saveCustomAnnotation(annotation)},500)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1622,7 +1622,8 @@ export default {
|
|||
if (annotation.visitTaskId === this.taskInfo.VisitTaskId) {
|
||||
const isBound = this.$refs[`ecrf_${annotation.visitTaskId}`][0].verifyAnnotationIsBound(annotation)
|
||||
if (isBound && this.activeTool === 'Eraser') {
|
||||
this.$alert('该标记已与问题进行绑定,不允许删除!')
|
||||
// '该标记已与问题进行绑定,不允许删除!'
|
||||
this.$alert(this.$t('dicom3D:ReadPage:alert:MarkToQuestionNoDel'))
|
||||
const errorMsg = { message: 'annotation Not allowed to operate' }
|
||||
throw errorMsg
|
||||
}
|
||||
|
@ -3167,7 +3168,7 @@ export default {
|
|||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
async uploadScreenshots(fileName, file) {
|
||||
async uploadScreenshots(fileName, file) {
|
||||
try {
|
||||
file = this.convertBase64ToBlob(file)
|
||||
const trialId = this.$route.query.trialId
|
||||
|
|
|
@ -496,6 +496,9 @@ export default {
|
|||
this.$emit('operateImageMarker', { operateStateEnum: 6, question })
|
||||
},
|
||||
async deleteTableCol(row, index) {
|
||||
let data = row.TableQuestions.Answers[index]
|
||||
let hasMark = Object.keys(data).some(key => this.questionsMarkStatus[`${data.RowId}_${key}`] && this.questionsMarkStatus[`${data.RowId}_${key}`].isMarked)
|
||||
if (hasMark) return this.$alert(this.$t('dicom3D:ReadPage:alert:QuestionToMarkNoDel'))
|
||||
let loading = null
|
||||
try {
|
||||
let confirm = await this.$confirm(this.$t('trials:uploadNonDicoms:message:msg1'))
|
||||
|
@ -691,21 +694,26 @@ export default {
|
|||
}
|
||||
}
|
||||
if (isExistUnSaved) {
|
||||
// 标记未保存是否确认关闭?
|
||||
const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
})
|
||||
if (confirm !== 'confirm') return
|
||||
// 清除绑定关系
|
||||
let obj = {}
|
||||
if (!this.QuestionsForm.RowId) {
|
||||
obj.markTableQuestions = this.markTableQuestions
|
||||
obj.questionId = this.question.Id
|
||||
this.$emit('unBindAnnotationToQuestion', obj)
|
||||
}
|
||||
if (this.addOrEdit.type = 'add') {
|
||||
// 标记未保存是否确认关闭?
|
||||
const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
})
|
||||
if (confirm !== 'confirm') return
|
||||
// 清除绑定关系
|
||||
let obj = {}
|
||||
if (!this.QuestionsForm.RowId) {
|
||||
obj.markTableQuestions = this.markTableQuestions
|
||||
obj.questionId = this.question.Id
|
||||
this.$emit('unBindAnnotationToQuestion', obj)
|
||||
}
|
||||
|
||||
return this.addOrEdit.visible = false
|
||||
}
|
||||
// 标记未保存无法关闭?
|
||||
return this.$alert(this.$t('dicom3D:CustomizeQuestionFormItem:alert:markNoSaveNoclose'))
|
||||
|
||||
this.addOrEdit.visible = false
|
||||
} else {
|
||||
this.addOrEdit.visible = false
|
||||
}
|
||||
|
@ -1185,21 +1193,25 @@ export default {
|
|||
}
|
||||
}
|
||||
if (isExistUnSaved) {
|
||||
//标记未保存是否确认关闭?
|
||||
const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
})
|
||||
if (confirm !== 'confirm') return
|
||||
// 清除绑定关系
|
||||
let obj = {}
|
||||
if (!this.QuestionsForm.RowId) {
|
||||
obj.markTableQuestions = this.markTableQuestions
|
||||
obj.questionId = this.question.Id
|
||||
this.$emit('unBindAnnotationToQuestion', obj)
|
||||
}
|
||||
if (this.addOrEdit.type = 'add') {
|
||||
//标记未保存是否确认关闭?
|
||||
const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
})
|
||||
if (confirm !== 'confirm') return
|
||||
// 清除绑定关系
|
||||
let obj = {}
|
||||
if (!this.QuestionsForm.RowId) {
|
||||
obj.markTableQuestions = this.markTableQuestions
|
||||
obj.questionId = this.question.Id
|
||||
this.$emit('unBindAnnotationToQuestion', obj)
|
||||
}
|
||||
|
||||
done()
|
||||
return done()
|
||||
}
|
||||
// 标记未保存无法关闭?
|
||||
return this.$alert(this.$t('dicom3D:CustomizeQuestionFormItem:alert:markNoSaveNoclose'))
|
||||
// this.$alert('存在标记信息未保存!')
|
||||
} else {
|
||||
done()
|
||||
|
|
|
@ -922,13 +922,15 @@ export default {
|
|||
return
|
||||
}
|
||||
this.questionMarkInfoList = questionMarkInfoList.filter(item => {
|
||||
const { TableQuestionId, QuestionId } = item || {}
|
||||
if ((TableQuestionId && QuestionId === questionId && markTableQuestions.includes(TableQuestionId))) {
|
||||
const { TableQuestionId, QuestionId, RowId } = item || {}
|
||||
if ((TableQuestionId && QuestionId === questionId && markTableQuestions.includes(TableQuestionId)) && !RowId) {
|
||||
if (questionsMarkStatus && questionsMarkStatus[TableQuestionId]) {
|
||||
delete questionsMarkStatus[TableQuestionId]
|
||||
}else {
|
||||
return item
|
||||
}
|
||||
} else {
|
||||
return
|
||||
return item
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue