|
|
@ -1,5 +1,5 @@
|
|
|
|
import React from "react";
|
|
|
|
import React from "react";
|
|
|
|
import {Avatar, Card, Col, Row, Table, Typography, Input, Divider, Checkbox, Select, Button, Form, message} from "antd";
|
|
|
|
import {Avatar, Card, Col, Row, Table, Typography, Input, Divider, Icon, Select, Button, Form, message, Radio} from "antd";
|
|
|
|
import axios from "axios";
|
|
|
|
import axios from "axios";
|
|
|
|
import config from "../../../../public/conf/config.json";
|
|
|
|
import config from "../../../../public/conf/config.json";
|
|
|
|
|
|
|
|
|
|
|
@ -26,10 +26,17 @@ class FiltersForm extends React.Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(values.hasOwnProperty("deviceType") && values.deviceType==="all"){
|
|
|
|
if(values.hasOwnProperty("deviceType") && values.deviceType==="ALL"){
|
|
|
|
delete values["deviceType"];
|
|
|
|
delete values["deviceType"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(values.hasOwnProperty("subscriptionType") && values.subscriptionType==="ALL"){
|
|
|
|
|
|
|
|
delete values["subscriptionType"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(values.hasOwnProperty("appType") && values.appType==="ALL"){
|
|
|
|
|
|
|
|
delete values["appType"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.props.setFilters(values);
|
|
|
|
this.props.setFilters(values);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -152,6 +159,15 @@ class FiltersForm extends React.Component {
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item>
|
|
|
|
|
|
|
|
{getFieldDecorator('serach', {})(
|
|
|
|
|
|
|
|
<Input
|
|
|
|
|
|
|
|
prefix={<Icon type="user" style={{ color: 'rgba(0,0,0,.25)' }} />}
|
|
|
|
|
|
|
|
placeholder="Username"
|
|
|
|
|
|
|
|
/>,
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item label="Categories">
|
|
|
|
<Form.Item label="Categories">
|
|
|
|
{getFieldDecorator('categories', {
|
|
|
|
{getFieldDecorator('categories', {
|
|
|
|
rules: [{
|
|
|
|
rules: [{
|
|
|
@ -202,8 +218,7 @@ class FiltersForm extends React.Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<Option
|
|
|
|
<Option
|
|
|
|
key="all">
|
|
|
|
key="ALL">All
|
|
|
|
all
|
|
|
|
|
|
|
|
</Option>
|
|
|
|
</Option>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
@ -244,6 +259,7 @@ class FiltersForm extends React.Component {
|
|
|
|
<Option value="ENTERPRISE">Enterprise</Option>
|
|
|
|
<Option value="ENTERPRISE">Enterprise</Option>
|
|
|
|
<Option value="PUBLIC">Public</Option>
|
|
|
|
<Option value="PUBLIC">Public</Option>
|
|
|
|
<Option value="WEB_CLIP">Web APP</Option>
|
|
|
|
<Option value="WEB_CLIP">Web APP</Option>
|
|
|
|
|
|
|
|
<Option value="ALL">All</Option>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
@ -251,10 +267,11 @@ class FiltersForm extends React.Component {
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item label="Subscription Type">
|
|
|
|
<Form.Item label="Subscription Type">
|
|
|
|
{getFieldDecorator('subscriptionType', {})(
|
|
|
|
{getFieldDecorator('subscriptionType', {})(
|
|
|
|
<Checkbox.Group style={{width: '100%'}}>
|
|
|
|
<Radio.Group style={{width: '100%'}}>
|
|
|
|
<Checkbox value="FREE">Free</Checkbox><br/>
|
|
|
|
<Radio value="FREE">Free</Radio>
|
|
|
|
<Checkbox value="PAID">Paid</Checkbox><br/>
|
|
|
|
<Radio value="PAID">Paid</Radio>
|
|
|
|
</Checkbox.Group>,
|
|
|
|
<Radio value="ALL">All</Radio>
|
|
|
|
|
|
|
|
</Radio.Group>,
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Divider/>
|
|
|
|
<Divider/>
|
|
|
|