更新10.10
This commit is contained in:
parent
94fb9e5b34
commit
a6e0a3022c
@ -157,9 +157,9 @@
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="活动方式" prop="activeManner">
|
||||
<el-checkbox-group v-model="ruleForm.activeManner">
|
||||
<el-radio-group v-model="ruleForm.activeManner">
|
||||
<div style="display: flex;font-size: 14px;margin: 15px 0;align-items: center">
|
||||
<el-checkbox label="0" name="type">按订单金额</el-checkbox>
|
||||
<el-radio label="0" name="type">按订单金额</el-radio>
|
||||
<img src="@/assets/images/tjb.png"
|
||||
style="width: 20px;height: 20px;cursor: pointer;margin-left: 10px"
|
||||
@click="addPoints(0)">
|
||||
@ -235,7 +235,7 @@
|
||||
</div>
|
||||
|
||||
<div style="display: flex;font-size: 14px;margin: 15px 0;align-items: center">
|
||||
<el-checkbox label="1" name="type">按加油升数</el-checkbox>
|
||||
<el-radio label="1" name="type">按加油升数</el-radio>
|
||||
<img src="@/assets/images/tjb.png"
|
||||
style="width: 20px;height: 20px;cursor: pointer;margin-left: 10px"
|
||||
@click="addGrowthValues(1)">
|
||||
@ -316,7 +316,7 @@
|
||||
@click="deleteGrowthValues(index)">
|
||||
</div>
|
||||
</div>
|
||||
</el-checkbox-group>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
@ -426,6 +426,18 @@ export default {
|
||||
activeManner: [
|
||||
{required: true, message: '活动方式不能为空', trigger: 'blur'},
|
||||
],
|
||||
timeApplyStart: [
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
if (!this.ruleForm.timeApplyStart || !this.ruleForm.timeApplyEnd) {
|
||||
callback(new Error("请选择完整的时间段"));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
trigger: "change"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user