{
{groupMembersList.map((item) => {
return item.group_members_type == '1' || item.state == 0
? null
- : groupMembersListItem(item, selectGroupRef.current);
+ : groupMembersListItem(item, selectGroupRef.current as IGroup);
})}
{groupMembersCount(groupMembersList, 0) != 0 ? (
{
{groupMembersList.map((item) => {
return item.state == 1
? null
- : groupMembersListItem(item, selectGroupRef.current);
+ : groupMembersListItem(item, selectGroupRef.current as IGroup);
})}
)}
diff --git a/src/pages/CustomList/components/CustDetailContent.tsx b/src/pages/CustomList/components/CustDetailContent.tsx
index 763da64..6ee3764 100644
--- a/src/pages/CustomList/components/CustDetailContent.tsx
+++ b/src/pages/CustomList/components/CustDetailContent.tsx
@@ -1,8 +1,11 @@
import { ICustFollow } from '@/pages/ChatLogs/ChatLogsType';
import { formatTags } from '@/pages/ChatLogs/ChatUtils';
import { Gender } from '@/pages/ChatLogs/components/Gender';
+import { post } from '@/services/ajax';
import { AddWay, CustType } from '@/services/config';
-import React from 'react';
+import { Spin, Steps } from 'antd';
+import { stringify } from 'qs';
+import React, { useEffect, useState } from 'react';
import styles from './index.module.scss';
type IProps = {
@@ -16,6 +19,39 @@ type IProps = {
*/
export const CustDetailContent: React.FC
= (props) => {
const { record } = props;
+ const [timeLine, setTimeLine] = useState([]);
+ const [loading, setLoading] = useState(false);
+
+ const getList = () => {
+ setLoading(true);
+ post({
+ url: '/CustFollows/CustPath',
+ data: stringify({
+ cust_id: record.cust_id,
+ }),
+ }).then((res) => {
+ setLoading(false);
+ if (res.err_code == 0) {
+ if (Array.isArray(res.data)) {
+ let arr: any = [];
+ res.data.forEach((item: any) => {
+ arr.push({
+ title: item.staff_name + ' 添加了好友',
+ description: item.create_time,
+ });
+ });
+ setTimeLine(arr);
+ }
+ }
+ });
+ };
+
+ useEffect(() => {
+ if (props.record.cust_id) {
+ getList();
+ }
+ }, [props.record]);
+
return (
= (props) => {
添加时间:{record?.create_time}
= (props) => {
标签
{formatTags(record?.tags)}
+
+
+ 客户轨迹
+
+
+
+
);
};
diff --git a/src/pages/CustomList/index.tsx b/src/pages/CustomList/index.tsx
index d6404aa..0664ff5 100644
--- a/src/pages/CustomList/index.tsx
+++ b/src/pages/CustomList/index.tsx
@@ -1,4 +1,4 @@
-import { SearchBarPlugin, SearchBottonsCardPlugin } from '@/components/SearchBarPlugin';
+import { SearchBarPlugin } from '@/components/SearchBarPlugin';
import { post } from '@/services/ajax';
import { AddWay, CustType } from '@/services/config';
import { PageContainer } from '@ant-design/pro-components';
@@ -79,110 +79,113 @@ const CustomList: React.FC = () => {
return (
-
-
+ }
+ footer={
+
+
-
-
-
-
-
-
-
+ }
+ />
+
{
return `${record.cust_id}_${record.user_id}`;
}}
loading={loading}
+ onRow={(record: ICustFollow) => {
+ if (
+ record?.add_staff_tot &&
+ !isNaN(record?.add_staff_tot) &&
+ Number(record?.add_staff_tot) > 1
+ ) {
+ return {
+ style: {
+ background: '#fcffe6',
+ },
+ };
+ }
+ return {};
+ }}
>
{
*/}
-
-
+ }
+ footer={
+
+
+
+
-
-
-
-
-
-
-
-
-
+ }
+ >
+
= (props) => {
other.push(item);
}
});
- // 对群员 创建者 > 管理员 > 普通成员 排序
+ // 对群员 群主 > 管理员 > 普通成员 排序
setGroupMembersList([...owner, ...admin_list, ...other]);
}
}
@@ -62,15 +63,33 @@ export const GroupDetailContent: React.FC = (props) => {
{groupMembersList.length ? (
-
- 群主:
- {groupMembersObjRef.current[record?.owner as string]?.name}
+
+
+
+ 群主:
+ {groupMembersObjRef.current[record?.owner as string]?.name}
+
+
+ {adminList(record?.admin_list, groupMembersObjRef.current)}
+
+
创建时间:{record?.create_time}
+
+
+
+
+ 群公告
+
+
{record?.notice || '未设置'}
+
+
-
- {adminList(record?.admin_list, groupMembersObjRef.current)}
-
-
创建时间:{record?.create_time}
-
群公告:{record?.notice}
+
{
return (
-
-
+ }
+ footer={
+
+
-
-
-
-
-
-
-
+ }
+ />
+
{
}}
/>
{
return <>{r?.staff_name}>;
diff --git a/src/pages/Workbench/index.module.scss b/src/pages/Workbench/index.module.scss
index f860dd9..edd7373 100644
--- a/src/pages/Workbench/index.module.scss
+++ b/src/pages/Workbench/index.module.scss
@@ -1,9 +1,17 @@
+.dataSumBox {
+ display: flex;
+}
+
.dataSum {
margin-bottom: 24px;
padding: 24px;
color: #000;
background-color: #fff;
border-radius: 8px;
+
+ &:last-child {
+ margin-bottom: 12px;
+ }
}
.dataItem {
@@ -20,6 +28,7 @@
.dataIconBox {
display: flex;
+ flex-shrink: 0;
align-items: center;
justify-content: center;
width: 64px;
@@ -35,8 +44,8 @@
}
.dataCount {
- font-size: 26px;
font-weight: 500;
+ font-size: 26px;
}
.dataCardBox {
@@ -51,3 +60,30 @@
border: 1px solid #ddd;
border-radius: 12px;
}
+
+@media only screen and (max-width: 768px) {
+ .dataSumBox,
+ .dataCardBox {
+ flex-direction: column;
+ }
+
+ .dataItem {
+ display: flex;
+ width: 100%;
+ padding-bottom: 12px;
+ border-right: none;
+
+ &:last-child {
+ margin-bottom: 0;
+ padding-bottom: 0;
+ }
+ }
+
+ .dataCard {
+ margin-bottom: 12px;
+ }
+
+ .dataSum {
+ margin-bottom: 16px;
+ }
+}
diff --git a/src/pages/Workbench/index.tsx b/src/pages/Workbench/index.tsx
index 5f464ea..8423873 100644
--- a/src/pages/Workbench/index.tsx
+++ b/src/pages/Workbench/index.tsx
@@ -99,7 +99,7 @@ const Workbench: React.FC = () => {
数据总览
{/* 更新时间:2022-12-12 23:30:30 */}
-