2
0

feat:套餐管理传参KB改B

This commit is contained in:
zhongzm
2024-12-25 19:55:37 +08:00
parent 3bb0b9d85c
commit 59c80cd7a7

View File

@@ -166,7 +166,7 @@ import { SimpleScrollbar } from '~/packages/materials/src';
import { computed, shallowRef, ref, onMounted } from 'vue';
import { useElementSize } from '@vueuse/core';
import { fetchPackageList, addPackage, fetchRateLimitList, updatePackage, deletePackage } from '@/service/api/auth';
import { Button as AButton, message, Modal, Form as AForm, Input as AInput, InputNumber as AInputNumber, Select as ASelect, Switch as ASwitch } from 'ant-design-vue';
import { Button as AButton, message, Modal, Form as AForm, Input as AInput, InputNumber as AInputNumber, Select as ASelect, Switch as ASwitch, Tag as ATag } from 'ant-design-vue';
import { PlusOutlined } from '@ant-design/icons-vue';
import type { Rule } from 'ant-design-vue/es/form';
import {
@@ -299,6 +299,17 @@ const { columns, columnChecks, data, loading, getData, mobilePagination } = useT
return text;
}
},
{
key: 'packageEnable',
dataIndex: 'packageEnable',
title: '套餐状态',
align: 'center',
customRender: ({ text }) => (
<ATag color={text ? 'success' : 'error'}>
{text ? '启用' : '禁用'}
</ATag>
)
},
{
key: 'operate',
title: '操作',