Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
f53f77f1
Commit
f53f77f1
authored
Mar 14, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
送审关注
parent
e20ccf8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
22 deletions
+16
-22
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+16
-21
index.jsx
src/view/Manage/ModelReview/index.jsx
+0
-1
No files found.
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
f53f77f1
...
...
@@ -412,23 +412,6 @@ export const ImportActionTable = (props) => {
}
},
{
title: '重点关注',
width: 80,
dataIndex: 'needAttention',
editable: false,
render: (needAttention, record, index) => {
if (!needAttention) {
return '-';
} else if (needAttention === true) {
return (
<CheckOutlined />
)
}
return '';
}
},
{
title: '业务含义',
dataIndex: 'remark',
editable: true,
...
...
@@ -495,10 +478,20 @@ export const ImportActionTable = (props) => {
</React.Fragment>
)
}
}
,
}
];
const [ columns, setColumns ] = useState(cols);
const attentionCol = {
title: '送审关注',
width: 80,
dataIndex: 'needAttention',
editable: false,
render: (_, record, index) => (
record.needAttention ? <AttentionSvg style={{ width: 15, height: 15 }} /> : <UnAttentionSvg style={{ width: 15, height: 15 }} />
)
}
const [ columns, setColumns ] = useState([]);
useClickAway(() => {
save();
...
...
@@ -977,9 +970,11 @@ export const ImportActionTable = (props) => {
};
});
setColumns(_columns);
//只在编辑和评审的时候显示送审关注
setColumns((originAction === 'flow'||action === 'edit')?[..._columns, attentionCol]:_columns);
} else {
setColumns(cols);
//只在编辑和评审的时候显示送审关注
setColumns((originAction === 'flow'||action === 'edit')?[...cols, attentionCol]:cols);
}
}
...
...
src/view/Manage/ModelReview/index.jsx
View file @
f53f77f1
...
...
@@ -5,7 +5,6 @@ import produce from "immer"
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
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment