diff --git a/src/views/workflow/task/index.vue b/src/views/workflow/task/index.vue
index 580b0b5..4841aa6 100644
--- a/src/views/workflow/task/index.vue
+++ b/src/views/workflow/task/index.vue
@@ -14,6 +14,7 @@ import { triggerTypeRecord } from '@/constants/business';
import StatusSwitch from '@/components/common/status-switch.vue';
import { tagColor } from '@/utils/common';
import { useAuth } from '@/hooks/business/auth';
+import { downloadFetch } from '@/utils/download';
import WorkflowSearch from './modules/workflow-search.vue';
const { hasAuth } = useAuth();
@@ -249,6 +250,10 @@ async function execute(id: string) {
getData();
}
}
+
+function handleExport() {
+ downloadFetch('/workflow/export', checkedRowKeys.value, $t('page.workflow.title'));
+}
@@ -270,7 +275,28 @@ async function execute(id: string) {
@add="handleAdd"
@delete="handleBatchDelete"
@refresh="getData"
- />
+ >
+
+
+
+
+
+
+
+
+ {{ $t('common.export') }}
+
+
+
+ {{
+ checkedRowKeys.length === 0
+ ? $t('common.exportAll')
+ : $t('common.exportPar', { num: checkedRowKeys.length })
+ }}
+
+
+
+