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