Commit f5196248 by end

修改工作台

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