lrf402788946 il y a 4 ans
Parent
commit
1585253071
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/views/train-plan/bedroom.vue

+ 2 - 2
src/views/train-plan/bedroom.vue

@@ -123,7 +123,7 @@ export default {
   methods: {
     ...classes(['query']),
     ...student({ getStudentList: 'query', updateStudent: 'update' }),
-    ...bedroom({ bedroomApart: 'apart', getBedroomList: 'query', classstuList: 'classstuList' }),
+    ...bedroom({ bedroomApart: 'apart', getBedroomList: 'query', classstuList: 'classstuList', updateBat: 'updateBat' }),
     ...util({ modelFetch: 'fetch', utilMethod: 'utilMethod' }),
     async search() {
       let termid = _.get(this.defaultOption, 'termid');
@@ -234,7 +234,7 @@ export default {
       let ids = _.cloneDeep(this.stuList);
       let bedroom = this.originBedRoomList.find(f => code == f.code);
       if (bedroom) {
-        let res = await this.utilMethod({ code, ids, bedroomid: bedroom.id });
+        let res = await this.updateBat({ code, ids, bedroomid: bedroom.id });
         msg.close();
         this.$checkRes(res, '保存成功', '保存失敗');
       }