diff --git a/public/react/src/forge/Activity/Activity.js b/public/react/src/forge/Activity/Activity.js
index a95397eee..ac75281c5 100644
--- a/public/react/src/forge/Activity/Activity.js
+++ b/public/react/src/forge/Activity/Activity.js
@@ -6,6 +6,7 @@ import '../css/index.css';
import '../Branch/branch.css';
import './activity.css';
+import ActivityItem from './ActivityItem';
import axios from 'axios';
const LIMIT = 15;
const ARRAY = [
@@ -26,6 +27,8 @@ const ARRAY = [
name:'1个月'
}
]
+const dataformat="YYYY-MM-DD HH:mm";
+
class Activity extends Component{
constructor(props){
super(props);
@@ -35,7 +38,8 @@ class Activity extends Component{
state:undefined,
page:1,
- data:undefined
+ data:undefined,
+ project_trends:undefined
}
}
componentDidMount=()=>{
@@ -53,7 +57,8 @@ class Activity extends Component{
}).then(result=>{
if(result){
this.setState({
- data:result.data
+ data:result.data,
+ project_trends:result.data.project_trends
})
}
}).catch(error=>{
@@ -62,13 +67,13 @@ class Activity extends Component{
}
// 切换周期
- // changeTime=(e)=>{
- // this.setState({
- // time:e.key
- // })
- // const { type,status,page } = this.state;
- // this.getInfo(e.key,type,status,page);
- // }
+ changeTime=(e)=>{
+ this.setState({
+ time:e.key
+ })
+ const { type,status,page } = this.state;
+ this.getInfo(e.key,type,status,page);
+ }
// 分页
ChangePage=(page)=>{
@@ -79,7 +84,7 @@ class Activity extends Component{
this.getInfo(time,type,status,page);
}
render(){
- const { time , data , page } = this.state;
+ const { time , data , page , project_trends } = this.state;
const menu = (