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 }">
-
+ +