diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js
index ce576c636..1e402bad9 100644
--- a/public/react/src/AppConfig.js
+++ b/public/react/src/AppConfig.js
@@ -45,16 +45,7 @@ export function initAxiosInterceptors(props) {
// https://github.com/axios/axios/issues/1497
// TODO 读取到package.json中的配置?
- var //proxy = "http://localhost:3000"
- //proxy = "http://testbdweb.trustie.net"
- //proxy = "http://testbdweb.educoder.net"
- // proxy = "https://testeduplus2.educoder.net"
- //proxy="http://47.96.87.25:48080"
- // proxy="https://pre-newweb.educoder.net"
- // proxy="https://test-newweb.educoder.net"
- //proxy="https://test-jupyterweb.educoder.net"
- //proxy="http://192.168.2.63:3001"
- proxy="http://123.59.135.93:56666"
+ var proxy="http://localhost:3000";
// 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求;
// 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制
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 = (