feat: 1:优化景区素材,查询景区素材从套餐中获取
2:二维码列表添加描述
This commit is contained in:
@@ -29,6 +29,7 @@ export interface QrcodeItem {
|
||||
videoCount?: number;
|
||||
photoCount?: number;
|
||||
tourismFileIds?: number[];
|
||||
qrDescribe?: string;
|
||||
}
|
||||
export interface QrcodeFormProps {
|
||||
open: boolean;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { ModalForm, ProForm, ProFormDigit, ProFormSelect, ProFormText } from '@ant-design/pro-components';
|
||||
import { ModalForm, ProForm, ProFormDigit, ProFormSelect, ProFormText, ProFormTextArea } from '@ant-design/pro-components';
|
||||
import { ordersApi } from '@/services/orders';
|
||||
import { deviceApi } from '@/services/device';
|
||||
import { miniAppApi } from '@/services/miniapp';
|
||||
@@ -26,6 +26,7 @@ const QrcodeTourismForm: React.FC<QrcodeTourismFormProps> = ({ open, title, init
|
||||
vlogCount: 0,
|
||||
videoCount: 0,
|
||||
photoCount: 0,
|
||||
qrDescribe: '', // 描述
|
||||
};
|
||||
|
||||
// 过滤 initialValues 中的 undefined,避免覆盖默认值
|
||||
@@ -250,6 +251,18 @@ const QrcodeTourismForm: React.FC<QrcodeTourismFormProps> = ({ open, title, init
|
||||
colProps={{ span: 12 }}
|
||||
/>
|
||||
|
||||
<ProFormTextArea
|
||||
name="qrDescribe"
|
||||
label="描述"
|
||||
placeholder="请输入二维码描述"
|
||||
fieldProps={{
|
||||
rows: 3,
|
||||
showCount: true,
|
||||
maxLength: 500,
|
||||
}}
|
||||
colProps={{ span: 24 }}
|
||||
/>
|
||||
|
||||
{/* 注册一个隐藏字段以提交素材ID数组 */}
|
||||
<ProForm.Item name="tourismFileIds" hidden>
|
||||
<div />
|
||||
|
||||
Reference in New Issue
Block a user