Commit 99fe986f by zhaochengxiang

资产发布

parent 52ef113d
...@@ -297,6 +297,7 @@ const FC = (props) => { ...@@ -297,6 +297,7 @@ const FC = (props) => {
} }
const onPublishClick = () => { const onPublishClick = () => {
if (isAdmin) {
modal.confirm({ modal.confirm({
title: '是否确认发布选中的资产目录', title: '是否确认发布选中的资产目录',
onOk: () => { onOk: () => {
...@@ -315,14 +316,13 @@ const FC = (props) => { ...@@ -315,14 +316,13 @@ const FC = (props) => {
}) })
} }
}) })
} } else {
const onStartProcessClick = () => {
setStartProcessParams({ setStartProcessParams({
visible: true, visible: true,
items: selectedRows items: selectedRows
}) })
} }
}
const onDeletesClick = () => { const onDeletesClick = () => {
modal.confirm({ modal.confirm({
...@@ -368,14 +368,12 @@ const FC = (props) => { ...@@ -368,14 +368,12 @@ const FC = (props) => {
<Tooltip title={((selectedRows??[]).length === 0) ? '请先选择资产' : ''}> <Tooltip title={((selectedRows??[]).length === 0) ? '请先选择资产' : ''}>
<Button onClick={onExportClick} disabled={(selectedRows??[]).length === 0}>导出</Button> <Button onClick={onExportClick} disabled={(selectedRows??[]).length === 0}>导出</Button>
</Tooltip> </Tooltip>
{
isAdmin && <Tooltip title={((selectedRows??[]).length === 0) ? '请先选择资产' : ''}>
<Button onClick={onPublishClick} disabled={(selectedRows??[]).length === 0}>发布</Button>
</Tooltip>
}
<Tooltip title={canStartProcess?'':'请先选择待提交的资产'}> <Tooltip title={canStartProcess?'':'请先选择待提交的资产'}>
<Button onClick={onStartProcessClick} disabled={!canStartProcess}>申请</Button> <Button onClick={onPublishClick} disabled={!canStartProcess}>发布</Button>
</Tooltip> </Tooltip>
{/* <Tooltip title={canStartProcess?'':'请先选择待提交的资产'}>
<Button onClick={onStartProcessClick} disabled={!canStartProcess}>申请</Button>
</Tooltip> */}
<Tooltip title={((selectedRows??[]).length === 0) ? '请先选择资产' : ''}> <Tooltip title={((selectedRows??[]).length === 0) ? '请先选择资产' : ''}>
<Button onClick={onDeletesClick} disabled={(selectedRows??[]).length === 0}>删除</Button> <Button onClick={onDeletesClick} disabled={(selectedRows??[]).length === 0}>删除</Button>
</Tooltip> </Tooltip>
......
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