Commit 0cbf10f07bd0371c70ded64e2a8ce90d9ea99cd9
Merge remote-tracking branch 'origin/warningNew' into clienetAdd
Showing
8 changed files
with
49 additions
and
6 deletions
Too many changes to show.
To preserve performance only 8 of 55 files are displayed.
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 }) => { |
... | ... | @@ -258,6 +259,7 @@ export default ({ record }) => { |
258 | 259 | ]; |
259 | 260 | return ( |
260 | 261 | <ModalForm |
262 | + className="client-index" | |
261 | 263 | title="客户详情" |
262 | 264 | trigger={<a type="primary">查看</a>} |
263 | 265 | modalProps={{ |
... | ... | @@ -267,9 +269,10 @@ export default ({ record }) => { |
267 | 269 | return true; |
268 | 270 | }} |
269 | 271 | > |
270 | - <Descriptions items={items} column={2} /> | |
272 | + <Descriptions className="client-index" items={items} column={2} /> | |
271 | 273 | <ClientModal |
272 | 274 | key={'add'} |
275 | + className="client-index" | |
273 | 276 | data={recordSave} |
274 | 277 | reloadTable={() => { |
275 | 278 | actionRef.current?.reload(); |
... | ... | @@ -278,6 +281,7 @@ export default ({ record }) => { |
278 | 281 | /> |
279 | 282 | <EditableProTable |
280 | 283 | rowKey="tid" |
284 | + className="client-index" | |
281 | 285 | formRef={ref} |
282 | 286 | actionRef={actionRef} |
283 | 287 | 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 }) => { |
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 }) => { |
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 '@ant-design/pro-components'; |
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', |
... | ... | @@ -415,7 +415,7 @@ export default () => { |
415 | 415 | actionRef.current?.reload(); |
416 | 416 | }, [groupFilter]); |
417 | 417 | return ( |
418 | - <> | |
418 | + <div className="client-index"> | |
419 | 419 | <Space direction="vertical" size="middle" style={{ display: 'flex' }}> |
420 | 420 | <div key={'groupFilter'}> |
421 | 421 | <Radio.Group |
... | ... | @@ -527,6 +527,6 @@ export default () => { |
527 | 527 | /> |
528 | 528 | </Space> |
529 | 529 | {contextHolder} |
530 | - </> | |
530 | + </div> | |
531 | 531 | ); |
532 | 532 | }; | ... | ... |
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 }) => { |
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 '@ant-design/pro-components'; |
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 () => { |
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 () => { |
410 | 411 | /> |
411 | 412 | </Space> |
412 | 413 | {/* {contextHolder} */} |
413 | - </> | |
414 | + </div> | |
414 | 415 | ); |
415 | 416 | }; | ... | ... |