fix[订单管理]:修改页面优化
This commit is contained in:
+10
-10
@@ -5,7 +5,7 @@ import {
|
||||
} from '@ant-design/pro-components';
|
||||
import { Form } from 'antd';
|
||||
|
||||
export type FormValueType = Partial<ORDERS.Tourism>;
|
||||
export type FormValueType = Partial<ORDERS.TourismFile>;
|
||||
|
||||
export type UpdateFormProps = {
|
||||
onVisibleChange: (flag: boolean) => void;
|
||||
@@ -18,7 +18,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
|
||||
const [form] = Form.useForm();
|
||||
return (
|
||||
<ModalForm
|
||||
title="修改二维码"
|
||||
title="更新素材"
|
||||
form={form}
|
||||
visible={props.updateModalVisible}
|
||||
onFinish={props.onSubmit}
|
||||
@@ -33,8 +33,8 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
|
||||
},
|
||||
]}
|
||||
width="md"
|
||||
name="tourismName"
|
||||
label="名称"
|
||||
name="tourismId"
|
||||
label="景区名称"
|
||||
placeholder="输入名称"
|
||||
/>
|
||||
<ProFormText
|
||||
@@ -45,21 +45,21 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
|
||||
},
|
||||
]}
|
||||
width="md"
|
||||
name="tourismAddress"
|
||||
label="地址"
|
||||
name="imageUrl"
|
||||
label="素材地址"
|
||||
placeholder="输入地址"
|
||||
/>
|
||||
<ProFormText
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: '手机号不为空',
|
||||
message: '链接页面不为空',
|
||||
},
|
||||
]}
|
||||
width="md"
|
||||
name="tourismPhone"
|
||||
label="手机号"
|
||||
placeholder="输入手机号"
|
||||
name="linkUrl"
|
||||
label="链接地址"
|
||||
placeholder="输入链接"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
</ModalForm>
|
||||
|
||||
Reference in New Issue
Block a user