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`) + } + + }, } };