mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
feat: feature/1.5-Data Integration
This commit is contained in:
@@ -239,6 +239,21 @@ export const PERMISSION_DEFINITION = [
|
||||
anyOf: [{ backend: ['system.settings.log_configuration.manager'] }]
|
||||
}
|
||||
},
|
||||
'system.settings.ai_balance.view': {
|
||||
granted: {
|
||||
anyOf: [{ backend: ['system.settings.ai_balance.view'] }]
|
||||
}
|
||||
},
|
||||
'system.settings.ai_balance.delete': {
|
||||
granted: {
|
||||
anyOf: [{ backend: ['system.settings.ai_balance.manager'] }]
|
||||
}
|
||||
},
|
||||
'system.settings.ai_balance.add': {
|
||||
granted: {
|
||||
anyOf: [{ backend: ['system.settings.ai_balance.manager'] }]
|
||||
}
|
||||
},
|
||||
'system.devops.policy.view': {
|
||||
granted: {
|
||||
anyOf: [{ backend: ['system.settings.strategy.view'] }]
|
||||
|
||||
@@ -166,7 +166,7 @@ const mockData = [
|
||||
key: 'loadBalancing',
|
||||
path: '/loadBalancing',
|
||||
icon: 'ph:network-x',
|
||||
access: 'system.settings.data_source.view'
|
||||
access: 'system.settings.ai_balance.view'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -256,7 +256,7 @@ const LoadBalancingPage = () => {
|
||||
valueType: 'option',
|
||||
render: (_: React.ReactNode, entity: any) => [
|
||||
<TableBtnWithPermission
|
||||
access=""
|
||||
access="system.settings.ai_balance.delete"
|
||||
key="delete"
|
||||
btnType="delete"
|
||||
onClick={() => handleDelete(entity.id as string)}
|
||||
@@ -285,7 +285,7 @@ const LoadBalancingPage = () => {
|
||||
ref={pageListRef}
|
||||
rowKey="id"
|
||||
afterNewBtn={[
|
||||
<WithPermission key="removeFromDepPermission" access={``}>
|
||||
<WithPermission key="removeFromDepPermission" access="system.settings.ai_balance.add">
|
||||
<Button className="mr-btnbase" type="primary" key="removeFromDep" onClick={() => addModel()}>
|
||||
{$t('添加模型')}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user