From 631fa0db4e8b486c316c24e16e7c191798c7c2b3 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 23 Sep 2025 16:41:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD=E5=8F=8A=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在管理页面中新增数据导出功能,支持导出任务、超期任务、审批数据和签到数据 - 更新应用页面,添加导出管理的弹出菜单 - 新增导出相关的 SVG 图标 - 优化样式以提升用户体验 --- resources/assets/js/pages/manage.vue | 19 +++++++++ .../assets/js/pages/manage/application.vue | 36 ++++++++++++++++- resources/assets/sass/pages/page-apply.scss | 37 +++++++++++++++-- .../public/images/application/export.svg | 40 +++++++++++++++++++ .../public/images/application/favorite.svg | 4 ++ 5 files changed, 131 insertions(+), 5 deletions(-) create mode 100644 resources/assets/statics/public/images/application/export.svg create mode 100644 resources/assets/statics/public/images/application/favorite.svg diff --git a/resources/assets/js/pages/manage.vue b/resources/assets/js/pages/manage.vue index cf815c37d..8c61bc1a8 100644 --- a/resources/assets/js/pages/manage.vue +++ b/resources/assets/js/pages/manage.vue @@ -526,6 +526,7 @@ export default { emitter.on('approveDetails', this.openApproveDetails); emitter.on('openReport', this.openReport); emitter.on('openFavorite', this.openFavorite); + emitter.on('openManageExport', this.openManageExport); // document.addEventListener('keydown', this.shortcutEvent); }, @@ -544,6 +545,7 @@ export default { emitter.off('approveDetails', this.openApproveDetails); emitter.off('openReport', this.openReport); emitter.off('openFavorite', this.openFavorite); + emitter.off('openManageExport', this.openManageExport); // document.removeEventListener('keydown', this.shortcutEvent); }, @@ -1317,6 +1319,23 @@ export default { this.favoriteShow = true; }, + openManageExport(type) { + switch (type) { + case 'task': + this.exportTaskShow = true; + break; + case 'overdue': + this.exportOverdueTask(); + break; + case 'approve': + this.exportApproveShow = true; + break; + case 'checkin': + this.exportCheckinShow = true; + break; + } + }, + handleLongpress(event) { const {type, data, element} = this.longpressData; this.$store.commit("longpress/clear") diff --git a/resources/assets/js/pages/manage/application.vue b/resources/assets/js/pages/manage/application.vue index 3a0c67dd4..d87cc6ef6 100644 --- a/resources/assets/js/pages/manage/application.vue +++ b/resources/assets/js/pages/manage/application.vue @@ -23,7 +23,7 @@ :xl="{ span: 6 }" :xxl="{ span: 3 }">
-
+
@@ -41,7 +41,28 @@ :xl="{ span: 6 }" :xxl="{ span: 3 }">
-
+ +