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
db243461
Commit
db243461
authored
Feb 17, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉送审
parent
35835eae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
37 deletions
+37
-37
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+28
-28
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+7
-7
index.jsx
src/view/Manage/Model/index.jsx
+2
-2
No files found.
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
db243461
...
@@ -973,40 +973,40 @@ export const ImportActionTable = (props) => {
...
@@ -973,40 +973,40 @@ export const ImportActionTable = (props) => {
{
{
<React.Fragment>
<React.Fragment>
{
{
(originAction!=='flow') && <Tooltip title={record.needAttention ? '取消送审关注': '送审关注'}>
//
(originAction!=='flow') && <Tooltip title={record.needAttention ? '取消送审关注': '送审关注'}>
<Button
//
<Button
className='mr-3'
//
className='mr-3'
size='small'
//
size='small'
type='text'
//
type='text'
icon={record.needAttention ? <AttentionSvg style={{ width: 15, height: 15 }} /> : <UnAttentionSvg style={{ width: 15, height: 15 }} />}
//
icon={record.needAttention ? <AttentionSvg style={{ width: 15, height: 15 }} /> : <UnAttentionSvg style={{ width: 15, height: 15 }} />}
onClick={(event) => {
//
onClick={(event) => {
event.stopPropagation();
//
event.stopPropagation();
if (record.needAttention === null) {
//
if (record.needAttention === null) {
record.needAttention = true;
//
record.needAttention = true;
} else {
//
} else {
record.needAttention = !record.needAttention;
//
record.needAttention = !record.needAttention;
}
//
}
const newData = [...moveRowRef.current.data];
//
const newData = [...moveRowRef.current.data];
const index = newData.findIndex((item) => record.iid === item.iid);
//
const index = newData.findIndex((item) => record.iid === item.iid);
if (index !== -1) {
//
if (index !== -1) {
newData.splice(index, 1, {...record});
//
newData.splice(index, 1, {...record});
setData(newData);
//
setData(newData);
moveRowRef.current.data = newData;
//
moveRowRef.current.data = newData;
onChange && onChange(newData, false);
//
onChange && onChange(newData, false);
if (!record.needAttention) {
//
if (!record.needAttention) {
preSaveDataModel(record);
//
preSaveDataModel(record);
}
//
}
}
//
}
}}
//
}}
/>
//
/>
</Tooltip>
//
</Tooltip>
}
}
<Button
<Button
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
db243461
...
@@ -548,13 +548,13 @@ const ModelTable = (props) => {
...
@@ -548,13 +548,13 @@ const ModelTable = (props) => {
</
RcItem
>
</
RcItem
>
}
}
{
{
getDataModelerRole
(
user
)
!==
DataModelerRoleReader
&&
(
currentItem
?.
state
?.
supportedActions
||
[]).
length
>
0
&&
currentItem
?.
state
?.
supportedActions
.
map
((
item
,
index
)
=>
{
//
getDataModelerRole(user)!==DataModelerRoleReader && (currentItem?.state?.supportedActions||[]).length>0 && currentItem?.state?.supportedActions.map((item, index) =>
{
return
(
//
return (
<
RcItem
id=
{
`action-${index}`
}
onClick=
{
handleItemClick
}
>
//
<RcItem id=
{
`action-${index}`
}
onClick
=
{
handleItemClick
}
>
{
item
.
cnName
||
''
}
//
{
item
.
cnName
||
''
}
</
RcItem
>
//
</RcItem>
);
//
);
})
//
})
}
}
{
{
getDataModelerRole
(
user
)
!==
DataModelerRoleReader
&&
currentItem
?.
deployable
&&
<
RcItem
id=
'createTable'
onClick=
{
handleItemClick
}
>
getDataModelerRole
(
user
)
!==
DataModelerRoleReader
&&
currentItem
?.
deployable
&&
<
RcItem
id=
'createTable'
onClick=
{
handleItemClick
}
>
...
...
src/view/Manage/Model/index.jsx
View file @
db243461
...
@@ -519,11 +519,11 @@ class Model extends React.Component {
...
@@ -519,11 +519,11 @@ class Model extends React.Component {
</Tooltip>
</Tooltip>
</Space>
</Space>
<Space>
{/*
<Space>
<Tooltip title={startFlowTip}>
<Tooltip title={startFlowTip}>
<Button onClick={this.startFlow} disabled={disableStartFlow}>送审</Button>
<Button onClick={this.startFlow} disabled={disableStartFlow}>送审</Button>
</Tooltip>
</Tooltip>
</Space>
</Space>
*/}
<Space>
<Space>
<Tooltip title={(selectModelerIds||[]).length===0?'请先选择模型':''}>
<Tooltip title={(selectModelerIds||[]).length===0?'请先选择模型':''}>
...
...
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