Commit db243461 by zhaochengxiang

去掉送审

parent 35835eae
......@@ -973,40 +973,40 @@ export const ImportActionTable = (props) => {
{
<React.Fragment>
{
(originAction!=='flow') && <Tooltip title={record.needAttention ? '取消送审关注': '送审关注'}>
<Button
className='mr-3'
size='small'
type='text'
icon={record.needAttention ? <AttentionSvg style={{ width: 15, height: 15 }} /> : <UnAttentionSvg style={{ width: 15, height: 15 }} />}
onClick={(event) => {
event.stopPropagation();
if (record.needAttention === null) {
record.needAttention = true;
} else {
record.needAttention = !record.needAttention;
}
const newData = [...moveRowRef.current.data];
// (originAction!=='flow') && <Tooltip title={record.needAttention ? '取消送审关注': '送审关注'}>
// <Button
// className='mr-3'
// size='small'
// type='text'
// icon={record.needAttention ? <AttentionSvg style={{ width: 15, height: 15 }} /> : <UnAttentionSvg style={{ width: 15, height: 15 }} />}
// onClick={(event) => {
// event.stopPropagation();
// if (record.needAttention === null) {
// record.needAttention = true;
// } else {
// record.needAttention = !record.needAttention;
// }
// 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) {
newData.splice(index, 1, {...record});
// if (index !== -1) {
// newData.splice(index, 1, {...record});
setData(newData);
moveRowRef.current.data = newData;
onChange && onChange(newData, false);
// setData(newData);
// moveRowRef.current.data = newData;
// onChange && onChange(newData, false);
if (!record.needAttention) {
preSaveDataModel(record);
}
}
// if (!record.needAttention) {
// preSaveDataModel(record);
// }
// }
}}
/>
</Tooltip>
// }}
// />
// </Tooltip>
}
<Button
......
......@@ -548,13 +548,13 @@ const ModelTable = (props) => {
</RcItem>
}
{
getDataModelerRole(user)!==DataModelerRoleReader && (currentItem?.state?.supportedActions||[]).length>0 && currentItem?.state?.supportedActions.map((item, index) => {
return (
<RcItem id={`action-${index}`} onClick={handleItemClick}>
{item.cnName||''}
</RcItem>
);
})
// getDataModelerRole(user)!==DataModelerRoleReader && (currentItem?.state?.supportedActions||[]).length>0 && currentItem?.state?.supportedActions.map((item, index) => {
// return (
// <RcItem id={`action-${index}`} onClick={handleItemClick}>
// {item.cnName||''}
// </RcItem>
// );
// })
}
{
getDataModelerRole(user)!==DataModelerRoleReader &&currentItem?.deployable && <RcItem id='createTable' onClick={handleItemClick}>
......
......@@ -519,11 +519,11 @@ class Model extends React.Component {
</Tooltip>
</Space>
<Space>
{/* <Space>
<Tooltip title={startFlowTip}>
<Button onClick={this.startFlow} disabled={disableStartFlow}>送审</Button>
</Tooltip>
</Space>
</Space> */}
<Space>
<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