Commit a34fbb71 by zhaochengxiang

去掉不要的代码

parent acd0736c
......@@ -95,20 +95,20 @@ const AssetAction = (props) => {
ellipsis: true,
render: (text, _) => highlightSearchContentByTerms(text||'', terms)
},
{
title: '是否有权限',
dataIndex: 'permission',
width: 100,
ellipsis: true,
render: (_, record) => {
const index = (permissions||[]).findIndex(item => item.columnMetadataId===record._id);
if (index!==-1) {
return permissions[index].visible === 'Y' ? '是':'否';
}
// {
// title: '是否有权限',
// dataIndex: 'permission',
// width: 100,
// ellipsis: true,
// render: (_, record) => {
// const index = (permissions||[]).findIndex(item => item.columnMetadataId===record._id);
// if (index!==-1) {
// return permissions[index].visible === 'Y' ? '是':'否';
// }
return '否';
}
},
// return '否';
// }
// },
{
title: '业务规则',
dataIndex: 'businessRules',
......@@ -236,16 +236,16 @@ const AssetAction = (props) => {
}, [metadataColumnList, pagination, keyword])
const getPermission = () => {
dispatch({
type: 'assetmanage.getPermission',
payload: {
permissionId,
env: app?.env?.domainId||LocalStorage.get('assetsEnv')
},
callback: data => {
setPermissions(data.columnPermissions);
}
});
// dispatch({
// type: 'assetmanage.getPermission',
// payload: {
// permissionId,
// env: app?.env?.domainId||LocalStorage.get('assetsEnv')
// },
// callback: data => {
// setPermissions(data.columnPermissions);
// }
// });
}
const getAssetPaths = () => {
......
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