ellisran 1 giorno fa
parent
commit
0d7df7f130

+ 1 - 1
app/controller/contract_controller.js

@@ -209,7 +209,7 @@ module.exports = app => {
                         responseData.data = commonJson && commonJson[(data.is_tender ? 'tender_' : '') + 'contract_type'] ? commonJson[(data.is_tender ? 'tender_' : '') + 'contract_type'] : [];
                         break;
                     case 'set-contract-type':
-                        result = await ctx.service.subProject.saveCommonJsons(ctx.subProject.id, ['contract_', 'tender_contract_type'], data.contract_type);
+                        result = await ctx.service.subProject.saveCommonJsons(ctx.subProject.id, ['contract_type', 'tender_contract_type'], data.contract_type);
                         break;
                     case 'get-contract-used':
                         const commonJson2 = ctx.subProject.common_json ? JSON.parse(ctx.subProject.common_json) : null;

+ 0 - 1
app/service/contract_col_set.js

@@ -94,7 +94,6 @@ module.exports = app => {
                     }
                 }
             }
-            console.log(gdResult, result);
             // 合并固定列和非固定列,固定列在前
             result.unshift(...gdResult);
             return result;