|
@@ -179,15 +179,13 @@ const AchievementList = React.createClass({
|
|
});
|
|
});
|
|
this.state.achievementCategoryOption = theArr;
|
|
this.state.achievementCategoryOption = theArr;
|
|
this.state.auditStatusOption = auditArr;
|
|
this.state.auditStatusOption = auditArr;
|
|
- if (window.location.search) {
|
|
|
|
- let theObj = getSearchUrl(window.location.search);
|
|
|
|
- if (theObj.rid) {
|
|
|
|
- theObj.id = theObj.rid;
|
|
|
|
- if (theObj.rid != 'null') {
|
|
|
|
- this.tableRowClick(theObj);
|
|
|
|
- };
|
|
|
|
- };
|
|
|
|
- };
|
|
|
|
|
|
+ //从信息中跳转到页面
|
|
|
|
+ let data=localStorage.getItem('newData');
|
|
|
|
+ if(data){
|
|
|
|
+ var newData = JSON.parse(data);
|
|
|
|
+ console.log(newData);
|
|
|
|
+ this.tableRowClick(newData);
|
|
|
|
+ }
|
|
this.loadData();
|
|
this.loadData();
|
|
},
|
|
},
|
|
componentWillReceiveProps(nextProps) {
|
|
componentWillReceiveProps(nextProps) {
|
|
@@ -209,12 +207,10 @@ const AchievementList = React.createClass({
|
|
};
|
|
};
|
|
},
|
|
},
|
|
tableRowClick(record, index) {
|
|
tableRowClick(record, index) {
|
|
- if(index!=undefined){
|
|
|
|
- this.setState({
|
|
|
|
- RowData:record,
|
|
|
|
- showDesc: true
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ this.setState({
|
|
|
|
+ RowData:record,
|
|
|
|
+ showDesc: true
|
|
|
|
+ });
|
|
},
|
|
},
|
|
delectRow() {
|
|
delectRow() {
|
|
let deletedIds = [];
|
|
let deletedIds = [];
|