wjx il y a 22 heures
Parent
commit
cc8d16bbbf

+ 1 - 0
src/pages/weComTask/API/weChatApiLicense/index.ts

@@ -12,6 +12,7 @@ export interface GetLicenseAppListProps {
     licenseCheckEnd?: string
     sortFiled?: string
     sortAsc?: boolean
+    bugStatus?: 0 | 1
 }
 
 /**

+ 14 - 1
src/pages/weComTask/page/weChatApiLicense/enterprise/index.tsx

@@ -1,7 +1,7 @@
 import { useAjax } from "@/Hook/useAjax";
 import { getLicenseAppListApi, GetLicenseAppListProps } from "@/pages/weComTask/API/weChatApiLicense";
 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 { SearchOutlined } from "@ant-design/icons";
 import dayJs from "dayjs";
@@ -49,6 +49,18 @@ const Enterprise: React.FC = () => {
                     onChange={(e) => setOldQueryParams({ ...oldQueryParams, corpName: e.target.value })}
                     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
                     placeholder={['试用到期开始日期', '试用到期结束日期']}
                     onChange={(e, date) => { setOldQueryParams({ ...oldQueryParams, expiredStart: date[0], expiredEnd: date[1] }) }}
@@ -110,6 +122,7 @@ const Enterprise: React.FC = () => {
                     key: 'dayPassed',
                     width: 60,
                     align: 'center',
+                    render: (text) => <span style={text > 85 ? { color: 'red' } : {}}>{text}</span>
                 },
                 {
                     title: '购买状态',