feat(sj_1.0.0): 完成工作流批次展示

This commit is contained in:
opensnail 2024-05-02 17:53:42 +08:00
parent cddfa60795
commit f83cd426a5
6 changed files with 17 additions and 12 deletions

View File

@ -288,7 +288,7 @@ const local: App.I18n.Schema = {
workflow_batch: 'Workflow Batch', workflow_batch: 'Workflow Batch',
workflow_form: 'Workflow', workflow_form: 'Workflow',
workflow_form_copy: 'Copy Workflow', workflow_form_copy: 'Copy Workflow',
workflow_form_batch: 'Workflow Batch List', workflow_form_batch: 'Workflow Batch Detail',
workflow_form_detail: 'Workflow Detail', workflow_form_detail: 'Workflow Detail',
workflow_form_edit: 'Edit Workflow', workflow_form_edit: 'Edit Workflow',
job: 'Schedule Task Management', job: 'Schedule Task Management',

View File

@ -289,7 +289,7 @@ const local: App.I18n.Schema = {
workflow_batch: '执行批次', workflow_batch: '执行批次',
workflow_form: '工作流', workflow_form: '工作流',
workflow_form_copy: '复制工作流', workflow_form_copy: '复制工作流',
workflow_form_batch: '工作流批次列表', workflow_form_batch: '工作流批次详情',
workflow_form_detail: '工作流详情', workflow_form_detail: '工作流详情',
workflow_form_edit: '编辑工作流', workflow_form_edit: '编辑工作流',
job: '定时任务', job: '定时任务',

View File

@ -1040,8 +1040,7 @@ declare namespace Api {
/** workflowBatch search params */ /** workflowBatch search params */
type WorkflowBatchSearchParams = CommonType.RecordNullable< type WorkflowBatchSearchParams = CommonType.RecordNullable<
Pick<Api.WorkflowBatch.WorkflowBatch, 'workflowId' | 'groupName' | 'taskBatchStatus' | 'operationReason'> & Pick<Api.WorkflowBatch.WorkflowBatch, 'workflowId' | 'groupName' | 'taskBatchStatus'> & CommonSearchParams
CommonSearchParams
>; >;
/** workflowBatch list */ /** workflowBatch list */

View File

@ -1,6 +1,6 @@
<script setup lang="tsx"> <script setup lang="tsx">
import { NButton, NPopconfirm, NTag } from 'naive-ui'; import { NButton, NPopconfirm, NTag } from 'naive-ui';
import { useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { fetchGetWorkflowBatchList, fetchStopWorkflowBatch } from '@/service/api'; import { fetchGetWorkflowBatchList, fetchStopWorkflowBatch } from '@/service/api';
import { $t } from '@/locales'; import { $t } from '@/locales';
import { useAppStore } from '@/store/modules/app'; import { useAppStore } from '@/store/modules/app';
@ -8,6 +8,10 @@ import { useTable, useTableOperate } from '@/hooks/common/table';
import { operationReasonRecord, taskBatchStatusRecord } from '@/constants/business'; import { operationReasonRecord, taskBatchStatusRecord } from '@/constants/business';
import WorkflowBatchSearch from './modules/workflow-batch-search.vue'; import WorkflowBatchSearch from './modules/workflow-batch-search.vue';
const router = useRouter(); const router = useRouter();
const route = useRoute();
//
const workflowId = Number.parseInt(route.query?.workflowId as string, 10);
const appStore = useAppStore(); const appStore = useAppStore();
@ -18,16 +22,16 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
size: 10, size: 10,
// if you want to use the searchParams in Form, you need to define the following properties, and the value is null // if you want to use the searchParams in Form, you need to define the following properties, and the value is null
// the value can not be undefined, otherwise the property in Form will not be reactive // the value can not be undefined, otherwise the property in Form will not be reactive
workflowId: null, workflowId,
groupName: null, groupName: null,
taskBatchStatus: null taskBatchStatus: null
}, },
columns: () => [ columns: () => [
{ // {
type: 'selection', // type: 'selection',
align: 'center', // align: 'center',
width: 48 // width: 48
}, // },
{ {
key: 'index', key: 'index',
title: $t('common.index'), title: $t('common.index'),

View File

@ -33,6 +33,8 @@ async function groupNameUpdate(groupName: string) {
const res = await fetchGetWorkflowNameList({ groupName }); const res = await fetchGetWorkflowNameList({ groupName });
workflowList.value = res.data as Api.Workflow.Workflow[]; workflowList.value = res.data as Api.Workflow.Workflow[];
} }
groupNameUpdate('');
</script> </script>
<template> <template>

View File

@ -7,7 +7,7 @@ defineOptions({
</script> </script>
<template> <template>
<div class="iframe"><WorkFlowIframe value="kaxC8Iml" /></div> <div class="iframe"><WorkFlowIframe value="xkjIc2ZHZ0" /></div>
</template> </template>
<style scoped> <style scoped>