病灶保存状态提示
parent
a86c4bdd0e
commit
d18d61ee01
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue