提取IP页面取消去重选项
This commit is contained in:
@@ -29,7 +29,7 @@ const schema = z.object({
|
|||||||
// isp: z.enum(['all', '1', '2', '3'], {required_error: '请选择运营商'}),
|
// isp: z.enum(['all', '1', '2', '3'], {required_error: '请选择运营商'}),
|
||||||
proto: z.enum(['all', '1', '2'], {required_error: '请选择协议'}),
|
proto: z.enum(['all', '1', '2'], {required_error: '请选择协议'}),
|
||||||
authType: z.enum(['1', '2'], {required_error: '请选择认证方式'}),
|
authType: z.enum(['1', '2'], {required_error: '请选择认证方式'}),
|
||||||
distinct: z.enum(['1', '0'], {required_error: '请选择去重选项'}),
|
// distinct: z.enum(['1', '0'], {required_error: '请选择去重选项'}),
|
||||||
format: z.enum(['text', 'json'], {required_error: '请选择导出格式'}),
|
format: z.enum(['text', 'json'], {required_error: '请选择导出格式'}),
|
||||||
// hostFormat: z.enum(['domain', 'ip'], {required_error: '请选择主机格式'}),
|
// hostFormat: z.enum(['domain', 'ip'], {required_error: '请选择主机格式'}),
|
||||||
separator: z.string({required_error: '请选择分隔符'}),
|
separator: z.string({required_error: '请选择分隔符'}),
|
||||||
@@ -52,7 +52,7 @@ export default function Extract(props: ExtractProps) {
|
|||||||
proto: 'all',
|
proto: 'all',
|
||||||
authType: '1',
|
authType: '1',
|
||||||
count: 1,
|
count: 1,
|
||||||
distinct: '1',
|
// distinct: '1',
|
||||||
// hostFormat: 'ip',
|
// hostFormat: 'ip',
|
||||||
format: 'text',
|
format: 'text',
|
||||||
breaker: '13,10',
|
breaker: '13,10',
|
||||||
@@ -182,7 +182,7 @@ const FormFields = memo(() => {
|
|||||||
</FormField>
|
</FormField>
|
||||||
|
|
||||||
{/* 去重选项 */}
|
{/* 去重选项 */}
|
||||||
<FormField name="distinct" className="md:max-w-[calc(160px*2+1rem)]" label="去重选项" classNames={{label: 'max-md:text-sm'}}>
|
{/* <FormField name="distinct" className="md:max-w-[calc(160px*2+1rem)]" label="去重选项" classNames={{label: 'max-md:text-sm'}}>
|
||||||
{({id, field}) => (
|
{({id, field}) => (
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
onValueChange={field.onChange}
|
onValueChange={field.onChange}
|
||||||
@@ -198,7 +198,7 @@ const FormFields = memo(() => {
|
|||||||
</FormLabel>
|
</FormLabel>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
)}
|
)}
|
||||||
</FormField>
|
</FormField> */}
|
||||||
|
|
||||||
{/* 导出格式 */}
|
{/* 导出格式 */}
|
||||||
<FormField name="format" className="md:max-w-[calc(160px*2+1rem)]" label="导出格式" classNames={{label: 'max-md:text-sm'}}>
|
<FormField name="format" className="md:max-w-[calc(160px*2+1rem)]" label="导出格式" classNames={{label: 'max-md:text-sm'}}>
|
||||||
@@ -711,7 +711,7 @@ function ApplyLink() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function link(values: Schema) {
|
function link(values: Schema) {
|
||||||
const {resource, prov, city, proto, authType, distinct, format: formatType, separator, breaker, count} = values
|
const {resource, prov, city, proto, authType, format: formatType, separator, breaker, count} = values
|
||||||
console.log(values, 'values')
|
console.log(values, 'values')
|
||||||
|
|
||||||
const sp = new URLSearchParams()
|
const sp = new URLSearchParams()
|
||||||
@@ -722,7 +722,7 @@ function link(values: Schema) {
|
|||||||
if (city) sp.set('b', city)
|
if (city) sp.set('b', city)
|
||||||
|
|
||||||
sp.set('s', 'all')
|
sp.set('s', 'all')
|
||||||
sp.set('d', distinct)
|
sp.set('d', '1')
|
||||||
sp.set('rt', formatType)
|
sp.set('rt', formatType)
|
||||||
sp.set('rh', 'ip')
|
sp.set('rh', 'ip')
|
||||||
sp.set('rs', separator)
|
sp.set('rs', separator)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const defaultFeatures = [
|
|||||||
'IP时效3-30分钟(可定制)',
|
'IP时效3-30分钟(可定制)',
|
||||||
'IP资源定期筛选',
|
'IP资源定期筛选',
|
||||||
'包量/包时计费方式',
|
'包量/包时计费方式',
|
||||||
'每日去重量:500万',
|
'每日去重量:50万',
|
||||||
]
|
]
|
||||||
|
|
||||||
export function FeatureList(props: {
|
export function FeatureList(props: {
|
||||||
|
|||||||
Reference in New Issue
Block a user