lugano表单提交按钮未更改信息时禁用
parent
437e224f1a
commit
88887e5d92
|
@ -337,11 +337,11 @@ export default {
|
||||||
// if (parseInt(v) !== 5) {
|
// if (parseInt(v) !== 5) {
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
if (question.QuestionType === 49) {
|
|
||||||
this.$emit('setFormItemData', { key: question.Id, val: v })
|
|
||||||
}
|
|
||||||
if (question.Childrens.length > 0) {
|
if (question.Childrens.length > 0) {
|
||||||
this.resetChild(question.Childrens)
|
this.resetChild(question.Childrens)
|
||||||
|
}else{
|
||||||
|
this.$emit('setFormItemData', { key: question.Id, val: v })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resetChild(obj) {
|
resetChild(obj) {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
<el-form-item v-if="readingTaskState < 2 && !isFirstChangeTask">
|
<el-form-item v-if="readingTaskState < 2 && !isFirstChangeTask">
|
||||||
<div style="text-align:right">
|
<div style="text-align:right">
|
||||||
<el-button size="mini" :disabled="!questionFormChangeState" :type="questionFormChangeState ? 'primary' : null" @click="handleSave">{{ $t('common:button:save') }}</el-button>
|
<el-button size="mini" :disabled="!questionFormChangeState || (!formChanged && groupClassify > 0)" :type="questionFormChangeState || (!formChanged && groupClassify > 0) ? 'primary' : null" @click="handleSave">{{ $t('common:button:save') }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -79,7 +79,8 @@ export default {
|
||||||
isBaseLineTask: false,
|
isBaseLineTask: false,
|
||||||
criterionType: null,
|
criterionType: null,
|
||||||
spleenInfo: null,
|
spleenInfo: null,
|
||||||
calculateSpleenStatus: ''
|
calculateSpleenStatus: '',
|
||||||
|
formChanged:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -323,6 +324,7 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.formChanged = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
|
@ -429,6 +431,7 @@ export default {
|
||||||
DicomEvent.$emit('getMeasureData')
|
DicomEvent.$emit('getMeasureData')
|
||||||
this.calculateSpleenStatus = ''
|
this.calculateSpleenStatus = ''
|
||||||
this.setSpleenCommentDisplay()
|
this.setSpleenCommentDisplay()
|
||||||
|
this.formChanged = true
|
||||||
},
|
},
|
||||||
locateAnnotation(obj) {
|
locateAnnotation(obj) {
|
||||||
const { Id } = obj
|
const { Id } = obj
|
||||||
|
@ -497,6 +500,7 @@ export default {
|
||||||
if (this.isQulityIssues) {
|
if (this.isQulityIssues) {
|
||||||
DicomEvent.$emit('questionFormChange', true)
|
DicomEvent.$emit('questionFormChange', true)
|
||||||
}
|
}
|
||||||
|
this.formChanged = true
|
||||||
},
|
},
|
||||||
getSpleenL() {
|
getSpleenL() {
|
||||||
var length = null
|
var length = null
|
||||||
|
@ -591,12 +595,14 @@ export default {
|
||||||
this.removeAnnotation({ Id: this.spleenLengthId })
|
this.removeAnnotation({ Id: this.spleenLengthId })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.formChanged = true
|
||||||
},
|
},
|
||||||
setFormItemData(obj) {
|
setFormItemData(obj) {
|
||||||
this.questionForm[obj.key] = obj.val
|
this.questionForm[obj.key] = obj.val
|
||||||
if (obj.key === this.spleenStatusId) {
|
if (obj.key === this.spleenStatusId) {
|
||||||
this.setSpleenCommentDisplay()
|
this.setSpleenCommentDisplay()
|
||||||
}
|
}
|
||||||
|
this.formChanged = true
|
||||||
},
|
},
|
||||||
isJSONString(str) {
|
isJSONString(str) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue