From 5a193bd58532af26781addadc83cab195c8415bc Mon Sep 17 00:00:00 2001 From: chashaobao Date: Sun, 18 Jan 2026 15:53:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20feat(=E6=A8=A1=E5=9D=97):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E4=B8=AA=E5=BE=88=E6=A3=92=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/table-list/city-operation/index.tsx | 14 ++++++++++++-- src/services/typings.d.ts | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/pages/table-list/city-operation/index.tsx b/src/pages/table-list/city-operation/index.tsx index 1ffa324..97df222 100644 --- a/src/pages/table-list/city-operation/index.tsx +++ b/src/pages/table-list/city-operation/index.tsx @@ -69,7 +69,7 @@ const TableList: React.FC = () => { actionRef.current?.reload(); }; const handleUpload = async (file: File) => { - const url = await uploadFileWx({ file }); + const url = await uploadFileWx({ file, id: currentRow?.id }); return url; }; useEffect(() => { @@ -164,6 +164,16 @@ const TableList: React.FC = () => { label: record.cityName, 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, groupLink: formData.groupLink, sendCount: formData.sendCount, - qroupQrCode: formData.qrCode[0].xhr.responseURL, + groupQrCode: formData.qrCode[0].xhr.responseURL, price: formData.price, }; console.log('update confirm', formData, params); diff --git a/src/services/typings.d.ts b/src/services/typings.d.ts index 82ab451..9f4e29a 100644 --- a/src/services/typings.d.ts +++ b/src/services/typings.d.ts @@ -377,7 +377,7 @@ declare namespace API { cityName?: string; cityCode: string; groupLink: string; - qroupQrCode: string; + groupQrCode: string; sendCount?: number; price?: number; created?: string;