|
@@ -6,12 +6,13 @@ import React, { useEffect, useState } from 'react';
|
|
|
import moment from 'moment';
|
|
|
import { CorpUserDayListTableConfig } from './tableConfig';
|
|
|
import GroupUserEdit from '../tencenTasset/corpWechat/csgroup/components/group/groupUserEdit';
|
|
|
+import { POOLTYPE } from '../tencenTasset/corpWechat/csgroup/const';
|
|
|
|
|
|
/**
|
|
|
* 客服号加粉数据
|
|
|
* @returns
|
|
|
*/
|
|
|
-const AstraSupport: React.FC = () => {
|
|
|
+const AstraSupport: React.FC<{ localCorpCsgroupList: { label: string, value: string, type: 0 | 1 }[] }> = ({ localCorpCsgroupList }) => {
|
|
|
|
|
|
/*******************************************/
|
|
|
const [corpWechatList, setCorpWechatList] = useState<{ label: string, value: string }[]>([]);
|
|
@@ -64,6 +65,34 @@ const AstraSupport: React.FC = () => {
|
|
|
}}
|
|
|
options={corpWechatList}
|
|
|
/>
|
|
|
+ <Select
|
|
|
+ showSearch
|
|
|
+ placeholder="请选择本地客服组"
|
|
|
+ filterOption={(input, option) =>
|
|
|
+ ((option?.label ?? '') as any).toLowerCase().includes(input.toLowerCase())
|
|
|
+ }
|
|
|
+ style={{ width: 140 }}
|
|
|
+ allowClear
|
|
|
+ value={queryParams?.localCsgroupId}
|
|
|
+ onChange={(e) => {
|
|
|
+ setQueryParams({ ...queryParams, localCsgroupId: e, pageNum: 1 })
|
|
|
+ }}
|
|
|
+ options={localCorpCsgroupList?.filter(item => item.type === 1)}
|
|
|
+ />
|
|
|
+ <Select
|
|
|
+ showSearch
|
|
|
+ placeholder="归属客服池"
|
|
|
+ filterOption={(input, option) =>
|
|
|
+ ((option?.label ?? '') as any).toLowerCase().includes(input.toLowerCase())
|
|
|
+ }
|
|
|
+ disabled={!queryParams?.localCsgroupId}
|
|
|
+ allowClear
|
|
|
+ value={queryParams?.poolType}
|
|
|
+ onChange={(e) => {
|
|
|
+ setQueryParams({ ...queryParams, poolType: e, pageNum: 1 })
|
|
|
+ }}
|
|
|
+ options={Object.keys(POOLTYPE).map((key) => ({ label: POOLTYPE[key as keyof typeof POOLTYPE], value: key }))}
|
|
|
+ />
|
|
|
<Input value={queryParams?.corpUserName} style={{ width: 140 }} placeholder='客服号名称' onChange={(e) => setQueryParams({ ...queryParams, corpUserName: e.target.value, pageNum: 1 })} allowClear />
|
|
|
<InputNumber value={queryParams?.addFansMin} placeholder='新增粉丝数最小值' style={{ width: 150 }} onChange={(e) => setQueryParams({ ...queryParams, addFansMin: e, pageNum: 1 })} />
|
|
|
<InputNumber value={queryParams?.addFansMax} placeholder='新增粉丝数最大值' style={{ width: 150 }} onChange={(e) => setQueryParams({ ...queryParams, addFansMax: e, pageNum: 1 })} />
|