Browse Source

https://school-wechat.ubtob.com/leavedetail/:lvId/:role 改为
https://school-wechat.ubtob.com/leavedetail/:role/:lvId

FANGLH 7 years ago
parent
commit
39d83fc4ba

+ 1 - 1
frontend/wechat-web/src/configs/router.config.js

@@ -133,7 +133,7 @@ export default class RouteConfig extends Component {
                     <Route path='/approvel' component={Approvel}/>{/*我的审批*/}
                     <Route path='/approvel-detail/:approveId/:isMyApply' component={ApprovelDetail}/> {/*审批详情*/}
                     <Route path='/meet-detail/:meetId?' component={MeetDetail}/> {/*会议签到详情 meetingSignIn*/}
-                    <Route path='/leavedetail/:lvId/:role' component={LeaveDetail}/> {/*学生请假详情*/}
+                    <Route path='/leavedetail/:role/:lvId' component={LeaveDetail}/> {/*学生请假详情*/}
                     <Route path="/changephonenumber" component={ChangePhoneNumber}/> {/*更换手机号码*/}
                     <Route path="/scorenotification/:stuId?" component={ScoreNotification}/> {/*成绩通知*/}
                     <Route path="/accessnoticedetail/:stuId/:anId?" component={AccessNoticeDetail}/>     {/*出入校通知详情*/}

+ 1 - 1
frontend/wechat-web/src/modules/leave/LeaveItem.js

@@ -17,7 +17,7 @@ export default class LeaveItem extends Component{
         const {item}  = this.state;
         return(
             <div>
-                <Link to={'/leavedetail/' +item.lvId+'/'+this.props.role}>
+                <Link to={'/leavedetail/' +'/'+this.props.role +item.lvId}>
                     <div className="col-xs-12 " style={{backgroundColor:'#FFF',width:'53vh'}} >
                         <div className="row flex" >
                             <div id="global_page_title"  style={{fontSize:15,color:"#333333"}}>  {item.title}</div>

+ 1 - 1
frontend/wechat-web/src/modules/leave/LeaveListPage.js

@@ -256,7 +256,7 @@ class LeaveListPage extends React.Component{
     }
     onItemOnClick=(index,item)=>{
         console.log("onItemOnClick()",JSON.stringify(item));
-        this.props.history.push('/leavedetail/' +item.lvId+'/'+this.state.role)
+        this.props.history.push('/leavedetail/' +'/'+this.state.role +item.lvId)
         return;
         this.setState({
             detailVisible: true,