Commit dda60002 authored by Smile's avatar Smile Committed by wux

会员等级:1、等级设置中新增/修改页面,“等级有效期”修改为必填。2、更新会员等级弹窗中,“等级有效期”修改为必填。

parent 15da5767
...@@ -212,7 +212,8 @@ export default { ...@@ -212,7 +212,8 @@ export default {
], ],
validityPeriod: [ validityPeriod: [
{ {
validator: this.validatePositiveIntegerorNull, required: true,
validator: this.validatePositiveInteger,
trigger: "blur" trigger: "blur"
} }
], ],
......
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
<el-form-item :label="$t('等级:')" prop="level"> <el-form-item :label="$t('等级:')" prop="level">
<dict-selector v-model="levelDetails.level" :disabled="levelDetailsCanEdit" clearable :type="DICT_TYPE.MEMBERSHIP_LEVELS" /> <dict-selector v-model="levelDetails.level" :disabled="levelDetailsCanEdit" clearable :type="DICT_TYPE.MEMBERSHIP_LEVELS" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('等级有效期:')"> <el-form-item :label="$t('等级有效期:')" prop="validityPeriod">
<el-date-picker type="datetime" :placeholder="$t('请选择日期')" :disabled="levelDetailsCanEdit" v-model="levelDetails.validityPeriod" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker type="datetime" :placeholder="$t('请选择日期')" :disabled="levelDetailsCanEdit" v-model="levelDetails.validityPeriod" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item :label="$t('等级特殊设置')"> <el-form-item :label="$t('等级特殊设置')">
...@@ -661,6 +661,13 @@ export default { ...@@ -661,6 +661,13 @@ export default {
trigger: "blur" trigger: "blur"
} }
], ],
validityPeriod: [
{
required: true,
message: this.$t("等级有效期不能为空"),
trigger: "blur"
}
],
remarks: [ remarks: [
{ {
required: true, required: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment