Browse Source

feat:学生信息修改加载

DESKTOP-USV654P\pc 4 months ago
parent
commit
4d0e0a6116

+ 8 - 4
src/views/educational/stdudentBaseManager/components/stdudentBaseManagerDrawer.vue

@@ -56,7 +56,7 @@
                 <EditOutlined />
               </a-button>
               <a-button type="link" @click="handleDelete(index)">
-                <MinusOutlined style="color: red;" />
+                <MinusOutlined style="color: red" />
               </a-button>
             </div>
           </template>
@@ -64,17 +64,17 @@
       </a-collapse-panel>
       <a-collapse-panel :key="7" header="费用" v-if="state.isView">
         <div v-for="(item, index) in state.feeData" :key="index">
-          <div class="mt-4" style="font-size: 16px; font-weight: bold;">
+          <div class="mt-4" style="font-size: 16px; font-weight: bold">
             {{ item[0].shortName }}
           </div>
           <div class="flex flex-between mt-2" v-for="(r, i) in item" :key="i">
             <div class="flex-1">
               {{ r.semesterName }}
             </div>
-            <div style="width: 50px;">
+            <div style="width: 50px">
               {{ r.factar }}
             </div>
-            <div style="width: 50px;">
+            <div style="width: 50px">
               {{ r.jfzt }}
             </div>
           </div>
@@ -346,6 +346,7 @@
       validateSubsidize(),
     ])
       .then(async (values) => {
+        setDrawerProps({ loading: true, confirmLoading: true });
         const formValues = {
           baseStudentContactList: [values[2]],
           baseStudentFamilyList: [values[1]],
@@ -395,6 +396,9 @@
       .catch((err) => {
         // console.log('asdf', err);
         createMessage.warning('请填写完整信息');
+      })
+      .finally(() => {
+        setDrawerProps({ loading: false, confirmLoading: false });
       });
   }
 

+ 2 - 2
src/views/educational/teacherbasemanager/components/TeacherbaseManagerDrawer.vue

@@ -277,7 +277,7 @@
       validateRegular(),
     ])
       .then(async (values) => {
-        setDrawerProps({ confirmLoading: true });
+        setDrawerProps({ loading: true, confirmLoading: true });
         const formValues = {
           baseTeacherContactList: [values[3]],
           baseTeacherEducationList: [values[2]],
@@ -332,7 +332,7 @@
         }
       })
       .finally(() => {
-        setDrawerProps({ confirmLoading: false });
+        setDrawerProps({ loading: false, confirmLoading: false });
       });
   }