Просмотр исходного кода

财务管理 - 费用申请批量导出最多导出5条数据

yaoyao 2 лет назад
Родитель
Сommit
074f312863

+ 4 - 0
src/views/FinancialManagement/ExpenseManagement/ExpenseApplyFor.vue

@@ -744,6 +744,10 @@ export default {
     //导出公共方法
     expendDataup(e, idList) {
       idList = idList || this.expentList;
+      if (idList.length > 5) {
+        this.$message.warning('最多可导出5条数据')
+        return
+      }
       this.$api.expense.excel(idList).then((response) => {
         if (response.code == 200) {
           if (response.data == null) {