病灶保存状态提示

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,36 +572,44 @@ export default {
} }
FusionEvent.$emit('addOrUpdateAnnotations', { data }) FusionEvent.$emit('addOrUpdateAnnotations', { data })
} }
if (!isInit) { // if (!isInit) {
// 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)
// } // // }
// saveTypeEnum 01访/ // // saveTypeEnum 01访/
if (this.questionForm.OtherMeasureData) { // if (this.questionForm.OtherMeasureData) {
var annotation = Object.assign({}, this.questionForm.OtherMeasureData) // var annotation = Object.assign({}, this.questionForm.OtherMeasureData)
if (annotation && this.firstRenderAnnotation) { // if (annotation && this.firstRenderAnnotation) {
for (const k in annotation.data.cachedStats) { // for (const k in annotation.data.cachedStats) {
if (annotation.data.cachedStats[k].pointsInShape.length !== 0) { // if (annotation.data.cachedStats[k].pointsInShape.length !== 0) {
this.firstRenderAnnotation = false // this.firstRenderAnnotation = false
break // 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 01访/
if (this.questionForm.RowId) {
this.$set(this.questionForm, 'saveTypeEnum', 1)
} else { } else {
this.firstRenderAnnotation = false this.$set(this.questionForm, 'saveTypeEnum', 0)
}
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, 'OtherMeasureData', measureData.data) this.$set(this.questionForm, 'OtherMeasureData', measureData.data)