feat:【mall 商城】商品属性的迁移(ele)

This commit is contained in:
YunaiV
2025-10-08 18:10:42 +08:00
parent 276d91190c
commit e226e09e8a
13 changed files with 110 additions and 87 deletions

View File

@@ -54,7 +54,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入分组名称',
allowClear: true,
clearable: true,
},
},
{
@@ -64,7 +64,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
placeholder: '请选择状态',
allowClear: true,
clearable: true,
},
},
{
@@ -73,7 +73,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
placeholder: ['开始日期', '结束日期'],
allowClear: true,
clearable: true,
},
},
];

View File

@@ -119,7 +119,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -25,7 +25,7 @@ const activeStatus = ref<number | string>('all');
/** 删除按钮操作 */
const handleDelete = async (row: MallCouponApi.Coupon) => {
const hideLoading = ElLoading.service({
const loadingInstance = ElLoading.service({
text: '回收将会收回会员领取的待使用的优惠券,已使用的将无法回收,确定要回收所选优惠券吗?',
});
try {
@@ -34,7 +34,7 @@ const handleDelete = async (row: MallCouponApi.Coupon) => {
// 重新加载列表
gridApi.query();
} finally {
hideLoading.close();
loadingInstance.close();
}
};