|
@@ -83,12 +83,14 @@ const PermTabs: React.FC<PermTabsProps> = ({ currentPermData: { ID, roleType } }
|
|
|
<div className="my-2">
|
|
|
<Checkbox
|
|
|
onChange={e => handleFrontOnchange(e.target.checked, 'viewProject')}
|
|
|
- checked={state.frontPermission.includes('viewProject')}>
|
|
|
+ checked={state.frontPermission.includes('viewProject')}
|
|
|
+ disabled={roleType === RoleType.SYSTEM}>
|
|
|
查看项目
|
|
|
</Checkbox>
|
|
|
<Checkbox
|
|
|
onChange={e => handleFrontOnchange(e.target.checked, 'addProject')}
|
|
|
- checked={state.frontPermission.includes('addProject')}>
|
|
|
+ checked={state.frontPermission.includes('addProject')}
|
|
|
+ disabled={roleType === RoleType.SYSTEM}>
|
|
|
新建项目
|
|
|
</Checkbox>
|
|
|
<Checkbox
|
|
@@ -99,17 +101,20 @@ const PermTabs: React.FC<PermTabsProps> = ({ currentPermData: { ID, roleType } }
|
|
|
</Checkbox>
|
|
|
<Checkbox
|
|
|
onChange={e => handleFrontOnchange(e.target.checked, 'editProject')}
|
|
|
- checked={state.frontPermission.includes('editProject')}>
|
|
|
+ checked={state.frontPermission.includes('editProject')}
|
|
|
+ disabled={roleType === RoleType.SYSTEM}>
|
|
|
编辑项目
|
|
|
</Checkbox>
|
|
|
<Checkbox
|
|
|
onChange={e => handleFrontOnchange(e.target.checked, 'exportProject')}
|
|
|
- checked={state.frontPermission.includes('exportProject')}>
|
|
|
+ checked={state.frontPermission.includes('exportProject')}
|
|
|
+ disabled={roleType === RoleType.SYSTEM}>
|
|
|
导出项目
|
|
|
</Checkbox>
|
|
|
<Checkbox
|
|
|
onChange={e => handleFrontOnchange(e.target.checked, 'delProject')}
|
|
|
- checked={state.frontPermission.includes('delProject')}>
|
|
|
+ checked={state.frontPermission.includes('delProject')}
|
|
|
+ disabled={roleType === RoleType.SYSTEM}>
|
|
|
删除项目
|
|
|
</Checkbox>
|
|
|
</div>
|
|
@@ -118,6 +123,7 @@ const PermTabs: React.FC<PermTabsProps> = ({ currentPermData: { ID, roleType } }
|
|
|
<h4 className="pt-3">我参与的项目</h4>
|
|
|
<div className="my-2">
|
|
|
<Checkbox
|
|
|
+ disabled={roleType === RoleType.SYSTEM}
|
|
|
checked={state.frontPermission.includes('viewParticipatingProject')}
|
|
|
onChange={e =>
|
|
|
handleFrontOnchange(e.target.checked, 'viewParticipatingProject')
|
|
@@ -125,11 +131,13 @@ const PermTabs: React.FC<PermTabsProps> = ({ currentPermData: { ID, roleType } }
|
|
|
查看项目
|
|
|
</Checkbox>
|
|
|
<Checkbox
|
|
|
+ disabled={roleType === RoleType.SYSTEM}
|
|
|
checked={state.frontPermission.includes('saveIndex')}
|
|
|
onChange={e => handleFrontOnchange(e.target.checked, 'saveIndex')}>
|
|
|
指标入库
|
|
|
</Checkbox>
|
|
|
<Checkbox
|
|
|
+ disabled={roleType === RoleType.SYSTEM}
|
|
|
checked={state.frontPermission.includes('exportParticipatingProject')}
|
|
|
onChange={e =>
|
|
|
handleFrontOnchange(e.target.checked, 'exportParticipatingProject')
|
|
@@ -148,6 +156,7 @@ const PermTabs: React.FC<PermTabsProps> = ({ currentPermData: { ID, roleType } }
|
|
|
查看项目
|
|
|
</Checkbox>
|
|
|
<Checkbox
|
|
|
+ disabled={roleType === RoleType.SYSTEM}
|
|
|
checked={state.frontPermission.includes('saveIndexAll')}
|
|
|
onChange={e => handleFrontOnchange(e.target.checked, 'saveIndexAll')}>
|
|
|
指标入库
|