修复前端bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 8m58s

This commit is contained in:
sexygoat
2026-04-03 11:47:11 +08:00
parent ea14ae92ca
commit ff087abd44
5 changed files with 24 additions and 16 deletions

View File

@@ -65,7 +65,7 @@
:close-on-click-modal="false"
@closed="handleDialogClosed"
>
<ElForm ref="formRef" :model="form" :rules="rules" label-width="150px">
<ElForm ref="formRef" :model="form" :rules="rules" label-width="165px">
<ElRow :gutter="20">
<ElCol :span="24">
<ElFormItem label="套餐编码" prop="package_code">
@@ -183,7 +183,10 @@
</ElRow>
<!-- 套餐天数流量重置周期为每日或calendar_type为by_day时显示 -->
<ElRow :gutter="20" v-if="form.data_reset_cycle === 'daily' || form.calendar_type === 'by_day'">
<ElRow
:gutter="20"
v-if="form.data_reset_cycle === 'daily' || form.calendar_type === 'by_day'"
>
<ElCol :span="12">
<ElFormItem label="套餐天数" prop="duration_days">
<ElInputNumber
@@ -1067,7 +1070,10 @@
data.calendar_type = form.calendar_type
}
// 当流量重置周期为每日,或套餐周期类型为按天时,传递套餐天数
if ((form.data_reset_cycle === 'daily' || form.calendar_type === 'by_day') && form.duration_days) {
if (
(form.data_reset_cycle === 'daily' || form.calendar_type === 'by_day') &&
form.duration_days
) {
data.duration_days = form.duration_days
}
if (suggestedRetailPriceInCents !== undefined) {

View File

@@ -379,7 +379,7 @@
/>
<div class="form-tip">
该代理能获得的固定佣金金额单位
<span v-if="form.series_max_commission_amount > 0" class="max-amount-hint">
<span class="max-amount-hint">
<br />
该系列最大佣金金额
<span class="amount-value"
@@ -543,7 +543,7 @@
/>
<div class="form-tip">
该代理能获得的固定佣金金额单位
<span v-if="form.series_max_commission_amount > 0" class="max-amount-hint">
<span class="max-amount-hint">
<br />
该系列最大佣金金额
<span class="amount-value"