1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2c4dd7f537
commit
3b8c2de88b
|
@ -207,9 +207,12 @@ export default {
|
|||
const reg = /^(?:[1-9]|[1-9][0-9])$/
|
||||
if (!value) {
|
||||
callback(new Error(this.$t('common:ruleMessage:specify')))
|
||||
} else if (!reg.test(value) || (parseInt(value) > 99 || (this.isBaseLineTask && parseInt(value) <= 0) || (!this.isBaseLineTask && parseInt(value) < 0))) {
|
||||
} else if (!this.isBaseLineTask && (parseInt(value) < 0 || parseInt(value) > 99)) {
|
||||
callback(new Error(this.$t('trials:readingPGWC:warnning:msg1')))
|
||||
}
|
||||
else if (!reg.test(value) && (this.isBaseLineTask && (parseInt(value) <= 0 || parseInt(value) > 99))) {
|
||||
callback(new Error(this.$t('trials:readingPGWC:warnning:msg1_baseLine')))
|
||||
}
|
||||
else if (!this.isBaseLineTask && parseInt(value) > parseInt(this.questionForm.BaseLineLesionNumber)) {
|
||||
callback(new Error(this.$t('trials:reading:pcwg:msg6') + this.questionForm.BaseLineLesionNumber))
|
||||
} else {
|
||||
|
@ -221,9 +224,13 @@ export default {
|
|||
if (this.focusQs && !this.isBaseLineTask && this.focusQs.QuestionMark === 11 && (parseInt(value) > parseInt(this.questionForm.BaseLineLesionNumber))) {
|
||||
// '基线病灶初始数量为'
|
||||
callback(new Error(this.$t('trials:reading:pcwg:msg6') + this.questionForm.BaseLineLesionNumber))
|
||||
} else if (this.focusQs && this.focusQs.QuestionMark === 11 && (parseInt(value) > 99 || (this.isBaseLineTask && parseInt(value) <= 0) || (!this.isBaseLineTask && parseInt(value) < 0))) {
|
||||
} else if (this.focusQs && this.focusQs.QuestionMark === 11 && (!this.isBaseLineTask && (parseInt(value) < 0 || parseInt(value) > 99))) {
|
||||
callback(new Error(this.$t('trials:readingPGWC:warnning:msg1')))
|
||||
} else {
|
||||
}
|
||||
else if (this.focusQs && this.focusQs.QuestionMark === 11 && (this.isBaseLineTask && (parseInt(value) <= 0 || parseInt(value) > 99))) {
|
||||
callback(new Error(this.$t('trials:readingPGWC:warnning:msg1_baseLine')))
|
||||
}
|
||||
else {
|
||||
callback()
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue