11wqe1 преди 2 месеца
родител
ревизия
73b6c19145
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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">
         <div v-if="addStuType == 3">
           <allClaAddStu
           <allClaAddStu
-            ref="allClaAddStu"
+            ref="allClaAddSturef"
             @closeAllClaAddStu="closeAllClaAddStu"
             @closeAllClaAddStu="closeAllClaAddStu"
             @getStudent="allClaAddStuGetStudent"
             @getStudent="allClaAddStuGetStudent"
             :classInfo="classInfo"
             :classInfo="classInfo"
@@ -243,6 +243,7 @@ export default {
         if (newVal == 1) {
         if (newVal == 1) {
           this.stuListTypeList = [];
           this.stuListTypeList = [];
           this.addStuType = 3;
           this.addStuType = 3;
+          this.$refs.allClaAddSturef.clearData();
         } else if (newVal == 0) {
         } else if (newVal == 0) {
           this.stuListTypeList = this.tab1;
           this.stuListTypeList = this.tab1;
           this.addStuType = 1;
           this.addStuType = 1;