From 4395458084ed3ebef3b20595074321d8338bbb42 Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期日, 27 八月 2023 20:40:51 +0800 Subject: [PATCH] 家庭资产的导出 --- ruoyi-ui/src/views/note/index.vue | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/note/index.vue b/ruoyi-ui/src/views/note/index.vue index 64e0fb7..27a6e85 100644 --- a/ruoyi-ui/src/views/note/index.vue +++ b/ruoyi-ui/src/views/note/index.vue @@ -649,11 +649,21 @@ this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); }).catch(() => {}); }, + /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - this.download('family/property/export', { - ...this.queryParams - }, `property_${new Date().getTime()}.xlsx`) + const Ids = this.ids; + + if(Ids.length==0) + { + this.download('family/property/export', { + ...this.queryParams + }, `property_${new Date().getTime()}.xlsx`) + } + else{ + this.download('/zfEquipment/export1/'+Ids, { + }, `property_${new Date().getTime()}.xlsx`) + } }, /** 瀵煎叆鎿嶄綔*/ handleEnport(params){ -- Gitblit v1.9.1