Commit aae492e3 by zhaochengxiang

bug fix

parent 08fe06be
......@@ -104,8 +104,8 @@ const FC = (props) => {
let [_canPublish, _canDelete] = [true, true]
for (const item of (selectedRows??[])) {
const publishIndex = (item.allowActions??[]).findIndex(item => item==='publish')
const deleteIndex = (item.allowActions??[]).findIndex(item => item==='delete')
const publishIndex = (item.allowButtons??[]).findIndex(item => item==='publish')
const deleteIndex = (item.allowButtons??[]).findIndex(item => item==='delete')
if (publishIndex === -1) {
_canPublish = false
}
......@@ -119,7 +119,7 @@ const FC = (props) => {
const menuData = React.useMemo(() => {
const newMenuData = []
for (const key of rightRow?.allowActions??[]) {
for (const key of rightRow?.allowButtons??[]) {
if (operationMap[key]) {
newMenuData.push(operationMap[key])
}
......@@ -599,7 +599,7 @@ const FC = (props) => {
setRightRow(record)
let allowContextMenu = false
for (const key of (record.allowActions??[])) {
for (const key of (record.allowButtons??[])) {
if (operationMap[key]) {
allowContextMenu = true
break
......
......@@ -209,7 +209,7 @@ const AssetTable = (props) => {
const actionCol = {
title: '操作',
dataIndex: 'action',
width: 120,
width: 60,
fixed: 'right',
filter: false,
render: (_, record) => {
......@@ -222,13 +222,13 @@ const AssetTable = (props) => {
}}>授权</a>
}
{
(reference===AssetManageReference||(reference===AssetBrowseReference&&record.hasPermission)) && <a onClick={(e) => {
e.stopPropagation();
setAssetMountParam({
visible: true,
ids: [record.id]
});
}}>变更目录</a>
// (reference===AssetManageReference||(reference===AssetBrowseReference&&record.hasPermission)) && <a onClick={(e) => {
// e.stopPropagation();
// setAssetMountParam({
// visible: true,
// ids: [record.id]
// });
// }}>变更目录</a>
}
</Space>
)
......
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