Commit a34fbb71 by zhaochengxiang

去掉不要的代码

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