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,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 }) => { |
@@ -258,6 +259,7 @@ export default ({ record }) => { | @@ -258,6 +259,7 @@ export default ({ record }) => { | ||
258 | ]; | 259 | ]; |
259 | return ( | 260 | return ( |
260 | <ModalForm | 261 | <ModalForm |
262 | + className="client-index" | ||
261 | title="客户详情" | 263 | title="客户详情" |
262 | trigger={<a type="primary">查看</a>} | 264 | trigger={<a type="primary">查看</a>} |
263 | modalProps={{ | 265 | modalProps={{ |
@@ -267,9 +269,10 @@ export default ({ record }) => { | @@ -267,9 +269,10 @@ export default ({ record }) => { | ||
267 | return true; | 269 | return true; |
268 | }} | 270 | }} |
269 | > | 271 | > |
270 | - <Descriptions items={items} column={2} /> | 272 | + <Descriptions className="client-index" items={items} column={2} /> |
271 | <ClientModal | 273 | <ClientModal |
272 | key={'add'} | 274 | key={'add'} |
275 | + className="client-index" | ||
273 | data={recordSave} | 276 | data={recordSave} |
274 | reloadTable={() => { | 277 | reloadTable={() => { |
275 | actionRef.current?.reload(); | 278 | actionRef.current?.reload(); |
@@ -278,6 +281,7 @@ export default ({ record }) => { | @@ -278,6 +281,7 @@ export default ({ record }) => { | ||
278 | /> | 281 | /> |
279 | <EditableProTable | 282 | <EditableProTable |
280 | rowKey="tid" | 283 | rowKey="tid" |
284 | + className="client-index" | ||
281 | formRef={ref} | 285 | formRef={ref} |
282 | actionRef={actionRef} | 286 | actionRef={actionRef} |
283 | recordCreatorProps={false} | 287 | 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', |
@@ -415,7 +415,7 @@ export default () => { | @@ -415,7 +415,7 @@ export default () => { | ||
415 | actionRef.current?.reload(); | 415 | actionRef.current?.reload(); |
416 | }, [groupFilter]); | 416 | }, [groupFilter]); |
417 | return ( | 417 | return ( |
418 | - <> | 418 | + <div className="client-index"> |
419 | <Space direction="vertical" size="middle" style={{ display: 'flex' }}> | 419 | <Space direction="vertical" size="middle" style={{ display: 'flex' }}> |
420 | <div key={'groupFilter'}> | 420 | <div key={'groupFilter'}> |
421 | <Radio.Group | 421 | <Radio.Group |
@@ -527,6 +527,6 @@ export default () => { | @@ -527,6 +527,6 @@ export default () => { | ||
527 | /> | 527 | /> |
528 | </Space> | 528 | </Space> |
529 | {contextHolder} | 529 | {contextHolder} |
530 | - </> | 530 | + </div> |
531 | ); | 531 | ); |
532 | }; | 532 | }; |
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 | }; |