This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
import { PackageSeriesService } from '@/api/modules'
|
||||
import type { PackageSeriesResponse } from '@/types/api'
|
||||
import { formatDateTime } from '@/utils/business/format'
|
||||
import { getEnableStatusText } from '@/config/constants'
|
||||
|
||||
defineOptions({ name: 'PackageSeriesDetail' })
|
||||
|
||||
@@ -72,7 +73,7 @@
|
||||
{
|
||||
label: '启用状态',
|
||||
formatter: (_, data) => {
|
||||
return data.one_time_commission_config?.enable ? '已启用' : '未启用'
|
||||
return getEnableStatusText(data.one_time_commission_config?.enable || false)
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -151,7 +152,9 @@
|
||||
{
|
||||
label: '启用状态',
|
||||
formatter: (_, data) => {
|
||||
return data.one_time_commission_config?.enable_force_recharge ? '已启用' : '未启用'
|
||||
return getEnableStatusText(
|
||||
data.one_time_commission_config?.enable_force_recharge || false
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -180,7 +183,7 @@
|
||||
formatter: (_, data) => {
|
||||
const config = data.one_time_commission_config
|
||||
if (!config?.validity_type) return '-'
|
||||
const typeMap = {
|
||||
const typeMap: Record<string, string> = {
|
||||
permanent: '永久',
|
||||
fixed_date: '固定日期',
|
||||
relative: '相对时长'
|
||||
|
||||
Reference in New Issue
Block a user