review:【antd】【ele】member 增加 coupon-list 列表

This commit is contained in:
YunaiV
2025-11-02 14:30:17 +08:00
parent 603f0d9c0d
commit 17ccc0a27f
9 changed files with 312 additions and 196 deletions

View File

@@ -101,6 +101,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
formatter: 'formatDateTime',
},
{
field: 'actions',
title: '操作',
width: 100,
fixed: 'right',

View File

@@ -7,7 +7,6 @@ import { ref } from 'vue';
import { DocAlert, Page } from '@vben/common-ui';
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { $t } from '@vben/locales';
import { ElLoading, ElMessage, ElTabPane, ElTabs } from 'element-plus';
@@ -32,7 +31,7 @@ function handleRefresh() {
/** 删除优惠券 */
async function handleDelete(row: MallCouponApi.Coupon) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
text: '回收中...',
});
try {
await deleteCoupon(row.id!);