hfxc226 2 anni fa
parent
commit
3e36121b87
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 6 2
      src/views/dashboard/RepairReportFee.vue

+ 6 - 2
src/views/dashboard/RepairReportFee.vue

@@ -201,8 +201,12 @@ export default {
         month: record.month,
         year: record.year
       }
-      exportMonthReportFeeMonth(parameter).then(file => {
-        this.BaseTool.UPLOAD.downLoadExportExcel(file)
+      exportMonthReportFeeMonth(parameter).then(res => {
+        if (res.data == null) {
+          this.$message.info(res.message)
+          return
+        }
+        this.BaseTool.UPLOAD.downLoadExportExcel(res)
       })
     },
     handlePrint (record) {