|
@@ -81,7 +81,7 @@ module.exports = app => {
|
|
|
*/
|
|
*/
|
|
|
async tender(ctx) {
|
|
async tender(ctx) {
|
|
|
try {
|
|
try {
|
|
|
- if (!ctx.subProject.page_show.openContract) {
|
|
|
|
|
|
|
+ if (!ctx.subProject.page_show.openTenderContract) {
|
|
|
throw '该功能已关闭或无法查看';
|
|
throw '该功能已关闭或无法查看';
|
|
|
}
|
|
}
|
|
|
// 获取用户新建标段权利
|
|
// 获取用户新建标段权利
|
|
@@ -146,7 +146,7 @@ module.exports = app => {
|
|
|
} catch (err) {
|
|
} catch (err) {
|
|
|
ctx.log(err);
|
|
ctx.log(err);
|
|
|
ctx.session.postError = err.toString();
|
|
ctx.session.postError = err.toString();
|
|
|
- ctx.redirect(this.menu.menu.dashboard.url);
|
|
|
|
|
|
|
+ ctx.redirect(`/sp/${ctx.subProject.id}/dashboard`);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|