Commit 0def22f6 by zhaochengxiang

流程详情

parent 156270f6
...@@ -18,6 +18,8 @@ export const VersionId = 'vid'; ...@@ -18,6 +18,8 @@ export const VersionId = 'vid';
export const TemplateId = 'tid'; export const TemplateId = 'tid';
export const Holder = 'holder'; export const Holder = 'holder';
export const ReadOnly = 'readOnly'; export const ReadOnly = 'readOnly';
export const ApprovalId = 'approvalId';
export const ApprovalType = 'approvalType';
export const DataModelerRoleAdmin = 'admin'; export const DataModelerRoleAdmin = 'admin';
export const DataModelerRoleUser = 'user'; export const DataModelerRoleUser = 'user';
......
...@@ -6,6 +6,7 @@ import Table from '../../../util/Component/Table' ...@@ -6,6 +6,7 @@ import Table from '../../../util/Component/Table'
import { isSzseEnv, getQueryParam, showMessage } from "../../../util" import { isSzseEnv, getQueryParam, showMessage } from "../../../util"
import { dispatch } from '../../../model'; import { dispatch } from '../../../model';
import { AttachesItem } from "../Model/Component/start-flow" import { AttachesItem } from "../Model/Component/start-flow"
import { Action, ApprovalId, ApprovalType, ModelerId } from "../../../util/constant"
const FC = (props) => { const FC = (props) => {
const [loading, setLoading] = React.useState(false) const [loading, setLoading] = React.useState(false)
...@@ -39,14 +40,6 @@ const FC = (props) => { ...@@ -39,14 +40,6 @@ const FC = (props) => {
}) })
} }
const onGraghClick = () => {
}
const onCloseClick = () => {
}
const onSaveClick = () => { const onSaveClick = () => {
try { try {
const tableData = listRef.current?.tableData const tableData = listRef.current?.tableData
...@@ -109,7 +102,6 @@ const FC = (props) => { ...@@ -109,7 +102,6 @@ const FC = (props) => {
<div className='p-5' style={{ height: '100%' }}> <div className='p-5' style={{ height: '100%' }}>
<div className='flex' style={{ justifyContent: 'end' }}> <div className='flex' style={{ justifyContent: 'end' }}>
<Space> <Space>
<Button onClick={onCloseClick}>关闭</Button>
<Button onClick={onSaveClick}>保存</Button> <Button onClick={onSaveClick}>保存</Button>
<Button onClick={onSubmitClick}>提交</Button> <Button onClick={onSubmitClick}>提交</Button>
</Space> </Space>
...@@ -181,12 +173,12 @@ const List = React.forwardRef(function ({type, data}, ref) { ...@@ -181,12 +173,12 @@ const List = React.forwardRef(function ({type, data}, ref) {
dataIndex: 'name', dataIndex: 'name',
width: isSzseEnv?360:160, width: isSzseEnv?360:160,
ellipsis: false, ellipsis: false,
render: (text, record) => ( render: (text, record, index) => (
<Tooltip title={text}> <Tooltip title={text}>
<Typography.Paragraph ellipsis={{ <Typography.Paragraph ellipsis={{
rows: 3, rows: 3,
}}><a onClick={() => { }}><a onClick={() => {
onModelClick(record, index)
}}>{text}</a></Typography.Paragraph> }}>{text}</a></Typography.Paragraph>
</Tooltip> </Tooltip>
) )
...@@ -313,6 +305,10 @@ const List = React.forwardRef(function ({type, data}, ref) { ...@@ -313,6 +305,10 @@ const List = React.forwardRef(function ({type, data}, ref) {
}, },
] ]
const onModelClick = (record, index) => {
window.open(`/data-govern/data-model-action?${Action}=flow&${ModelerId}=${record?.id}&${ApprovalId}=${data?.id}&${ApprovalType}=${type}`)
}
return ( return (
<Form form={form}> <Form form={form}>
<Table <Table
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment