Commit b90f6a79 by end

修改工作台排行榜

parent f5196248
File deleted
...@@ -350,10 +350,8 @@ class homePage extends Component { ...@@ -350,10 +350,8 @@ class homePage extends Component {
}; };
getPhbRes = () => { getPhbRes = () => {
this.props.getPhbChartList({ this.props.getPhbChartList({
pageNo: 1, type: this.state.phbType,
pageSize: 5, date: this.state.phbTime,
nameType: this.state.phbType,
dateType: this.state.phbTime,
}); });
}; };
//专栏左侧 //专栏左侧
...@@ -916,7 +914,7 @@ class homePage extends Component { ...@@ -916,7 +914,7 @@ class homePage extends Component {
)} )}
</p> </p>
<p>{item.name}</p> <p>{item.name}</p>
<p>{item.totalPoint}</p> <p>{item.num}</p>
</div> </div>
); );
}); });
......
...@@ -27,13 +27,13 @@ export function queryExamNum() { ...@@ -27,13 +27,13 @@ export function queryExamNum() {
}; };
} }
export function getPhbChartList(data) { export function getPhbChartList(data) {
const url = `${getUrl}/web-manage/manage/point/user/new/rank/list`; const url = `${getUrl}/web-manage/manage/api/eventTrack/queryRankList`;
return dispatch => { return dispatch => {
return request({ return request({
url, url,
data, data,
}).then(res => { }).then(res => {
dispatch({ type: Types.PHB_CHART, data: res.data.records }); dispatch({ type: Types.PHB_CHART, data: res.data });
}); });
}; };
} }
......
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