Commit 823316f46a2f366e0f96baedba644c13b48420ad

Authored by boyang
1 parent ffece678

fix: 修改客户列表默认字体

src/pages/Client/Client/Components/CommunicationHistoryModal.tsx
... ... @@ -15,6 +15,7 @@ import {
15 15 } from '@ant-design/pro-components';
16 16 import { Descriptions, Popconfirm, message } from 'antd';
17 17 import { useEffect, useRef, useState } from 'react';
  18 +import '../index.less';
18 19 import ClientModal from './ClientModal';
19 20 import InformationHistoryModal from './InformationHistoryModal';
20 21 export default ({ record }) => {
... ... @@ -251,6 +252,7 @@ export default ({ record }) => {
251 252 ];
252 253 return (
253 254 <ModalForm
  255 + className="client-index"
254 256 title="客户详情"
255 257 trigger={<a type="primary">查看</a>}
256 258 modalProps={{
... ... @@ -260,9 +262,10 @@ export default ({ record }) =&gt; {
260 262 return true;
261 263 }}
262 264 >
263   - <Descriptions items={items} column={2} />
  265 + <Descriptions className="client-index" items={items} column={2} />
264 266 <ClientModal
265 267 key={'add'}
  268 + className="client-index"
266 269 data={recordSave}
267 270 reloadTable={() => {
268 271 actionRef.current?.reload();
... ... @@ -271,6 +274,7 @@ export default ({ record }) =&gt; {
271 274 />
272 275 <EditableProTable
273 276 rowKey="tid"
  277 + className="client-index"
274 278 formRef={ref}
275 279 actionRef={actionRef}
276 280 recordCreatorProps={false}
... ...
src/pages/Client/Client/Components/InformationHistoryModal.tsx
... ... @@ -8,6 +8,7 @@ import {
8 8 import { ModalForm } from '@ant-design/pro-components';
9 9 import { Button, Descriptions, Space } from 'antd';
10 10 import { useEffect, useRef, useState } from 'react';
  11 +import '../index.less';
11 12  
12 13 export default ({ data, reloadTable }) => {
13 14 // const [isModalVisible, setIsModalVisible] = useState(false); // 控制 ClientModal 的显示
... ... @@ -153,6 +154,7 @@ export default ({ data, reloadTable }) =&gt; {
153 154 return (
154 155 <Space>
155 156 <ModalForm
  157 + className="client-index"
156 158 title="跟进记录"
157 159 trigger={<Button type="link">查看</Button>}
158 160 submitter={{
... ... @@ -171,6 +173,7 @@ export default ({ data, reloadTable }) =&gt; {
171 173 ...defaultDoms,
172 174 <>
173 175 <ClientInformationModal
  176 + className="client-index"
174 177 key={'modify'}
175 178 data={data} // 将表单数据传递给 ClientModal
176 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 &#39;@ant-design/pro-components&#39;;
17 17 import { ProTable } from '@ant-design/pro-components';
18 18 import { Badge, Button, Radio, Space, message } from 'antd';
19 19 import { useEffect, useRef, useState } from 'react';
20   -
  20 +import './index.less';
21 21 const columns = [
22 22 {
23 23 dataIndex: 'index',
... ... @@ -398,7 +398,7 @@ export default () =&gt; {
398 398 actionRef.current?.reload();
399 399 }, [groupFilter]);
400 400 return (
401   - <>
  401 + <div className="client-index">
402 402 <Space direction="vertical" size="middle" style={{ display: 'flex' }}>
403 403 <div key={'groupFilter'}>
404 404 <Radio.Group
... ... @@ -510,6 +510,6 @@ export default () =&gt; {
510 510 />
511 511 </Space>
512 512 {contextHolder}
513   - </>
  513 + </div>
514 514 );
515 515 };
... ...
src/pages/Client/FollowRecord/Components/CommunicationHistoryModal.tsx
... ... @@ -6,6 +6,7 @@ import {
6 6 import { ModalForm } from '@ant-design/pro-components';
7 7 import { Button, Descriptions, Space } from 'antd';
8 8 import { useEffect, useRef, useState } from 'react';
  9 +import '../index.less';
9 10  
10 11 export default ({ data, reloadTable }) => {
11 12 // const [isModalVisible, setIsModalVisible] = useState(false); // 控制 ClientModal 的显示
... ... @@ -180,6 +181,7 @@ export default ({ data, reloadTable }) =&gt; {
180 181 return (
181 182 <Space>
182 183 <ModalForm
  184 + className="client-index"
183 185 title="跟进记录"
184 186 trigger={<Button type="primary">查看</Button>}
185 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 &#39;@ant-design/pro-components&#39;;
12 12 import { ProTable } from '@ant-design/pro-components';
13 13 import { Button, Popconfirm, Space, message } from 'antd';
14 14 import { useRef, useState } from 'react';
  15 +import './index.less';
15 16  
16 17 export default () => {
17 18 const actionRef = useRef<ActionType>();
... ... @@ -328,7 +329,7 @@ export default () =&gt; {
328 329 // actionRef.current?.reload();
329 330 // }, [groupFilter]);
330 331 return (
331   - <>
  332 + <div className="client-index">
332 333 <Space direction="vertical" size="middle" style={{ display: 'flex' }}>
333 334 <ProTable
334 335 columns={columns}
... ... @@ -410,6 +411,6 @@ export default () =&gt; {
410 411 />
411 412 </Space>
412 413 {/* {contextHolder} */}
413   - </>
  414 + </div>
414 415 );
415 416 };
... ...