wjx 2 周之前
父节点
当前提交
62c57806e7

+ 1 - 1
src/pages/weComTask/API/groupChat/index.ts

@@ -119,7 +119,7 @@ export interface GetLogChatUserInfoListProps {
     id: number,
     pageNum: number,
     pageSize: number,
-    status?: number
+    status?: 1 | 3 | 4 | null
 }
 
 /**

+ 5 - 5
src/pages/weComTask/page/groupChat/taskList/details.tsx

@@ -483,7 +483,7 @@ const TaskDetails: React.FC<{
                     key: 'kfhxq',
                     width: 80,
                     align: 'center',
-                    render: (a, b: any) => { 
+                    render: (a, b: any) => {
                         return <KfhDetails chatLogId={b.id} />
                     }
                 },
@@ -493,7 +493,7 @@ const TaskDetails: React.FC<{
                     key: 'pullGroupUserCount',
                     width: 80,
                     align: 'center',
-                    render: (a, b) => <UserInfo count={a} id={b.id} title="预计拉群客户详情"/>
+                    render: (a, b) => <UserInfo count={a} id={b.id} title="预计拉群客户详情" status={null} />
                 },
                 {
                     title: '实际拉群客户数',
@@ -501,7 +501,7 @@ const TaskDetails: React.FC<{
                     key: 'actualPullGroupUserCount',
                     width: 80,
                     align: 'center',
-                    render: (a, b) => <UserInfo count={a} id={b.id} title="实际拉群客户详情"/>
+                    render: (a, b) => <UserInfo count={a} id={b.id} title="实际拉群客户详情" status={1} />
                 },
                 {
                     title: '删除或拉黑客户数',
@@ -509,7 +509,7 @@ const TaskDetails: React.FC<{
                     key: 'deleteOrBlockUserCount',
                     width: 80,
                     align: 'center',
-                    render: (a, b) => <UserInfo count={a} id={b.id} title="删除或拉黑客户详情"/>
+                    render: (a, b) => <UserInfo count={a} id={b.id} title="删除或拉黑客户详情" status={3} />
                 },
                 {
                     title: '发送邀请客户数',
@@ -517,7 +517,7 @@ const TaskDetails: React.FC<{
                     key: 'sendInviteUserCount',
                     width: 80,
                     align: 'center',
-                    render: (a, b) => <UserInfo count={a} id={b.id} title="发送邀请客户详情"/>
+                    render: (a, b) => <UserInfo count={a} id={b.id} title="发送邀请客户详情" status={4} />
                 }
             ]}
         />

+ 3 - 15
src/pages/weComTask/page/groupChat/taskList/userInfo.tsx

@@ -1,6 +1,6 @@
 import { useAjax } from "@/Hook/useAjax";
 import { getLogChatUserInfoListApi, GetLogChatUserInfoListProps } from "@/pages/weComTask/API/groupChat";
-import { Modal, Select, Table } from "antd";
+import { Modal, Table } from "antd";
 import React, { useEffect, useState } from "react";
 
 
@@ -9,10 +9,10 @@ import React, { useEffect, useState } from "react";
  * @param param0 
  * @returns 
  */
-const UserInfo: React.FC<{ id: number, count: number, title?: string }> = ({ id, count, title }) => {
+const UserInfo: React.FC<{ id: number, count: number, title?: string, status?: 1 | 3 | 4 | null }> = ({ id, count, title, status }) => {
 
     /*********************************************/
-    const [queryForm, setQueryForm] = useState<GetLogChatUserInfoListProps>({ id, pageNum: 1, pageSize: 20 })
+    const [queryForm, setQueryForm] = useState<GetLogChatUserInfoListProps>({ id, pageNum: 1, pageSize: 20, status })
     const [visible, setVisible] = useState<boolean>(false);
     const getLogChatUserInfoList = useAjax((params) => getLogChatUserInfoListApi(params))
     /*********************************************/
@@ -32,18 +32,6 @@ const UserInfo: React.FC<{ id: number, count: number, title?: string }> = ({ id,
             width={1100}
             footer={null}
         >
-            <Select
-                placeholder='状态'
-                allowClear
-                options={[{ label: '实际拉群', value: 1 }, { label: '删除或拉黑', value: 3 }, { label: '邀请', value: 4 }]}
-                showSearch
-                style={{ width: 150, marginBottom: 10 }}
-                filterOption={(input, option) =>
-                    (option?.label ?? '').toLowerCase().includes(input.toLowerCase())
-                }
-                value={queryForm?.status}
-                onChange={(value) => setQueryForm({ ...queryForm, status: value })}
-            />
             <Table
                 dataSource={getLogChatUserInfoList?.data?.data?.records}
                 columns={[