Commit db243461 by zhaochengxiang

去掉送审

parent 35835eae
...@@ -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
......
...@@ -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}>
......
...@@ -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?'请先选择模型':''}>
......
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