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_form: '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_edit: 'Edit Workflow',
job: 'Schedule Task Management',

View File

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

View File

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

View File

@ -1,6 +1,6 @@
<script setup lang="tsx">
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 { $t } from '@/locales';
import { useAppStore } from '@/store/modules/app';
@ -8,6 +8,10 @@ import { useTable, useTableOperate } from '@/hooks/common/table';
import { operationReasonRecord, taskBatchStatusRecord } from '@/constants/business';
import WorkflowBatchSearch from './modules/workflow-batch-search.vue';
const router = useRouter();
const route = useRoute();
//
const workflowId = Number.parseInt(route.query?.workflowId as string, 10);
const appStore = useAppStore();
@ -18,16 +22,16 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
size: 10,
// 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
workflowId: null,
workflowId,
groupName: null,
taskBatchStatus: null
},
columns: () => [
{
type: 'selection',
align: 'center',
width: 48
},
// {
// type: 'selection',
// align: 'center',
// width: 48
// },
{
key: 'index',
title: $t('common.index'),

View File

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

View File

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