lrf402788946 vor 4 Jahren
Ursprung
Commit
61bbb20f03
2 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
  1. 5 0
      src/views/new-plan/teacher-lesson.vue
  2. 4 1
      src/views/train-plan/bedroom.vue

+ 5 - 0
src/views/new-plan/teacher-lesson.vue

@@ -207,6 +207,7 @@ export default {
 
     // 保存
     async toUpdate() {
+      const msg = this.$message({ duration: 0, message: '正在处理,请稍后...' });
       let dup = _.cloneDeep(this.info);
       const { termid, batchid, classid, ...info } = dup;
       let updata = _.pick(info, ['day', 'subid', 'subname', 'teaid', 'teaname', 'time']);
@@ -244,6 +245,7 @@ export default {
       let planDup = _.cloneDeep(this.plan);
       planDup.termnum = data;
       const res = await this.updatePlan(planDup);
+      msg.close();
       if (this.$checkRes(res, '修改成功', res.errmsg || '修改失败')) {
         this.getInfo('reload');
         this.toClose();
@@ -251,11 +253,14 @@ export default {
     },
     // 发送通知
     async toSendMsg() {
+      const msg = this.$message({ duration: 0, message: '正在发送通知...' });
       const { planid } = this.options;
       const dup = _.cloneDeep(this.msgForm);
       console.log(this.ctselect);
       const res = await this.sendMsg({ planid, ids: dup, classtype: this.ctselect });
       this.toClose();
+      msg.close();
+      this.$message.success('发送完成');
     },
     // 确认指定期安排
     async toConfirm() {

+ 4 - 1
src/views/train-plan/bedroom.vue

@@ -229,11 +229,14 @@ export default {
     },
     // 批量保存
     async toAllSave() {
+      const msg = this.$message({ duration: 0, message: '正在处理,请稍后...' });
       let code = _.clone(this.bedroomCode);
       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 });
+        msg.close();
+        this.$checkRes(res, '保存成功', '保存失敗');
       }
       this.toClose();
       this.getSL();
@@ -242,7 +245,7 @@ export default {
       this.selectDialog = true;
     },
     getGender(gender) {
-      const r = this.ostuList.filter(f => f.gender == gender);
+      const r = this.ostuList.filter(f => f.gender.includes(gender));
       return r.length;
     },
   },