diff --git a/flossom-ui/src/views/system/clockIntegral/index.vue b/flossom-ui/src/views/system/clockIntegral/index.vue index 3581e8b..cd0cbd7 100644 --- a/flossom-ui/src/views/system/clockIntegral/index.vue +++ b/flossom-ui/src/views/system/clockIntegral/index.vue @@ -77,6 +77,12 @@ export default { dailyClockCredit: [ { required: true, message: "日常打卡奖励不能为空", trigger: "blur" } ], + extraClockCredit: [ + { required: true, message: "额外打卡奖励积分不能为空", trigger: "blur" } + ], + timeRange: [ + { required: true, message: "额外打卡时间段不能为空", trigger: "blur" } + ], } }; }, @@ -166,7 +172,7 @@ export default { this.$modal.msgError("额外打卡奖励积分仅能输入数字"); return; } - if (!this.form.extraClockCredit) { + if (this.form.extraClockCredit == null && this.form.extraClockCredit == undefined) { this.$modal.msgError("积分不能为空"); return; }