病灶保存状态提示

uat_us
caiyiling 2024-03-22 16:58:59 +08:00
parent a86c4bdd0e
commit d18d61ee01
1 changed files with 36 additions and 28 deletions

View File

@ -572,37 +572,45 @@ export default {
} }
FusionEvent.$emit('addOrUpdateAnnotations', { data }) FusionEvent.$emit('addOrUpdateAnnotations', { data })
} }
if (!isInit) { // if (!isInit) {
// // if (this.questionForm.RowId) {
// // this.$set(this.questionForm, 'saveTypeEnum', 1)
// // } else {
// // this.$set(this.questionForm, 'saveTypeEnum', 0)
// // }
// // saveTypeEnum 01访/
// 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
// }
// }
// }
// } else {
// this.firstRenderAnnotation = false
// }
// if (!this.firstRenderAnnotation) {
// if (this.questionForm.RowId) { // if (this.questionForm.RowId) {
// this.$set(this.questionForm, 'saveTypeEnum', 1) // this.$set(this.questionForm, 'saveTypeEnum', 1)
// } else { // } else {
// this.$set(this.questionForm, 'saveTypeEnum', 0) // this.$set(this.questionForm, 'saveTypeEnum', 0)
// } // }
// } else {
// this.$set(this.questionForm, 'saveTypeEnum', 2)
// this.$emit('close')
// }
// }
if (!isInit) {
// saveTypeEnum 01访/ // saveTypeEnum 01访/
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
}
}
}
} else {
this.firstRenderAnnotation = false
}
if (!this.firstRenderAnnotation) {
if (this.questionForm.RowId) { if (this.questionForm.RowId) {
this.$set(this.questionForm, 'saveTypeEnum', 1) this.$set(this.questionForm, 'saveTypeEnum', 1)
} else { } else {
this.$set(this.questionForm, 'saveTypeEnum', 0) this.$set(this.questionForm, 'saveTypeEnum', 0)
} }
} else {
this.$set(this.questionForm, 'saveTypeEnum', 2)
this.$emit('close')
}
} }
this.$set(this.questionForm, 'OtherMeasureData', measureData.data) this.$set(this.questionForm, 'OtherMeasureData', measureData.data)
var isLymph = this.getQuestionVal(2) var isLymph = this.getQuestionVal(2)