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