@@ -27,7 +27,7 @@ module.exports = app => {
*/
async index(ctx) {
try {
- if (!ctx.session.sessionProject.page_show.openContract) {
+ if (!ctx.subProject.page_show.openContract) {
throw '该功能已关闭或无法查看';
}
const renderData = {
@@ -76,7 +76,7 @@ module.exports = app => {
async tender(ctx) {
// 获取用户新建标段权利
@@ -23,7 +23,7 @@ module.exports = options => {
return function* contractCheck(next) {
- if (!this.session.sessionProject.page_show.openContract) {
+ if (!this.subProject.page_show.openContract) {
const tid = this.params.tid || null;
@@ -523,6 +523,7 @@ $(document).ready(function() {
if (sel) {
sheet.setSelection(sel.row, sel.col, 1, sel.colCount);
+ contractTreeSpreadObj.setContract(sheet);
self.refreshOperationValid(sheet);
});
}, '确认删除「当前合同或节点及子项」?');