From 8d25ee32c4f42e3e283271dccab52f4056503546 Mon Sep 17 00:00:00 2001 From: chashaobao Date: Sun, 18 Jan 2026 09:24:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20feat(=E6=A8=A1=E5=9D=97):=20?= =?UTF-8?q?=E5=9F=8E=E5=B8=82=E8=BF=90=E8=90=A5=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/table-list/city-operation/index.tsx | 39 ++++++++++++++++++- src/services/typings.d.ts | 3 ++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/src/pages/table-list/city-operation/index.tsx b/src/pages/table-list/city-operation/index.tsx index 29ddb00..1f3fbaf 100644 --- a/src/pages/table-list/city-operation/index.tsx +++ b/src/pages/table-list/city-operation/index.tsx @@ -7,6 +7,7 @@ import { ProFormText, ProFormDigit, ProFormMoney, + ProFormUploadButton, } from '@ant-design/pro-components'; import { ModalForm, PageContainer, ProTable } from '@ant-design/pro-components'; import '@umijs/max'; @@ -18,6 +19,7 @@ import React, { useEffect, useMemo, useRef, useState } from 'react'; import { CITY_OPTIONS } from '@/constants/city'; import { TIME_FORMAT } from '@/constants/global'; +import { uploadFile } from '@/services/file'; import { deleteCityOperator, getAllStaffList, getCityOpratorList, updateCityOperator } from '@/services/list'; const useStyles = createStyles(({ token }) => { @@ -66,7 +68,10 @@ const TableList: React.FC = () => { message.success('操作成功'); actionRef.current?.reload(); }; - + const handleUpload = async (file: File) => { + const { url } = await uploadFile({ file, type: 'IMAGE' }); + return url; + }; useEffect(() => { getAllStaffOptions(); }, []); @@ -109,6 +114,26 @@ const TableList: React.FC = () => { valueType: 'textarea', search: false, }, + { + title: '企微好友二维码', + dataIndex: 'contactQrCode', + valueType: 'textarea', + copyable: true, + search: false, + render(_dom, { contactQrCode }) { + return ; + }, + }, + { + title: '进群二维码', + dataIndex: 'groupQrCode', + valueType: 'textarea', + copyable: true, + search: false, + render(_dom, { groupQrCode }) { + return ; + }, + }, { title: '可群发数量', dataIndex: 'sendCount', @@ -190,6 +215,7 @@ const TableList: React.FC = () => { cityName: formData.city.label, groupLink: formData.groupLink, sendCount: formData.sendCount, + qroupQrCode: formData.qrCode[0].xhr.responseURL, price: formData.price, }; console.log('update confirm', formData, params); @@ -217,6 +243,17 @@ const TableList: React.FC = () => { rules={[{ required: true, message: '必填项' }]} /> +