feat : 新增按钮权限
This commit is contained in:
@@ -109,7 +109,7 @@ function StorageDetectionList() {
|
||||
key="view"
|
||||
icon={<EyeOutlined />}
|
||||
loading={loading}
|
||||
hidden={!access.hasPerms('storage:detection:view')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:jobMonitor:view')}
|
||||
onClick={() => handleViewDetail(detectionId)}
|
||||
>
|
||||
查看详情
|
||||
@@ -120,7 +120,7 @@ function StorageDetectionList() {
|
||||
key="edit"
|
||||
icon={<FormOutlined />}
|
||||
loading={loading}
|
||||
hidden={!access.hasPerms('storage:detection:update')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:jobMonitor:edit')}
|
||||
onClick={() => handleEdit(detectionId)}
|
||||
>
|
||||
编辑
|
||||
|
||||
@@ -137,7 +137,7 @@ function JobIndexList() {
|
||||
key="view"
|
||||
icon={<EyeOutlined />}
|
||||
loading={loading}
|
||||
hidden={!access.hasPerms('jobIndex:view')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:metricAdmin:view')}
|
||||
onClick={() => handleViewDetail(indexId)}
|
||||
>
|
||||
查看详情
|
||||
@@ -148,7 +148,7 @@ function JobIndexList() {
|
||||
key="edit"
|
||||
icon={<FormOutlined />}
|
||||
loading={loading}
|
||||
hidden={!access.hasPerms('jobIndex:update')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:metricAdmin:edit')}
|
||||
onClick={() => handleEdit(indexId)}
|
||||
>
|
||||
编辑
|
||||
@@ -159,7 +159,7 @@ function JobIndexList() {
|
||||
danger
|
||||
key="delete"
|
||||
icon={<DeleteOutlined />}
|
||||
hidden={!access.hasPerms('jobIndex:delete')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:metricAdmin:delete')}
|
||||
onClick={async () => {
|
||||
Modal.confirm({
|
||||
title: '删除',
|
||||
@@ -217,7 +217,7 @@ function JobIndexList() {
|
||||
<Button
|
||||
type="primary"
|
||||
key="add"
|
||||
hidden={!access.hasPerms('jobIndex:add')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:metricAdmin:add')}
|
||||
onClick={async () => {
|
||||
setCurrentRow(undefined);
|
||||
setModalVisible(true);
|
||||
|
||||
@@ -143,7 +143,7 @@ function WebsiteList() {
|
||||
key="view"
|
||||
icon={<EyeOutlined />}
|
||||
loading={loading}
|
||||
hidden={!access.hasPerms('website:view')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:sourceManager:view')}
|
||||
onClick={() => handleViewDetail(websiteId)}
|
||||
>
|
||||
查看详情
|
||||
@@ -154,7 +154,7 @@ function WebsiteList() {
|
||||
key="edit"
|
||||
icon={<FormOutlined />}
|
||||
loading={loading}
|
||||
hidden={!access.hasPerms('website:update')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:sourceManager:edit')}
|
||||
onClick={() => handleEdit(websiteId)}
|
||||
>
|
||||
编辑
|
||||
@@ -165,7 +165,7 @@ function WebsiteList() {
|
||||
danger
|
||||
key="delete"
|
||||
icon={<DeleteOutlined />}
|
||||
hidden={!access.hasPerms('website:delete')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:sourceManager:delete')}
|
||||
onClick={async () => {
|
||||
Modal.confirm({
|
||||
title: '删除',
|
||||
@@ -223,7 +223,7 @@ function WebsiteList() {
|
||||
<Button
|
||||
type="primary"
|
||||
key="add"
|
||||
hidden={!access.hasPerms('website:add')}
|
||||
hidden={!access.hasPerms('recruitmentDataCollection:sourceManager:add')}
|
||||
onClick={async () => {
|
||||
setCurrentRow(undefined);
|
||||
setModalVisible(true);
|
||||
|
||||
@@ -177,7 +177,7 @@ function ResumeList() {
|
||||
key="view"
|
||||
icon={<EyeOutlined />}
|
||||
loading={loading}
|
||||
hidden={!access.hasPerms('appUser:resume:view')}
|
||||
hidden={!access.hasPerms('resumeLibrary:resumeList:view')}
|
||||
onClick={() => handleViewDetail(userId)}
|
||||
>
|
||||
查看简历
|
||||
|
||||
Reference in New Issue
Block a user