feat(活动规则配置-->编辑组件): 保存功能调整
This commit is contained in:
parent
5fb8794555
commit
5f2b4e76fe
@ -18,7 +18,10 @@
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
>
|
||||
<el-form-item :label="$t('pages.propsActivityRuleConfig.form.system')" prop="sysOrigin">
|
||||
<el-form-item
|
||||
:label="$t('pages.propsActivityRuleConfig.form.system')"
|
||||
prop="sysOrigin"
|
||||
>
|
||||
<el-select
|
||||
v-model="form.sysOrigin"
|
||||
:placeholder="$t('pages.propsActivityRuleConfig.form.system')"
|
||||
@ -42,7 +45,10 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item prop="activityType" :label="$t('pages.propsActivityRuleConfig.form.type')">
|
||||
<el-form-item
|
||||
prop="activityType"
|
||||
:label="$t('pages.propsActivityRuleConfig.form.type')"
|
||||
>
|
||||
<el-select
|
||||
v-model="form.activityType"
|
||||
:placeholder="$t('pages.propsActivityRuleConfig.form.type')"
|
||||
@ -68,7 +74,10 @@
|
||||
:form="tmpRuleSetting"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('pages.propsActivityRuleConfig.form.ruleDescription')" prop="ruleDescription">
|
||||
<el-form-item
|
||||
:label="$t('pages.propsActivityRuleConfig.form.ruleDescription')"
|
||||
prop="ruleDescription"
|
||||
>
|
||||
<el-input
|
||||
v-model.trim="form.ruleDescription"
|
||||
type="textarea"
|
||||
@ -87,7 +96,9 @@
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="drawer-footer">
|
||||
<el-button @click="handleClose()">{{ $t("pages.propsActivityRuleConfig.action.cancel") }}</el-button>
|
||||
<el-button @click="handleClose()">{{
|
||||
$t("pages.propsActivityRuleConfig.action.cancel")
|
||||
}}</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:loading="submitLoading"
|
||||
@ -300,7 +311,8 @@ export default {
|
||||
},
|
||||
CUMULATIVE_RECHARGE_LOTTERY: {
|
||||
component: "InputQuantity",
|
||||
tipsKey: "pages.propsActivityRuleConfig.tips.cumulativeRechargeLottery",
|
||||
tipsKey:
|
||||
"pages.propsActivityRuleConfig.tips.cumulativeRechargeLottery",
|
||||
form: {
|
||||
quantity: ""
|
||||
}
|
||||
@ -390,7 +402,9 @@ export default {
|
||||
return this.activeTips ? this.$t(this.activeTips) : "";
|
||||
},
|
||||
localizedRules() {
|
||||
const required = this.$t("pages.propsActivityRuleConfig.validation.requiredField");
|
||||
const required = this.$t(
|
||||
"pages.propsActivityRuleConfig.validation.requiredField"
|
||||
);
|
||||
return {
|
||||
sysOrigin: [{ required: true, message: required, trigger: "blur" }],
|
||||
activityType: [{ required: true, message: required, trigger: "blur" }],
|
||||
@ -472,6 +486,7 @@ export default {
|
||||
console.error("ruleForm error submit!!");
|
||||
});
|
||||
} else {
|
||||
that.form.jsonData = JSON.stringify(that.tmpRuleSetting || {});
|
||||
if (this.form.activityType === "CRYSTAL") {
|
||||
that.form.sort = that.tmpRuleSetting.level;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user