1
This commit is contained in:
parent
50e0d99712
commit
07b99aac31
@ -12,7 +12,6 @@ interface IconSelectProps {
|
||||
}
|
||||
|
||||
const IconSelect: React.FC<IconSelectProps> = ({
|
||||
value,
|
||||
onChange,
|
||||
visible,
|
||||
onCancel
|
||||
|
||||
@ -115,7 +115,6 @@ interface DataTablePaginationProps {
|
||||
|
||||
const DataTablePagination: React.FC<DataTablePaginationProps> = ({
|
||||
pageIndex,
|
||||
pageSize,
|
||||
pageCount,
|
||||
onPageChange,
|
||||
}) => {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import type {Page} from '@/types/base/page';
|
||||
import type {RoleResponse, RoleRequest, RoleQuery, RoleTagResponse, RoleTagRequest, Permission} from './types';
|
||||
import {Page} from "@/types/base.ts";
|
||||
|
||||
const BASE_URL = '/api/v1/role';
|
||||
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
import type { BaseResponse } from '@/types/base/response';
|
||||
import {BaseRequest} from "@/types/base/request.ts";
|
||||
import {BaseQuery} from "@/types/base";
|
||||
import {BaseQuery, BaseRequest, BaseResponse} from "@/types/base";
|
||||
|
||||
// 权限类型枚举
|
||||
export enum PermissionType {
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { Page } from '@/types/base/page';
|
||||
import type { UserResponse, UserRequest, UserQuery } from './types';
|
||||
import {Page} from "@/types/base.ts";
|
||||
import {RoleResponse} from "@/pages/System/Role/types";
|
||||
|
||||
const BASE_URL = '/api/v1/user';
|
||||
const ROLE_BASE_URL = '/api/v1/role';
|
||||
|
||||
@ -169,10 +169,6 @@ const NodeConfigDrawer: React.FC<NodeConfigDrawerProps> = ({
|
||||
setLocalValues(prev => ({...prev, [key]: value}));
|
||||
};
|
||||
|
||||
const handleFormChange = (key: string, value: any) => {
|
||||
setFormValues(prev => ({...prev, [key]: value}));
|
||||
};
|
||||
|
||||
const items: TabsProps['items'] = [
|
||||
nodeDefinition?.panelVariablesSchema && {
|
||||
key: 'panel',
|
||||
|
||||
@ -1271,7 +1271,6 @@ const WorkflowDesign: React.FC = () => {
|
||||
});
|
||||
|
||||
const edges = graph.getEdges().map(edge => {
|
||||
const sourceNode = graph.getCellById(edge.getSourceCellId());
|
||||
const condition = edge.getProp('condition');
|
||||
const vertices = edge.getVertices(); // 获取边的顶点信息
|
||||
|
||||
|
||||
@ -140,7 +140,7 @@ const WorkflowDefinitionList: React.FC = () => {
|
||||
key: 'category',
|
||||
render: (category: string) => {
|
||||
const categoryInfo = categories.find(c => c.code === category);
|
||||
return categoryInfo?.lable || category;
|
||||
return categoryInfo?.label || category;
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Modal, Table, Tag, Button, Space } from 'antd';
|
||||
import { Modal, Table, Tag, Button } from 'antd';
|
||||
import type { ColumnsType } from 'antd/es/table';
|
||||
import { WorkflowHistoricalInstance } from '../types';
|
||||
import { getHistoricalInstances } from '../service';
|
||||
|
||||
@ -9,7 +9,7 @@ import HistoryModal from './components/HistoryModal';
|
||||
|
||||
const WorkflowInstanceList: React.FC = () => {
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [data, setData] = useState<Page<WorkflowTemplateWithInstances[]>>([]);
|
||||
const [data, setData] = useState<Page<WorkflowTemplateWithInstances[]>>(null);
|
||||
const [query, setQuery] = useState({
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
@ -35,11 +35,6 @@ const WorkflowInstanceList: React.FC = () => {
|
||||
loadData(query);
|
||||
}, [query]);
|
||||
|
||||
const handleViewDetail = (record: WorkflowTemplateWithInstances) => {
|
||||
setSelectedInstance(record);
|
||||
setDetailVisible(true);
|
||||
};
|
||||
|
||||
const handleViewHistory = (record: WorkflowTemplateWithInstances) => {
|
||||
setSelectedWorkflowDefinitionId(record.id);
|
||||
setHistoryVisible(true);
|
||||
|
||||
@ -81,7 +81,7 @@ const WorkflowMonitor: React.FC = () => {
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
render: (_, record: any) => (
|
||||
render: (record: any) => (
|
||||
<Space size="middle">
|
||||
<a onClick={() => console.log('查看详情', record)}>查看详情</a>
|
||||
{record.status === 'RUNNING' && (
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React, {useState, useEffect} from 'react';
|
||||
import {PageContainer} from '@ant-design/pro-layout';
|
||||
import {Button, Card, Form, Input, InputNumber, Select, Switch, Space, Menu, Tabs, Row, Col, message, ColorPicker} from 'antd';
|
||||
import {Button, Card, Form, Input, InputNumber, Select, Switch, Tabs, Row, Col, message, ColorPicker} from 'antd';
|
||||
import type {NodeDesignDataResponse} from './types';
|
||||
import * as service from './service';
|
||||
import {useParams} from 'react-router-dom';
|
||||
|
||||
@ -63,7 +63,7 @@ const NodeDesignList: React.FC = () => {
|
||||
const [detailVisible, setDetailVisible] = useState(false);
|
||||
const [currentNode, setCurrentNode] = useState<NodeDesignDataResponse>();
|
||||
const [list, setList] = useState<NodeDesignDataResponse[]>([]);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [setLoading] = useState(false);
|
||||
const [pagination, setPagination] = useState({
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
@ -75,7 +75,7 @@ const NodeDesignList: React.FC = () => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const response = await service.getNodeDefinitions({
|
||||
current: pagination.pageNum,
|
||||
pageNum: pagination.pageNum,
|
||||
pageSize: pagination.pageSize,
|
||||
});
|
||||
setList(response.content || []);
|
||||
|
||||
@ -79,6 +79,7 @@ export interface NodeDesignDataResponse extends BaseResponse {
|
||||
description: string;
|
||||
panelVariablesSchema: NodeVariablesSchema | null;
|
||||
localVariablesSchema: NodeVariablesSchema | null;
|
||||
formVariablesSchema: NodeVariablesSchema | null;
|
||||
uiVariables: UIVariables;
|
||||
}
|
||||
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user