Compare commits

..

No commits in common. "c904b212871d0a1e2a3a66199ebad9a5fc3bfbad" and "9b4f4d4419595af413a45ee44059a1017edfdb5b" have entirely different histories.

3 changed files with 33 additions and 48 deletions

View File

@ -1540,7 +1540,7 @@ export default {
if (this.isNumber(operateStateEnum)) { if (this.isNumber(operateStateEnum)) {
this.$refs[`ecrf_${series.TaskInfo.VisitTaskId}`][0].bindAnnotationToQuestion(annotation) this.$refs[`ecrf_${series.TaskInfo.VisitTaskId}`][0].bindAnnotationToQuestion(annotation)
} else { } else {
setTimeout(()=>{this.saveCustomAnnotation(annotation)},500) this.saveCustomAnnotation(annotation)
} }
} }
} }
@ -1622,8 +1622,7 @@ export default {
if (annotation.visitTaskId === this.taskInfo.VisitTaskId) { if (annotation.visitTaskId === this.taskInfo.VisitTaskId) {
const isBound = this.$refs[`ecrf_${annotation.visitTaskId}`][0].verifyAnnotationIsBound(annotation) const isBound = this.$refs[`ecrf_${annotation.visitTaskId}`][0].verifyAnnotationIsBound(annotation)
if (isBound && this.activeTool === 'Eraser') { if (isBound && this.activeTool === 'Eraser') {
// '' this.$alert('该标记已与问题进行绑定,不允许删除!')
this.$alert(this.$t('dicom3D:ReadPage:alert:MarkToQuestionNoDel'))
const errorMsg = { message: 'annotation Not allowed to operate' } const errorMsg = { message: 'annotation Not allowed to operate' }
throw errorMsg throw errorMsg
} }
@ -3168,7 +3167,7 @@ export default {
}) })
.catch(() => {}) .catch(() => {})
}, },
async uploadScreenshots(fileName, file) { async uploadScreenshots(fileName, file) {
try { try {
file = this.convertBase64ToBlob(file) file = this.convertBase64ToBlob(file)
const trialId = this.$route.query.trialId const trialId = this.$route.query.trialId

View File

@ -496,9 +496,6 @@ export default {
this.$emit('operateImageMarker', { operateStateEnum: 6, question }) this.$emit('operateImageMarker', { operateStateEnum: 6, question })
}, },
async deleteTableCol(row, index) { 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 let loading = null
try { try {
let confirm = await this.$confirm(this.$t('trials:uploadNonDicoms:message:msg1')) let confirm = await this.$confirm(this.$t('trials:uploadNonDicoms:message:msg1'))
@ -694,26 +691,21 @@ export default {
} }
} }
if (isExistUnSaved) { if (isExistUnSaved) {
if (this.addOrEdit.type = 'add') { //
// const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), {
const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), { type: 'warning',
type: 'warning', distinguishCancelAndClose: true
distinguishCancelAndClose: true })
}) if (confirm !== 'confirm') return
if (confirm !== 'confirm') return //
// let obj = {}
let obj = {} if (!this.QuestionsForm.RowId) {
if (!this.QuestionsForm.RowId) { obj.markTableQuestions = this.markTableQuestions
obj.markTableQuestions = this.markTableQuestions obj.questionId = this.question.Id
obj.questionId = this.question.Id this.$emit('unBindAnnotationToQuestion', obj)
this.$emit('unBindAnnotationToQuestion', obj)
}
return this.addOrEdit.visible = false
} }
//
return this.$alert(this.$t('dicom3D:CustomizeQuestionFormItem:alert:markNoSaveNoclose'))
this.addOrEdit.visible = false
} else { } else {
this.addOrEdit.visible = false this.addOrEdit.visible = false
} }
@ -1193,25 +1185,21 @@ export default {
} }
} }
if (isExistUnSaved) { if (isExistUnSaved) {
if (this.addOrEdit.type = 'add') { //
// const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), {
const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), { type: 'warning',
type: 'warning', distinguishCancelAndClose: true
distinguishCancelAndClose: true })
}) if (confirm !== 'confirm') return
if (confirm !== 'confirm') return //
// let obj = {}
let obj = {} if (!this.QuestionsForm.RowId) {
if (!this.QuestionsForm.RowId) { obj.markTableQuestions = this.markTableQuestions
obj.markTableQuestions = this.markTableQuestions obj.questionId = this.question.Id
obj.questionId = this.question.Id this.$emit('unBindAnnotationToQuestion', obj)
this.$emit('unBindAnnotationToQuestion', obj)
}
return done()
} }
//
return this.$alert(this.$t('dicom3D:CustomizeQuestionFormItem:alert:markNoSaveNoclose')) done()
// this.$alert('') // this.$alert('')
} else { } else {
done() done()

View File

@ -922,15 +922,13 @@ export default {
return return
} }
this.questionMarkInfoList = questionMarkInfoList.filter(item => { this.questionMarkInfoList = questionMarkInfoList.filter(item => {
const { TableQuestionId, QuestionId, RowId } = item || {} const { TableQuestionId, QuestionId } = item || {}
if ((TableQuestionId && QuestionId === questionId && markTableQuestions.includes(TableQuestionId)) && !RowId) { if ((TableQuestionId && QuestionId === questionId && markTableQuestions.includes(TableQuestionId))) {
if (questionsMarkStatus && questionsMarkStatus[TableQuestionId]) { if (questionsMarkStatus && questionsMarkStatus[TableQuestionId]) {
delete questionsMarkStatus[TableQuestionId] delete questionsMarkStatus[TableQuestionId]
}else {
return item
} }
} else { } else {
return item return
} }
}) })
}, },