Commit 0def22f6 by zhaochengxiang

流程详情

parent 156270f6
......@@ -18,6 +18,8 @@ export const VersionId = 'vid';
export const TemplateId = 'tid';
export const Holder = 'holder';
export const ReadOnly = 'readOnly';
export const ApprovalId = 'approvalId';
export const ApprovalType = 'approvalType';
export const DataModelerRoleAdmin = 'admin';
export const DataModelerRoleUser = 'user';
......
......@@ -6,6 +6,7 @@ import Table from '../../../util/Component/Table'
import { isSzseEnv, getQueryParam, showMessage } from "../../../util"
import { dispatch } from '../../../model';
import { AttachesItem } from "../Model/Component/start-flow"
import { Action, ApprovalId, ApprovalType, ModelerId } from "../../../util/constant"
const FC = (props) => {
const [loading, setLoading] = React.useState(false)
......@@ -39,14 +40,6 @@ const FC = (props) => {
})
}
const onGraghClick = () => {
}
const onCloseClick = () => {
}
const onSaveClick = () => {
try {
const tableData = listRef.current?.tableData
......@@ -109,7 +102,6 @@ const FC = (props) => {
<div className='p-5' style={{ height: '100%' }}>
<div className='flex' style={{ justifyContent: 'end' }}>
<Space>
<Button onClick={onCloseClick}>关闭</Button>
<Button onClick={onSaveClick}>保存</Button>
<Button onClick={onSubmitClick}>提交</Button>
</Space>
......@@ -181,12 +173,12 @@ const List = React.forwardRef(function ({type, data}, ref) {
dataIndex: 'name',
width: isSzseEnv?360:160,
ellipsis: false,
render: (text, record) => (
render: (text, record, index) => (
<Tooltip title={text}>
<Typography.Paragraph ellipsis={{
rows: 3,
}}><a onClick={() => {
onModelClick(record, index)
}}>{text}</a></Typography.Paragraph>
</Tooltip>
)
......@@ -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 (
<Form form={form}>
<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