This commit is contained in:
@@ -68,6 +68,43 @@
|
||||
return `${data.duration_months} 个月`
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '套餐周期类型',
|
||||
formatter: (_, data) => {
|
||||
if (!data.calendar_type) return '-'
|
||||
const typeMap = {
|
||||
natural_month: '自然月',
|
||||
by_day: '按天'
|
||||
}
|
||||
return typeMap[data.calendar_type] || data.calendar_type
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '套餐天数',
|
||||
formatter: (_, data) => {
|
||||
if (data.calendar_type !== 'by_day' || !data.duration_days) return '-'
|
||||
return `${data.duration_days} 天`
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '流量重置周期',
|
||||
formatter: (_, data) => {
|
||||
if (!data.data_reset_cycle) return '-'
|
||||
const cycleMap = {
|
||||
daily: '每日',
|
||||
monthly: '每月',
|
||||
yearly: '每年',
|
||||
none: '不重置'
|
||||
}
|
||||
return cycleMap[data.data_reset_cycle] || data.data_reset_cycle
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '启用实名激活',
|
||||
formatter: (_, data) => {
|
||||
return data.enable_realname_activation ? '是' : '否'
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '状态',
|
||||
formatter: (_, data) => {
|
||||
@@ -141,12 +178,6 @@
|
||||
{
|
||||
title: '佣金配置',
|
||||
fields: [
|
||||
{
|
||||
label: '当前返佣比例',
|
||||
formatter: (_, data) => {
|
||||
return data.current_commission_rate || '-'
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '一次性佣金金额',
|
||||
formatter: (_, data) => {
|
||||
@@ -159,7 +190,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '当前返佣档位',
|
||||
label: '当前返佣比例',
|
||||
formatter: (_, data) => {
|
||||
if (!data.tier_info || !data.tier_info.current_rate) return '-'
|
||||
return data.tier_info.current_rate
|
||||
|
||||
Reference in New Issue
Block a user