review:【antd】【mall】商品选择相关逻辑
This commit is contained in:
@@ -86,6 +86,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- TODO @puhui999:这里缺少商品的选择; -->
|
||||
<Modal class="w-2/5" :title="getTitle">
|
||||
<Form class="mx-4" />
|
||||
</Modal>
|
||||
|
||||
@@ -106,7 +106,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
},
|
||||
},
|
||||
{
|
||||
// TODO
|
||||
// TODO <!-- TODO @puhui999:这里缺少商品的选择; -->
|
||||
fieldName: 'spuId',
|
||||
label: '拼团商品',
|
||||
component: 'Input',
|
||||
|
||||
@@ -68,7 +68,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
rows: 4,
|
||||
},
|
||||
},
|
||||
// TODO
|
||||
// TODO @puhui999:少了商品选择~
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -126,12 +126,14 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
},
|
||||
formItemClass: 'col-span-2',
|
||||
},
|
||||
// TODO @puhui999:商品图太大了。
|
||||
{
|
||||
fieldName: 'spuId',
|
||||
label: '活动商品',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
formItemClass: 'col-span-2',
|
||||
// TODO @puhui999:貌似 renderComponentContent 不需要哇?
|
||||
renderComponentContent: () => ({
|
||||
default: () => null,
|
||||
}),
|
||||
|
||||
@@ -32,6 +32,7 @@ const formData = ref<Partial<MallRewardActivityApi.RewardActivity>>({
|
||||
rules: [],
|
||||
});
|
||||
|
||||
// TODO @puhui999:点击“编辑”后,会出现 Cannot read properties of null (reading 'type') 报错;
|
||||
const getTitle = computed(() => {
|
||||
return formData.value?.id
|
||||
? $t('ui.actionTitle.edit', ['满减送'])
|
||||
|
||||
@@ -154,6 +154,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
<Form />
|
||||
|
||||
<!-- 商品选择区域 -->
|
||||
<!-- TODO @puhui999:这里缺少商品的选择; -->
|
||||
<div class="mt-4">
|
||||
<div class="mb-2 flex items-center">
|
||||
<span class="text-sm font-medium">秒杀活动商品:</span>
|
||||
|
||||
Reference in New Issue
Block a user