reloaded преди 5 години
родител
ревизия
a5683def64
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 3 3
      app/controller/.teaplan.js
  2. 1 1
      app/model/teaplan.js

+ 3 - 3
app/controller/.teaplan.js

@@ -2,7 +2,7 @@ module.exports = {
   create: {
   create: {
     requestBody: [
     requestBody: [
       '!trainplanid',
       '!trainplanid',
-      'nomonth',
+      'nodate',
       'classid',
       'classid',
       'headteacherid'
       'headteacherid'
     ]
     ]
@@ -15,7 +15,7 @@ module.exports = {
     params: ['!id'],
     params: ['!id'],
     requestBody: [
     requestBody: [
       'trainplanid',
       'trainplanid',
-      'nomonth',
+      'nodate',
       'classid',
       'classid',
       'headteacherid'
       'headteacherid'
     ]
     ]
@@ -30,7 +30,7 @@ module.exports = {
     parameters: {
     parameters: {
       query: {
       query: {
         trainplanid :'trainplanid',
         trainplanid :'trainplanid',
-        nomonth:'nomonth',
+        nodate:'nodate',
         classid :'classid',
         classid :'classid',
         headteacherid :'headteacherid'
         headteacherid :'headteacherid'
       }
       }

+ 1 - 1
app/model/teaplan.js

@@ -5,7 +5,7 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 // 班主任全年计划表
 // 班主任全年计划表
 const TeaplanSchema = {
 const TeaplanSchema = {
   trainplanid: { type: String, required: true, maxLength: 200 }, // 培训计划表id
   trainplanid: { type: String, required: true, maxLength: 200 }, // 培训计划表id
-  nomonth: { type: [ String ], required: false, maxLength: 200 }, // 不能上课的月份(数组)
+  nodate: { type: [ String ], required: false, maxLength: 200 }, // 不能上课的日期(数组)
   classid: { type: String, required: false, maxLength: 200 }, // 班id
   classid: { type: String, required: false, maxLength: 200 }, // 班id
   headteacherid: { type: String, required: false, maxLength: 200 }, // 班主任id
   headteacherid: { type: String, required: false, maxLength: 200 }, // 班主任id
 };
 };