套餐列表

This commit is contained in:
PC-202306242200\Administrator
2024-10-31 14:21:36 +08:00
parent fdd7e33fbe
commit cb022b2976
14 changed files with 51 additions and 11 deletions

View File

@@ -327,6 +327,21 @@ export default () => {
name="isUp"
label="是否上架"
/>
<ProFormRadio.Group
name="packagesType"
options={[
{
label: '即途',
value: 1,
},
{
label: '普通',
value: 2,
},
]}
label={'套餐类型'}
colProps={{ md: 12, xl: 12 }}
/>
<ProForm.Group>
<ProForm.Item
label="详情图"

View File

@@ -5,7 +5,8 @@ import {
ProForm,
ProFormTextArea,
ProFormSwitch,
ProFormDigit
ProFormDigit,
ProFormRadio
} from '@ant-design/pro-components';
import { useParams } from '@umijs/max';
@@ -250,6 +251,21 @@ export default () => {
name="isUp"
label="是否上架"
/>
<ProFormRadio.Group
name="packagesType"
options={[
{
label: '即途',
value: 1,
},
{
label: '普通',
value: 2,
},
]}
label={'套餐类型'}
colProps={{ md: 12, xl: 12 }}
/>
<ProForm.Group>
<ProForm.Item
label="详情图"

View File

@@ -33,7 +33,7 @@ const GoodsSetMealTableList: React.FC = () => {
valueType: 'text',
search: false,
render: (_: any, record: any) => {
return record?.itemType ? record?.itemType + 'KW' :'-'
return record?.itemType ? record?.itemType + 'KW' : '-'
}
},
{
@@ -70,6 +70,15 @@ const GoodsSetMealTableList: React.FC = () => {
return _Img ? <Image src={_Img} width={50}></Image> : ''
}
},
{
title: '套餐类型',
dataIndex: 'packagesType',
valueType: 'text',
search: false,
render: (_, record) => {
return _ == 1 ? "即途" : _ == 2 ? "普通" : "-"
}
},
{
title: '是否上架',
dataIndex: 'isUp',