Commit aae492e3 by zhaochengxiang

bug fix

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