Browse Source

fix: change teacher leave

DESKTOP-USV654P\pc 2 months ago
parent
commit
2e02318af1
2 changed files with 4 additions and 1 deletions
  1. 1 1
      Makefile
  2. 3 0
      src/views/ledger/teacher/leave.vue

+ 1 - 1
Makefile

@@ -2,7 +2,7 @@
 
 # 记录开始时间
 START_TIME := $(shell powershell -NoProfile -Command "Get-Date -UFormat %%s")
-V_TAG := v2.4.7
+V_TAG := v2.4.8
 
 checkDev:
 	git checkout dev

+ 3 - 0
src/views/ledger/teacher/leave.vue

@@ -120,6 +120,9 @@
 
   const handelExport = async () => {
     const postData = getForm().getFieldsValue();
+    if (postData['leaveType']) {
+      postData['leaveType'] = postData['leaveType'].join(',');
+    }
     const data = await postLedgerStatisticsTeacherLeaveExportQuery(postData);
     downloadByData(data.data, `教师请假统计${formatToDateTime(new Date(), 'YYYYMMDDHHmmss')}.xlsx`);
   };