review:【mall 商城】promotion 相关代码

This commit is contained in:
YunaiV
2025-09-02 20:59:21 +08:00
parent bb97aca0be
commit 5e85efb23e
7 changed files with 17 additions and 15 deletions

View File

@@ -27,23 +27,23 @@ function onRefresh() {
gridApi.query();
}
/** 创建DIY页面 */
/** 创建 DIY 页面 */
function handleCreate() {
formModalApi.setData(null).open();
}
/** 编辑DIY页面 */
/** 编辑 DIY 页面 */
function handleEdit(row: MallDiyPageApi.DiyPage) {
formModalApi.setData(row).open();
}
// TODO @xingyu装修未实现
/** 装修页面 */
function handleDecorate(row: MallDiyPageApi.DiyPage) {
// 跳转到装修页面
push({ name: 'DiyPageDecorate', params: { id: row.id } });
}
/** 删除DIY页面 */
/** 删除 DIY 页面 */
async function handleDelete(row: MallDiyPageApi.DiyPage) {
await deleteDiyPage(row.id as number);
onRefresh();

View File

@@ -33,19 +33,19 @@ function onRefresh() {
gridApi.query();
}
/** 创建DIY模板 */
/** 创建 DIY 模板 */
function handleCreate() {
formModalApi.setData(null).open();
}
/** 编辑DIY模板 */
/** 编辑 DIY 模板 */
function handleEdit(row: MallDiyTemplateApi.DiyTemplate) {
formModalApi.setData(row).open();
}
// TODO @xingyu装修未实现
/** 装修模板 */
function handleDecorate(row: MallDiyTemplateApi.DiyTemplate) {
// 跳转到装修页面
router.push({ name: 'DiyTemplateDecorate', params: { id: row.id } });
}