diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/TableQuestionItem.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/TableQuestionItem.vue index ef92f27a..cf5a5eef 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/TableQuestionItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/TableQuestionItem.vue @@ -572,36 +572,44 @@ export default { } FusionEvent.$emit('addOrUpdateAnnotations', { data }) } - if (!isInit) { - // if (this.questionForm.RowId) { - // this.$set(this.questionForm, 'saveTypeEnum', 1) - // } else { - // this.$set(this.questionForm, 'saveTypeEnum', 0) - // } - // saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断) - if (this.questionForm.OtherMeasureData) { - var annotation = Object.assign({}, this.questionForm.OtherMeasureData) + // if (!isInit) { + // // if (this.questionForm.RowId) { + // // this.$set(this.questionForm, 'saveTypeEnum', 1) + // // } else { + // // this.$set(this.questionForm, 'saveTypeEnum', 0) + // // } + // // saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断) + // if (this.questionForm.OtherMeasureData) { + // var annotation = Object.assign({}, this.questionForm.OtherMeasureData) - if (annotation && this.firstRenderAnnotation) { - for (const k in annotation.data.cachedStats) { - if (annotation.data.cachedStats[k].pointsInShape.length !== 0) { - this.firstRenderAnnotation = false - break - } - } - } + // if (annotation && this.firstRenderAnnotation) { + // for (const k in annotation.data.cachedStats) { + // if (annotation.data.cachedStats[k].pointsInShape.length !== 0) { + // this.firstRenderAnnotation = false + // break + // } + // } + // } + // } else { + // this.firstRenderAnnotation = false + // } + // if (!this.firstRenderAnnotation) { + // if (this.questionForm.RowId) { + // this.$set(this.questionForm, 'saveTypeEnum', 1) + // } else { + // this.$set(this.questionForm, 'saveTypeEnum', 0) + // } + // } else { + // this.$set(this.questionForm, 'saveTypeEnum', 2) + // this.$emit('close') + // } + // } + if (!isInit) { + // saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断) + if (this.questionForm.RowId) { + this.$set(this.questionForm, 'saveTypeEnum', 1) } else { - this.firstRenderAnnotation = false - } - if (!this.firstRenderAnnotation) { - if (this.questionForm.RowId) { - this.$set(this.questionForm, 'saveTypeEnum', 1) - } else { - this.$set(this.questionForm, 'saveTypeEnum', 0) - } - } else { - this.$set(this.questionForm, 'saveTypeEnum', 2) - this.$emit('close') + this.$set(this.questionForm, 'saveTypeEnum', 0) } } this.$set(this.questionForm, 'OtherMeasureData', measureData.data)