guhongwei преди 3 години
родител
ревизия
ca662fd376
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 2 0
      app/controller/.investigation.js
  2. 2 1
      app/model/investigation.js

+ 2 - 0
app/controller/.investigation.js

@@ -25,6 +25,7 @@ module.exports = {
       "techol_name",
       "urgent",
       "cooperation",
+      "budget",
     ],
   },
   destroy: {
@@ -58,6 +59,7 @@ module.exports = {
       "techol_name",
       "urgent",
       "cooperation",
+      "budget",
     ],
   },
   show: {

+ 2 - 1
app/model/investigation.js

@@ -28,7 +28,8 @@ const investigation = {
   // 2021-11-14
   techol_name: { type: String, required: false }, // 需求名称
   urgent: { type: String, required: false }, // 紧急程度
-  cooperation: { type: String, required: false }, // 合作方式
+  cooperation: { type: Array, required: false }, // 合作方式
+  budget: { type: String, required: false }, // 投资预算
 };
 
 const schema = new Schema(investigation, { toJSON: { virtuals: true } });