|
|
|
@@ -12,7 +12,7 @@ import { |
|
|
|
} from '@/services/pipeline/index.js'; |
|
|
|
import themes from '@/styles/theme.less'; |
|
|
|
import { modalConfirm } from '@/utils/ui'; |
|
|
|
import { Button, ConfigProvider, Form, Input, Space, Table, message } from 'antd'; |
|
|
|
import { App, Button, ConfigProvider, Form, Input, Space, Table } from 'antd'; |
|
|
|
import classNames from 'classnames'; |
|
|
|
import { useEffect, useRef, useState } from 'react'; |
|
|
|
import { useNavigate } from 'react-router-dom'; |
|
|
|
@@ -28,6 +28,7 @@ const Pipeline = () => { |
|
|
|
const [pipeList, setPipeList] = useState([]); |
|
|
|
const [total, setTotal] = useState(0); |
|
|
|
const [isModalOpen, setIsModalOpen] = useState(false); |
|
|
|
const { message } = App.useApp(); |
|
|
|
const editTable = (e, record) => { |
|
|
|
e.stopPropagation(); |
|
|
|
getWorkflowById(record.id).then((ret) => { |
|
|
|
@@ -66,7 +67,7 @@ const Pipeline = () => { |
|
|
|
} else { |
|
|
|
addWorkflow(values).then((ret) => { |
|
|
|
console.log(ret); |
|
|
|
if (ret.code == 200) { |
|
|
|
if (ret.code === 200) { |
|
|
|
navgite({ pathname: `/pipeline/template/${ret.data.id}/${ret.data.name}` }); |
|
|
|
} |
|
|
|
}); |
|
|
|
|