💥 feat(模块): 添加了个很棒的功能

This commit is contained in:
chashaobao
2026-01-18 15:53:43 +08:00
parent da323690db
commit 5a193bd585
2 changed files with 13 additions and 3 deletions

View File

@ -69,7 +69,7 @@ const TableList: React.FC = () => {
actionRef.current?.reload(); actionRef.current?.reload();
}; };
const handleUpload = async (file: File) => { const handleUpload = async (file: File) => {
const url = await uploadFileWx({ file }); const url = await uploadFileWx({ file, id: currentRow?.id });
return url; return url;
}; };
useEffect(() => { useEffect(() => {
@ -164,6 +164,16 @@ const TableList: React.FC = () => {
label: record.cityName, label: record.cityName,
value: record.cityCode, value: record.cityCode,
}, },
qrCode: record.groupQrCode
? [
{
uid: `${record.id}_qrCode`,
name: `${record.cityName}_qrCode`,
status: 'done',
url: record.groupQrCode,
},
]
: undefined,
}); });
}} }}
> >
@ -215,7 +225,7 @@ const TableList: React.FC = () => {
cityName: formData.city.label, cityName: formData.city.label,
groupLink: formData.groupLink, groupLink: formData.groupLink,
sendCount: formData.sendCount, sendCount: formData.sendCount,
qroupQrCode: formData.qrCode[0].xhr.responseURL, groupQrCode: formData.qrCode[0].xhr.responseURL,
price: formData.price, price: formData.price,
}; };
console.log('update confirm', formData, params); console.log('update confirm', formData, params);

View File

@ -377,7 +377,7 @@ declare namespace API {
cityName?: string; cityName?: string;
cityCode: string; cityCode: string;
groupLink: string; groupLink: string;
qroupQrCode: string; groupQrCode: string;
sendCount?: number; sendCount?: number;
price?: number; price?: number;
created?: string; created?: string;