|
@@ -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, '保存成功', '保存失敗');
|
|
|
}
|