Ver código fonte

Merge branch 'master' of http://git.cc-lotus.info/new_train/train-center

guhongwei 4 anos atrás
pai
commit
f5c688570e
2 arquivos alterados com 6 adições e 2 exclusões
  1. 5 1
      src/views/student/detail.vue
  2. 1 1
      src/views/train-plan/leave.vue

+ 5 - 1
src/views/student/detail.vue

@@ -193,8 +193,12 @@ export default {
       let planyearid = _.get(this.defaultOption, 'planyearid');
       let res;
       let msg;
+      let sch = this.schcoolList.find(f => f.name == data.school_name);
+      console.log(sch);
+      if (sch) data.schid = sch.code;
+      console.log(data);
       if (isNew) {
-        data.openid = new Date().getTime();
+        // data.openid = new Date().getTime();
         // data.nation = `汉族`;
         // data.yard = `测试学院`;
         // data.major = `测试专业`;

+ 1 - 1
src/views/train-plan/leave.vue

@@ -35,7 +35,7 @@ export default {
           return item === '0' ? '审核中' : item === '1' ? '通过' : '未通过';
         },
       },
-      { label: '拒绝原因', prop: 'refcause' },
+      { label: '学校备注', prop: 'refcause' },
       {
         label: '类型',
         prop: 'type',