diff --git a/src/views/billing/package/index.vue b/src/views/billing/package/index.vue index b0d6ba9..a6d3e55 100644 --- a/src/views/billing/package/index.vue +++ b/src/views/billing/package/index.vue @@ -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 }) => ( + + {text ? '启用' : '禁用'} + + ) + }, { key: 'operate', title: '操作',