Commit bd44697c authored by baixian's avatar baixian

部署学校优化

parent 06dc9ae6
...@@ -68,6 +68,7 @@ export default { ...@@ -68,6 +68,7 @@ export default {
mobile: (data.data.business && data.data.business.mobile) || '', mobile: (data.data.business && data.data.business.mobile) || '',
nickname: (data.data.business && data.data.business.nickname) || '', nickname: (data.data.business && data.data.business.nickname) || '',
expiresDateTime: data.data.expiresDateTime || '', expiresDateTime: data.data.expiresDateTime || '',
bind_member_id: (data.data.business && data.data.business.bind_member_id) || 0,
}); });
} }
message.success('注册成功!', 1); message.success('注册成功!', 1);
...@@ -125,7 +126,7 @@ export default { ...@@ -125,7 +126,7 @@ export default {
}); });
// yield delay(200); // yield delay(200);
yield put(routerRedux.push({ yield put(routerRedux.push({
pathname: `/deploySchool/${schooladd.data.id}`, pathname: `/erp/deploySchool/${schooladd.data.id}`,
})); }));
} }
} else { } else {
......
...@@ -1312,7 +1312,7 @@ export default { ...@@ -1312,7 +1312,7 @@ export default {
}, },
}); });
} }
const deploySchoolMath = pathToRegexp('/deploySchool/:id').exec(pathname); const deploySchoolMath = pathToRegexp('/erp/deploySchool/:id').exec(pathname);
if (deploySchoolMath) { if (deploySchoolMath) {
dispatch({ dispatch({
type: 'deployschool/queryinfo', type: 'deployschool/queryinfo',
......
...@@ -361,6 +361,7 @@ function RouterConfig({ history }) { ...@@ -361,6 +361,7 @@ function RouterConfig({ history }) {
<Route path="/erp/schoollist" exact component={SchoolList} /> <Route path="/erp/schoollist" exact component={SchoolList} />
<Route path="/erp/schooladd" exact component={SchoolAdd} /> <Route path="/erp/schooladd" exact component={SchoolAdd} />
<Route path="/erp/usersetting" exact component={UserSetting} /> <Route path="/erp/usersetting" exact component={UserSetting} />
<Route path="/erp/deploySchool/:id" exact component={DeploySchool} />
<Route component={Errorpage} /> <Route component={Errorpage} />
</Switch> </Switch>
</OuterPage> </OuterPage>
...@@ -371,7 +372,6 @@ function RouterConfig({ history }) { ...@@ -371,7 +372,6 @@ function RouterConfig({ history }) {
<Route path="/login" exact component={Login} /> <Route path="/login" exact component={Login} />
<Route path="/register" exact component={NewRegister} /> <Route path="/register" exact component={NewRegister} />
<Route path="/rechargedesc" exact component={RechargeDesc} /> <Route path="/rechargedesc" exact component={RechargeDesc} />
<Route path="/deploySchool/:id" exact component={DeploySchool} />
<Route path="/404" render={() => (<Errorpage />)} /> <Route path="/404" render={() => (<Errorpage />)} />
<Route component={Errorpage} /> <Route component={Errorpage} />
</Switch> </Switch>
......
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