11wqe1 8 hours ago
parent
commit
73b6c19145
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/pages/studentManageNew/component/addstu.vue

+ 2 - 1
src/components/pages/studentManageNew/component/addstu.vue

@@ -174,7 +174,7 @@
         <!-- 从已有学生中添加 -->
         <div v-if="addStuType == 3">
           <allClaAddStu
-            ref="allClaAddStu"
+            ref="allClaAddSturef"
             @closeAllClaAddStu="closeAllClaAddStu"
             @getStudent="allClaAddStuGetStudent"
             :classInfo="classInfo"
@@ -243,6 +243,7 @@ export default {
         if (newVal == 1) {
           this.stuListTypeList = [];
           this.addStuType = 3;
+          this.$refs.allClaAddSturef.clearData();
         } else if (newVal == 0) {
           this.stuListTypeList = this.tab1;
           this.addStuType = 1;