Commit f5196248 by end

修改工作台

parent c91fc94f
No preview for this file type
...@@ -234,6 +234,9 @@ class homePage extends Component { ...@@ -234,6 +234,9 @@ class homePage extends Component {
date: this.state.hdlTime, date: this.state.hdlTime,
subName: this.state.hdlOrg, subName: this.state.hdlOrg,
}); });
// this.props.getHdlMenu({ parentId: '1848920218336808960' }).then(res => {
// console.log(res, '2222222222')
// });
}; };
hdlChart = () => { hdlChart = () => {
const { hdlData } = this.props; const { hdlData } = this.props;
...@@ -793,7 +796,7 @@ class homePage extends Component { ...@@ -793,7 +796,7 @@ class homePage extends Component {
this.getDllRes(); this.getDllRes();
this.getLllRes(); this.getLllRes();
this.props.getHdlMenu({ parentId: 0 }).then(res => { this.props.getHdlMenu({ parentId: 0 }).then(res => {
_this.setState({ hdlOrg: _this.props.hdlMenu[0]?.name }, () => { _this.setState({ hdlOrg: _this.props.hdlMenu[0]?.id }, () => {
_this.getHdlRes(); _this.getHdlRes();
}); });
_this.setState( _this.setState(
...@@ -920,7 +923,7 @@ class homePage extends Component { ...@@ -920,7 +923,7 @@ class homePage extends Component {
}; };
const hdlOption = hdlMenu?.map((item, index) => { const hdlOption = hdlMenu?.map((item, index) => {
return ( return (
<Option value={item.name} key={index}> <Option value={item.id} key={index}>
{item.name} {item.name}
</Option> </Option>
); );
...@@ -957,14 +960,14 @@ class homePage extends Component { ...@@ -957,14 +960,14 @@ class homePage extends Component {
</p> </p>
</div> </div>
<div className={styles.card2}> <div className={styles.card2}>
<p>{this.state.lllcurrentPeriod}浏览量(</p> <p>{this.state.lllcurrentPeriod}浏览量(</p>
<p> <p>
<span>{lllNumTotal} </span> <span>{lllNumTotal} </span>
{readChange()} {readChange()}
</p> </p>
</div> </div>
<div className={styles.card3}> <div className={styles.card3}>
<p>{this.state.hdlcurrentPeriod}互动量(</p> <p>{this.state.hdlcurrentPeriod}互动量(</p>
<p> <p>
<span>{hdlNumTotal} </span> <span>{hdlNumTotal} </span>
{admireChange()} {admireChange()}
......
...@@ -37,17 +37,17 @@ class Header extends React.Component { ...@@ -37,17 +37,17 @@ class Header extends React.Component {
</Option> </Option>
); );
}); });
const List1 = [ // const List1 = [
{ value: 1, text: "同步首页" }, // { value: 1, text: "同步首页" },
{ value: 2, text: "移除首页" }, // { value: 2, text: "移除首页" },
]; // ];
const option1 = List1.map((item, index) => { // const option1 = List1.map((item, index) => {
return ( // return (
<Option value={item.value} key={index}> // <Option value={item.value} key={index}>
{item.text} // {item.text}
</Option> // </Option>
); // );
}); // });
return ( return (
<Row> <Row>
<Form <Form
...@@ -71,7 +71,7 @@ class Header extends React.Component { ...@@ -71,7 +71,7 @@ class Header extends React.Component {
</Select> </Select>
)} )}
</FormItem> </FormItem>
<FormItem label="是否同步首页:"> {/* <FormItem label="是否同步首页:">
{getFieldDecorator("isTop")( {getFieldDecorator("isTop")(
<Select <Select
style={{ width: "200px" }} style={{ width: "200px" }}
...@@ -80,7 +80,7 @@ class Header extends React.Component { ...@@ -80,7 +80,7 @@ class Header extends React.Component {
{option1} {option1}
</Select> </Select>
)} )}
</FormItem> </FormItem> */}
<FormItem label="修改时间"> <FormItem label="修改时间">
{getFieldDecorator("time")(<RangePicker format="YYYY-MM-DD" />)} {getFieldDecorator("time")(<RangePicker format="YYYY-MM-DD" />)}
</FormItem> </FormItem>
......
...@@ -18,10 +18,10 @@ class Header extends React.Component { ...@@ -18,10 +18,10 @@ class Header extends React.Component {
render() { render() {
const { getFieldDecorator, resetFields } = this.props.form; const { getFieldDecorator, resetFields } = this.props.form;
const List = [ const List = [
{ value: 1, text: "功能异常" }, { value: 0, text: "功能异常" },
{ value: 2, text: "体验问题" }, { value: 1, text: "体验问题" },
{ value: 3, text: "产品建议" }, { value: 2, text: "产品建议" },
{ value: 4, text: "其他" }, { value: 3, text: "其他" },
]; ];
const option = List.map((item, index) => { const option = List.map((item, index) => {
return ( return (
...@@ -71,8 +71,12 @@ class Header extends React.Component { ...@@ -71,8 +71,12 @@ class Header extends React.Component {
</Col> </Col>
<Col span={6} offset={18}> <Col span={6} offset={18}>
<FormItem> <FormItem>
<Button type="primary" htmlType="submit">
查询
</Button>
<Button <Button
type="primary" type="primary"
style={{ marginLeft: "30px" }}
onClick={() => { onClick={() => {
resetFields(); resetFields();
this.reset(); this.reset();
...@@ -80,13 +84,6 @@ class Header extends React.Component { ...@@ -80,13 +84,6 @@ class Header extends React.Component {
> >
重置 重置
</Button> </Button>
<Button
type="primary"
htmlType="submit"
style={{ marginLeft: "30px" }}
>
查询
</Button>
</FormItem> </FormItem>
</Col> </Col>
</Form> </Form>
......
...@@ -370,7 +370,7 @@ class App extends React.Component { ...@@ -370,7 +370,7 @@ class App extends React.Component {
)} )}
</FormItem> </FormItem>
))} ))}
<FormItem {...formItemLayout} label="是否补签:"> {/* <FormItem {...formItemLayout} label="是否补签:">
<Col span={5}> <Col span={5}>
{getFieldDecorator("retroactive", { {getFieldDecorator("retroactive", {
initialValue: this.state.whether, initialValue: this.state.whether,
...@@ -381,7 +381,7 @@ class App extends React.Component { ...@@ -381,7 +381,7 @@ class App extends React.Component {
</Radio.Group> </Radio.Group>
)} )}
</Col> </Col>
</FormItem> </FormItem> */}
<FormItem <FormItem
{...formItemLayout} {...formItemLayout}
label="签到提醒:" label="签到提醒:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment