|
|
@@ -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={[
|