Ver código fonte

修复添加学员刷新问题

wolyshaw 4 anos atrás
pai
commit
776618ebfb

+ 2 - 2
src/views/resetTeaming/components/resetPayList.vue

@@ -646,14 +646,14 @@ export default {
         return stu.userId;
       });
       obj.batchNo = this.batchNo;
-      this.$refs.payItems?.getList()
       musicGroupPaymentCalenderDetailBatchAdd(obj).then((res) => {
         if (res.code == 200) {
           this.$message.success("添加成功");
           this.$refs.setStudentFee.clearTable();
           this.payVisible = false;
           this.chioseStudentVisible = false;
-          // this.getList();
+          this.$refs.payItems?.getList()
+          this.getList();
 
         }
       });

+ 1 - 1
src/views/resetTeaming/components/resetPayListSchool.vue

@@ -631,7 +631,6 @@ export default {
         return stu.userId;
       });
       obj.batchNo = this.batchNo;
-      this.$refs.payItems?.getList()
       musicGroupPaymentCalenderDetailBatchAdd(obj).then((res) => {
         if (res.code == 200) {
           this.$message.success("添加成功");
@@ -639,6 +638,7 @@ export default {
           this.payVisible = false;
           this.chioseStudentVisible = false;
           this.getList();
+          this.$refs.payItems?.getList()
         }
       });
     },