feat:套餐管理传参KB改B
This commit is contained in:
@@ -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: '操作',
|
||||
|
||||
Reference in New Issue
Block a user