From 485c8428bfcb681b24f9cf2130016f4184fe6b7e Mon Sep 17 00:00:00 2001 From: wanglei Date: Thu, 31 Oct 2024 13:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=9B=AE=E5=BD=95=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dangan-ui/src/views/dangan/catalog/index.vue | 39 ++++++++++++++++++-- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/dangan-ui/src/views/dangan/catalog/index.vue b/dangan-ui/src/views/dangan/catalog/index.vue index 9ea02e6..df07d7f 100644 --- a/dangan-ui/src/views/dangan/catalog/index.vue +++ b/dangan-ui/src/views/dangan/catalog/index.vue @@ -26,6 +26,16 @@ v-hasPermi="['dangan:catalog:add']" >新增 + + 导出档案一级目录 + - + - + @@ -646,7 +664,22 @@ export default { this.queryParams.xuhao=1; this.getList(); } - } + }, + /** 导出按钮操作 */ + handleExport(row) { + if(row&&row.id!==undefined){ + this.download('dangan/catalog/export', { + ...this.queryParams, + id: row.id + }, `档案目录_${new Date().getTime()}.xlsx`) + }else { + this.download('dangan/catalog/export', { + ...this.queryParams, + id: 0 + }, `档案目录_${new Date().getTime()}.xlsx`) + } + + }, } };