|
@@ -1,7 +1,7 @@
|
|
|
import { useAjax } from "@/Hook/useAjax";
|
|
import { useAjax } from "@/Hook/useAjax";
|
|
|
import { getLicenseAppListApi, GetLicenseAppListProps } from "@/pages/weComTask/API/weChatApiLicense";
|
|
import { getLicenseAppListApi, GetLicenseAppListProps } from "@/pages/weComTask/API/weChatApiLicense";
|
|
|
import SearchBox from "@/pages/weComTask/components/searchBox";
|
|
import SearchBox from "@/pages/weComTask/components/searchBox";
|
|
|
-import { Button, Card, DatePicker, Input, Table, Tag } from "antd";
|
|
|
|
|
|
|
+import { Button, Card, DatePicker, Input, Select, Table, Tag } from "antd";
|
|
|
import { useEffect, useState } from "react";
|
|
import { useEffect, useState } from "react";
|
|
|
import { SearchOutlined } from "@ant-design/icons";
|
|
import { SearchOutlined } from "@ant-design/icons";
|
|
|
import dayJs from "dayjs";
|
|
import dayJs from "dayjs";
|
|
@@ -49,6 +49,18 @@ const Enterprise: React.FC = () => {
|
|
|
onChange={(e) => setOldQueryParams({ ...oldQueryParams, corpName: e.target.value })}
|
|
onChange={(e) => setOldQueryParams({ ...oldQueryParams, corpName: e.target.value })}
|
|
|
value={oldQueryParams?.corpName}
|
|
value={oldQueryParams?.corpName}
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <Select
|
|
|
|
|
+ allowClear
|
|
|
|
|
+ placeholder="购买状态"
|
|
|
|
|
+ showSearch
|
|
|
|
|
+ options={[{ label: '已购买', value: 1 }, { label: '未购买', value: 0 }]}
|
|
|
|
|
+ filterOption={(input, option) =>
|
|
|
|
|
+ ((option?.label ?? '') as string).toLowerCase().includes(input.toLowerCase())
|
|
|
|
|
+ }
|
|
|
|
|
+ style={{ width: 80 }}
|
|
|
|
|
+ value={oldQueryParams?.bugStatus}
|
|
|
|
|
+ onChange={(e) => setOldQueryParams({ ...oldQueryParams, bugStatus: e })}
|
|
|
|
|
+ />
|
|
|
<DatePicker.RangePicker
|
|
<DatePicker.RangePicker
|
|
|
placeholder={['试用到期开始日期', '试用到期结束日期']}
|
|
placeholder={['试用到期开始日期', '试用到期结束日期']}
|
|
|
onChange={(e, date) => { setOldQueryParams({ ...oldQueryParams, expiredStart: date[0], expiredEnd: date[1] }) }}
|
|
onChange={(e, date) => { setOldQueryParams({ ...oldQueryParams, expiredStart: date[0], expiredEnd: date[1] }) }}
|
|
@@ -110,6 +122,7 @@ const Enterprise: React.FC = () => {
|
|
|
key: 'dayPassed',
|
|
key: 'dayPassed',
|
|
|
width: 60,
|
|
width: 60,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
|
|
+ render: (text) => <span style={text > 85 ? { color: 'red' } : {}}>{text}</span>
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '购买状态',
|
|
title: '购买状态',
|