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: '必填项' }]}
/>
+