From d18d61ee01dd983cf3daf4946b70c3d89886db39 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 22 Mar 2024 16:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=97=85=E7=81=B6=E4=BF=9D=E5=AD=98=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Fusion/TableQuestionItem.vue | 64 +++++++++++-------- 1 file changed, 36 insertions(+), 28 deletions(-) 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)