Commit 823316f46a2f366e0f96baedba644c13b48420ad
1 parent
ffece678
fix: 修改客户列表默认字体
Showing
8 changed files
with
49 additions
and
6 deletions
src/pages/Client/Client/Components/CommunicationHistoryModal.tsx
@@ -15,6 +15,7 @@ import { | @@ -15,6 +15,7 @@ import { | ||
15 | } from '@ant-design/pro-components'; | 15 | } from '@ant-design/pro-components'; |
16 | import { Descriptions, Popconfirm, message } from 'antd'; | 16 | import { Descriptions, Popconfirm, message } from 'antd'; |
17 | import { useEffect, useRef, useState } from 'react'; | 17 | import { useEffect, useRef, useState } from 'react'; |
18 | +import '../index.less'; | ||
18 | import ClientModal from './ClientModal'; | 19 | import ClientModal from './ClientModal'; |
19 | import InformationHistoryModal from './InformationHistoryModal'; | 20 | import InformationHistoryModal from './InformationHistoryModal'; |
20 | export default ({ record }) => { | 21 | export default ({ record }) => { |
@@ -251,6 +252,7 @@ export default ({ record }) => { | @@ -251,6 +252,7 @@ export default ({ record }) => { | ||
251 | ]; | 252 | ]; |
252 | return ( | 253 | return ( |
253 | <ModalForm | 254 | <ModalForm |
255 | + className="client-index" | ||
254 | title="客户详情" | 256 | title="客户详情" |
255 | trigger={<a type="primary">查看</a>} | 257 | trigger={<a type="primary">查看</a>} |
256 | modalProps={{ | 258 | modalProps={{ |
@@ -260,9 +262,10 @@ export default ({ record }) => { | @@ -260,9 +262,10 @@ export default ({ record }) => { | ||
260 | return true; | 262 | return true; |
261 | }} | 263 | }} |
262 | > | 264 | > |
263 | - <Descriptions items={items} column={2} /> | 265 | + <Descriptions className="client-index" items={items} column={2} /> |
264 | <ClientModal | 266 | <ClientModal |
265 | key={'add'} | 267 | key={'add'} |
268 | + className="client-index" | ||
266 | data={recordSave} | 269 | data={recordSave} |
267 | reloadTable={() => { | 270 | reloadTable={() => { |
268 | actionRef.current?.reload(); | 271 | actionRef.current?.reload(); |
@@ -271,6 +274,7 @@ export default ({ record }) => { | @@ -271,6 +274,7 @@ export default ({ record }) => { | ||
271 | /> | 274 | /> |
272 | <EditableProTable | 275 | <EditableProTable |
273 | rowKey="tid" | 276 | rowKey="tid" |
277 | + className="client-index" | ||
274 | formRef={ref} | 278 | formRef={ref} |
275 | actionRef={actionRef} | 279 | actionRef={actionRef} |
276 | recordCreatorProps={false} | 280 | recordCreatorProps={false} |
src/pages/Client/Client/Components/InformationHistoryModal.tsx
@@ -8,6 +8,7 @@ import { | @@ -8,6 +8,7 @@ import { | ||
8 | import { ModalForm } from '@ant-design/pro-components'; | 8 | import { ModalForm } from '@ant-design/pro-components'; |
9 | import { Button, Descriptions, Space } from 'antd'; | 9 | import { Button, Descriptions, Space } from 'antd'; |
10 | import { useEffect, useRef, useState } from 'react'; | 10 | import { useEffect, useRef, useState } from 'react'; |
11 | +import '../index.less'; | ||
11 | 12 | ||
12 | export default ({ data, reloadTable }) => { | 13 | export default ({ data, reloadTable }) => { |
13 | // const [isModalVisible, setIsModalVisible] = useState(false); // 控制 ClientModal 的显示 | 14 | // const [isModalVisible, setIsModalVisible] = useState(false); // 控制 ClientModal 的显示 |
@@ -153,6 +154,7 @@ export default ({ data, reloadTable }) => { | @@ -153,6 +154,7 @@ export default ({ data, reloadTable }) => { | ||
153 | return ( | 154 | return ( |
154 | <Space> | 155 | <Space> |
155 | <ModalForm | 156 | <ModalForm |
157 | + className="client-index" | ||
156 | title="跟进记录" | 158 | title="跟进记录" |
157 | trigger={<Button type="link">查看</Button>} | 159 | trigger={<Button type="link">查看</Button>} |
158 | submitter={{ | 160 | submitter={{ |
@@ -171,6 +173,7 @@ export default ({ data, reloadTable }) => { | @@ -171,6 +173,7 @@ export default ({ data, reloadTable }) => { | ||
171 | ...defaultDoms, | 173 | ...defaultDoms, |
172 | <> | 174 | <> |
173 | <ClientInformationModal | 175 | <ClientInformationModal |
176 | + className="client-index" | ||
174 | key={'modify'} | 177 | key={'modify'} |
175 | data={data} // 将表单数据传递给 ClientModal | 178 | data={data} // 将表单数据传递给 ClientModal |
176 | reloadTable={() => { | 179 | reloadTable={() => { |
src/pages/Client/Client/index.css
0 → 100644
1 | +.client-index td { | ||
2 | + font-family: 'San Francisco', 'Helvetica Neue', Helvetica, Arial, | ||
3 | + 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', | ||
4 | + 'WenQuanYi Micro Hei', sans-serif; | ||
5 | + font-size: 13px; | ||
6 | + word-wrap: break-word; | ||
7 | + | ||
8 | + /* 优先使用 */ | ||
9 | + word-break: break-word; | ||
10 | + | ||
11 | + /* 强制断行,适用于长单词 */ | ||
12 | + white-space: normal; | ||
13 | + | ||
14 | + /* 允许内容换行 */ | ||
15 | +} |
src/pages/Client/Client/index.less
0 → 100644
1 | +.client-index td { | ||
2 | + font-family: 'San Francisco', 'Helvetica Neue', Helvetica, Arial, | ||
3 | + 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', | ||
4 | + 'WenQuanYi Micro Hei', sans-serif; | ||
5 | + font-size: 13px; | ||
6 | + word-wrap: break-word; /* 优先使用 */ | ||
7 | + word-break: break-word; /* 强制断行,适用于长单词 */ | ||
8 | + white-space: normal; /* 允许内容换行 */ | ||
9 | +} |
src/pages/Client/Client/index.tsx
@@ -17,7 +17,7 @@ import type { ActionType } from '@ant-design/pro-components'; | @@ -17,7 +17,7 @@ import type { ActionType } from '@ant-design/pro-components'; | ||
17 | import { ProTable } from '@ant-design/pro-components'; | 17 | import { ProTable } from '@ant-design/pro-components'; |
18 | import { Badge, Button, Radio, Space, message } from 'antd'; | 18 | import { Badge, Button, Radio, Space, message } from 'antd'; |
19 | import { useEffect, useRef, useState } from 'react'; | 19 | import { useEffect, useRef, useState } from 'react'; |
20 | - | 20 | +import './index.less'; |
21 | const columns = [ | 21 | const columns = [ |
22 | { | 22 | { |
23 | dataIndex: 'index', | 23 | dataIndex: 'index', |
@@ -398,7 +398,7 @@ export default () => { | @@ -398,7 +398,7 @@ export default () => { | ||
398 | actionRef.current?.reload(); | 398 | actionRef.current?.reload(); |
399 | }, [groupFilter]); | 399 | }, [groupFilter]); |
400 | return ( | 400 | return ( |
401 | - <> | 401 | + <div className="client-index"> |
402 | <Space direction="vertical" size="middle" style={{ display: 'flex' }}> | 402 | <Space direction="vertical" size="middle" style={{ display: 'flex' }}> |
403 | <div key={'groupFilter'}> | 403 | <div key={'groupFilter'}> |
404 | <Radio.Group | 404 | <Radio.Group |
@@ -510,6 +510,6 @@ export default () => { | @@ -510,6 +510,6 @@ export default () => { | ||
510 | /> | 510 | /> |
511 | </Space> | 511 | </Space> |
512 | {contextHolder} | 512 | {contextHolder} |
513 | - </> | 513 | + </div> |
514 | ); | 514 | ); |
515 | }; | 515 | }; |
src/pages/Client/FollowRecord/Components/CommunicationHistoryModal.tsx
@@ -6,6 +6,7 @@ import { | @@ -6,6 +6,7 @@ import { | ||
6 | import { ModalForm } from '@ant-design/pro-components'; | 6 | import { ModalForm } from '@ant-design/pro-components'; |
7 | import { Button, Descriptions, Space } from 'antd'; | 7 | import { Button, Descriptions, Space } from 'antd'; |
8 | import { useEffect, useRef, useState } from 'react'; | 8 | import { useEffect, useRef, useState } from 'react'; |
9 | +import '../index.less'; | ||
9 | 10 | ||
10 | export default ({ data, reloadTable }) => { | 11 | export default ({ data, reloadTable }) => { |
11 | // const [isModalVisible, setIsModalVisible] = useState(false); // 控制 ClientModal 的显示 | 12 | // const [isModalVisible, setIsModalVisible] = useState(false); // 控制 ClientModal 的显示 |
@@ -180,6 +181,7 @@ export default ({ data, reloadTable }) => { | @@ -180,6 +181,7 @@ export default ({ data, reloadTable }) => { | ||
180 | return ( | 181 | return ( |
181 | <Space> | 182 | <Space> |
182 | <ModalForm | 183 | <ModalForm |
184 | + className="client-index" | ||
183 | title="跟进记录" | 185 | title="跟进记录" |
184 | trigger={<Button type="primary">查看</Button>} | 186 | trigger={<Button type="primary">查看</Button>} |
185 | submitter={{ | 187 | submitter={{ |
src/pages/Client/FollowRecord/index.less
0 → 100644
1 | +.client-index td { | ||
2 | + font-family: 'San Francisco', 'Helvetica Neue', Helvetica, Arial, | ||
3 | + 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', | ||
4 | + 'WenQuanYi Micro Hei', sans-serif; | ||
5 | + font-size: 13px; | ||
6 | + word-wrap: break-word; /* 优先使用 */ | ||
7 | + word-break: break-word; /* 强制断行,适用于长单词 */ | ||
8 | + white-space: normal; /* 允许内容换行 */ | ||
9 | +} |
src/pages/Client/FollowRecord/index.tsx
@@ -12,6 +12,7 @@ import type { ActionType } from '@ant-design/pro-components'; | @@ -12,6 +12,7 @@ import type { ActionType } from '@ant-design/pro-components'; | ||
12 | import { ProTable } from '@ant-design/pro-components'; | 12 | import { ProTable } from '@ant-design/pro-components'; |
13 | import { Button, Popconfirm, Space, message } from 'antd'; | 13 | import { Button, Popconfirm, Space, message } from 'antd'; |
14 | import { useRef, useState } from 'react'; | 14 | import { useRef, useState } from 'react'; |
15 | +import './index.less'; | ||
15 | 16 | ||
16 | export default () => { | 17 | export default () => { |
17 | const actionRef = useRef<ActionType>(); | 18 | const actionRef = useRef<ActionType>(); |
@@ -328,7 +329,7 @@ export default () => { | @@ -328,7 +329,7 @@ export default () => { | ||
328 | // actionRef.current?.reload(); | 329 | // actionRef.current?.reload(); |
329 | // }, [groupFilter]); | 330 | // }, [groupFilter]); |
330 | return ( | 331 | return ( |
331 | - <> | 332 | + <div className="client-index"> |
332 | <Space direction="vertical" size="middle" style={{ display: 'flex' }}> | 333 | <Space direction="vertical" size="middle" style={{ display: 'flex' }}> |
333 | <ProTable | 334 | <ProTable |
334 | columns={columns} | 335 | columns={columns} |
@@ -410,6 +411,6 @@ export default () => { | @@ -410,6 +411,6 @@ export default () => { | ||
410 | /> | 411 | /> |
411 | </Space> | 412 | </Space> |
412 | {/* {contextHolder} */} | 413 | {/* {contextHolder} */} |
413 | - </> | 414 | + </div> |
414 | ); | 415 | ); |
415 | }; | 416 | }; |