This commit is contained in:
dengqichen 2025-01-17 17:17:10 +08:00
parent f6865cce59
commit 35a07abd62

View File

@ -77,7 +77,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
columnGap: 24
},
properties: {
externalSystem: {
externalSystemId: {
type: 'string',
title: '三方系统',
'x-decorator': 'FormItem',
@ -90,7 +90,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
},
'x-reactions': ["{{useAsyncDataSource('/api/v1/external-system/list', { params: { type: 'JENKINS' }, mapping: { label: 'name', value: 'id' } })}}"],
},
jenkinsView: {
viewId: {
type: 'string',
title: 'Jenkins视图',
'x-decorator': 'FormItem',
@ -102,7 +102,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
placeholder: '请选择Jenkins视图'
},
'x-reactions': {
dependencies: ['externalSystem'],
dependencies: ['externalSystemId'],
fulfill: {
state: {
visible: '{{!!$deps[0]}}',
@ -113,7 +113,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
},
"description": "{{$self.dataSource && $self.value ? ($self.dataSource.find(item => item.value === $self.value)?.extra?.description) : undefined}}"
},
jenkinsJob: {
jobId: {
type: 'string',
title: 'Jenkins作业',
'x-decorator': 'FormItem',
@ -125,7 +125,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
placeholder: '请选择Jenkins作业'
},
'x-reactions': {
dependencies: ['externalSystem', 'jenkinsView'],
dependencies: ['externalSystemId', 'viewId'],
fulfill: {
state: {
visible: '{{!!$deps[0] && !!$deps[1]}}',