|
@@ -123,6 +123,20 @@ const Group: React.FC<{ adAccountId?: number }> = ({ adAccountId }) => {
|
|
|
}}
|
|
|
options={[{ label: '是', value: 0 }, { label: '否', value: 1 }]}
|
|
|
/>
|
|
|
+ <Select
|
|
|
+ showSearch
|
|
|
+ placeholder="关闭状态开关"
|
|
|
+ filterOption={(input, option) =>
|
|
|
+ ((option?.label ?? '') as any).toLowerCase().includes(input.toLowerCase())
|
|
|
+ }
|
|
|
+ style={{ width: 130 }}
|
|
|
+ allowClear
|
|
|
+ value={queryParamsNew?.closeSwitch}
|
|
|
+ onChange={(e) => {
|
|
|
+ setQueryParamsNew({ ...queryParamsNew, closeSwitch: e, pageNum: 1 })
|
|
|
+ }}
|
|
|
+ options={[{ label: '开启', value: false }, { label: '关闭', value: true }]}
|
|
|
+ />
|
|
|
<Button type="primary" icon={<SearchOutlined />} loading={getCustomerServiceGroupList.loading} onClick={() => getCustomerServiceGroupList.refresh()}>刷新</Button>
|
|
|
<Button
|
|
|
type="primary"
|
|
@@ -133,7 +147,7 @@ const Group: React.FC<{ adAccountId?: number }> = ({ adAccountId }) => {
|
|
|
>新增</Button>
|
|
|
</div>
|
|
|
<Table
|
|
|
- columns={columns(handleEdit)}
|
|
|
+ columns={columns(handleEdit, () => getCustomerServiceGroupList.refresh())}
|
|
|
dataSource={getCustomerServiceGroupList.data?.records}
|
|
|
size="small"
|
|
|
loading={getCustomerServiceGroupList?.loading}
|