review:【mall 商城】promotion 相关代码
							parent
							
								
									bb97aca0be
								
							
						
					
					
						commit
						5e85efb23e
					
				|  | @ -75,7 +75,7 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|       }, | ||||
|     }, | ||||
|     { | ||||
|       // TODO: 商品关联
 | ||||
|       // TODO: @xingyu:商品关联
 | ||||
|       fieldName: 'spuId', | ||||
|       label: '商品关联', | ||||
|       component: 'Input', | ||||
|  |  | |||
|  | @ -43,7 +43,7 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|       label: '优惠券描述', | ||||
|       component: 'Textarea', | ||||
|     }, | ||||
|     // TODO
 | ||||
|     // TODO @xingyu:不同的优惠,不同的选择
 | ||||
|     { | ||||
|       fieldName: 'productScope', | ||||
|       label: '优惠类型', | ||||
|  | @ -63,6 +63,7 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|       }, | ||||
|       rules: 'required', | ||||
|     }, | ||||
|     // TODO @xingu:不同的有效期,不同的类型
 | ||||
|     { | ||||
|       fieldName: 'validityType', | ||||
|       label: '有效期类型', | ||||
|  |  | |||
|  | @ -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(); | ||||
|  |  | |||
|  | @ -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 } }); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -74,8 +74,8 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|         optionType: 'button', | ||||
|       }, | ||||
|     }, | ||||
|     // TODO: @霖:商品关联
 | ||||
|     { | ||||
|       // TODO: 商品关联
 | ||||
|       fieldName: 'spuId', | ||||
|       label: '商品关联', | ||||
|       component: 'Input', | ||||
|  |  | |||
|  | @ -43,7 +43,7 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|       label: '优惠券描述', | ||||
|       component: 'Textarea', | ||||
|     }, | ||||
|     // TODO
 | ||||
|     // TODO @霖:不同的优惠,不同的选择
 | ||||
|     { | ||||
|       fieldName: 'productScope', | ||||
|       label: '优惠类型', | ||||
|  | @ -63,6 +63,7 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|       }, | ||||
|       rules: 'required', | ||||
|     }, | ||||
|     // TODO @xingu:不同的有效期,不同的类型
 | ||||
|     { | ||||
|       fieldName: 'validityType', | ||||
|       label: '有效期类型', | ||||
|  |  | |||
|  | @ -29,23 +29,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 @霖:貌似跳转不过去; | ||||
| /** 装修页面 */ | ||||
| function handleDecorate(row: MallDiyPageApi.DiyPage) { | ||||
|   // 跳转到装修页面 | ||||
|   push({ name: 'DiyPageDecorate', params: { id: row.id } }); | ||||
| } | ||||
| 
 | ||||
| /** 删除DIY页面 */ | ||||
| /** 删除 DIY 页面 */ | ||||
| async function handleDelete(row: MallDiyPageApi.DiyPage) { | ||||
|   const loadingInstance = ElLoading.service({ | ||||
|     text: $t('ui.actionMessage.deleting', [row.name]), | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 YunaiV
						YunaiV