liuyu 4 years ago
parent
commit
d520a2be7f
2 changed files with 7 additions and 5 deletions
  1. 6 4
      app/controller/.teacher.js
  2. 1 1
      app/model/teacher.js

+ 6 - 4
app/controller/.teacher.js

@@ -7,8 +7,8 @@ module.exports = {
       '!gender',
       '!zynumber',
       '!zynumberfile',
-      '!schid',
-      '!schname',
+      'schid',
+      'schname',
       '!email',
       'openid',
       '!age',
@@ -32,7 +32,8 @@ module.exports = {
       'msscore',
       'xsscore',
       'file',
-      'status'
+      'status',
+      'jobaddress'
     ]
   },
   destroy: {
@@ -73,7 +74,8 @@ module.exports = {
       'msscore',
       'xsscore',
       'file',
-      'status'
+      'status',
+      'jobaddress'
     ]
   },
   show: {

+ 1 - 1
app/model/teacher.js

@@ -63,7 +63,7 @@ const TeacherSchema = {
   courses: { type: String, required: true, maxLength: 200 }, // 主讲课程
   academic: { type: [ academicInfo ], select: true }, // 主要学术成果及获奖情况
   jobyear: { type: String, required: true, maxLength: 200 }, // 从事就业创业教学工作年限
-  jobaddress: { type: String, required: true, maxLength: 500 }, // 工作地点
+  jobaddress: { type: String, required: false, maxLength: 500 }, // 工作地点
   subid: { type: String, required: true, maxLength: 200 }, // 科目id
   islyteacher: { type: String, required: true, maxLength: 200 }, // 是否可讲礼仪课,0-否,1-是
   zlscore: { type: String, required: false, maxLength: 200 }, // 资料评分