소스 검색

update for view

lrf 2 년 전
부모
커밋
14e9278a64
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/model/relation/relationStudentSchool.js

+ 1 - 1
app/model/relation/relationStudentSchool.js

@@ -5,7 +5,7 @@ const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
 // 学员与学校关系表
 const relationStudentSchool = {
   student_id: { type: String, required: false, zh: '学员id', ref: 'Student', getProp: [ 'name' ] }, //
-  school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
+  school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'img_url', 'name', 'phone', 'coach_num', 'student_num', 'address', 'brief' ] }, //
   doc: { type: Object, required: false, zh: '档案' }, //
 };
 const schema = new Schema(relationStudentSchool, { toJSON: { virtuals: true } });