打包报错
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
/>
|
/>
|
||||||
</ElSelect>
|
</ElSelect>
|
||||||
</ElFormItem>
|
</ElFormItem>
|
||||||
<template v-if="form.paid_lottery_config_id == null || form.paid_lottery_config_id === ''">
|
<template v-if="form.paid_lottery_config_id == null">
|
||||||
<div class="tier-label">自定义档位概率(T1~T5),每档 0-100%,五档之和不能超过 100%</div>
|
<div class="tier-label">自定义档位概率(T1~T5),每档 0-100%,五档之和不能超过 100%</div>
|
||||||
<ElRow :gutter="12" class="tier-row">
|
<ElRow :gutter="12" class="tier-row">
|
||||||
<ElCol v-for="t in tierKeys" :key="'paid-' + t" :span="8">
|
<ElCol v-for="t in tierKeys" :key="'paid-' + t" :span="8">
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
/>
|
/>
|
||||||
</ElSelect>
|
</ElSelect>
|
||||||
</ElFormItem>
|
</ElFormItem>
|
||||||
<template v-if="form.free_lottery_config_id == null || form.free_lottery_config_id === ''">
|
<template v-if="form.free_lottery_config_id == null">
|
||||||
<div class="tier-label">自定义档位概率(T1~T5),每档 0-100%,五档之和不能超过 100%</div>
|
<div class="tier-label">自定义档位概率(T1~T5),每档 0-100%,五档之和不能超过 100%</div>
|
||||||
<ElRow :gutter="12" class="tier-row">
|
<ElRow :gutter="12" class="tier-row">
|
||||||
<ElCol v-for="t in tierKeys" :key="'free-' + t" :span="8">
|
<ElCol v-for="t in tierKeys" :key="'free-' + t" :span="8">
|
||||||
@@ -242,12 +242,12 @@
|
|||||||
free_s_count: form.free_s_count,
|
free_s_count: form.free_s_count,
|
||||||
free_n_count: form.free_n_count
|
free_n_count: form.free_n_count
|
||||||
}
|
}
|
||||||
if (form.paid_lottery_config_id != null && form.paid_lottery_config_id !== '') {
|
if (form.paid_lottery_config_id != null) {
|
||||||
payload.paid_lottery_config_id = form.paid_lottery_config_id
|
payload.paid_lottery_config_id = form.paid_lottery_config_id
|
||||||
} else {
|
} else {
|
||||||
payload.paid_tier_weights = { ...form.paid_tier_weights }
|
payload.paid_tier_weights = { ...form.paid_tier_weights }
|
||||||
}
|
}
|
||||||
if (form.free_lottery_config_id != null && form.free_lottery_config_id !== '') {
|
if (form.free_lottery_config_id != null) {
|
||||||
payload.free_lottery_config_id = form.free_lottery_config_id
|
payload.free_lottery_config_id = form.free_lottery_config_id
|
||||||
} else {
|
} else {
|
||||||
payload.free_tier_weights = { ...form.free_tier_weights }
|
payload.free_tier_weights = { ...form.free_tier_weights }
|
||||||
@@ -260,8 +260,8 @@
|
|||||||
ElMessage.warning('付费或免费至少一种方向次数之和大于 0')
|
ElMessage.warning('付费或免费至少一种方向次数之和大于 0')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
const needPaidTier = form.paid_lottery_config_id == null || form.paid_lottery_config_id === ''
|
const needPaidTier = form.paid_lottery_config_id == null
|
||||||
const needFreeTier = form.free_lottery_config_id == null || form.free_lottery_config_id === ''
|
const needFreeTier = form.free_lottery_config_id == null
|
||||||
if (needPaidTier) {
|
if (needPaidTier) {
|
||||||
const sum = paidTierSum.value
|
const sum = paidTierSum.value
|
||||||
if (sum <= 0) {
|
if (sum <= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user