1
This commit is contained in:
parent
f6865cce59
commit
35a07abd62
@ -77,7 +77,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
|||||||
columnGap: 24
|
columnGap: 24
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
externalSystem: {
|
externalSystemId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '三方系统',
|
title: '三方系统',
|
||||||
'x-decorator': 'FormItem',
|
'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' } })}}"],
|
'x-reactions': ["{{useAsyncDataSource('/api/v1/external-system/list', { params: { type: 'JENKINS' }, mapping: { label: 'name', value: 'id' } })}}"],
|
||||||
},
|
},
|
||||||
jenkinsView: {
|
viewId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: 'Jenkins视图',
|
title: 'Jenkins视图',
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
@ -102,7 +102,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
|||||||
placeholder: '请选择Jenkins视图'
|
placeholder: '请选择Jenkins视图'
|
||||||
},
|
},
|
||||||
'x-reactions': {
|
'x-reactions': {
|
||||||
dependencies: ['externalSystem'],
|
dependencies: ['externalSystemId'],
|
||||||
fulfill: {
|
fulfill: {
|
||||||
state: {
|
state: {
|
||||||
visible: '{{!!$deps[0]}}',
|
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}}"
|
"description": "{{$self.dataSource && $self.value ? ($self.dataSource.find(item => item.value === $self.value)?.extra?.description) : undefined}}"
|
||||||
},
|
},
|
||||||
jenkinsJob: {
|
jobId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: 'Jenkins作业',
|
title: 'Jenkins作业',
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
@ -125,7 +125,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
|||||||
placeholder: '请选择Jenkins作业'
|
placeholder: '请选择Jenkins作业'
|
||||||
},
|
},
|
||||||
'x-reactions': {
|
'x-reactions': {
|
||||||
dependencies: ['externalSystem', 'jenkinsView'],
|
dependencies: ['externalSystemId', 'viewId'],
|
||||||
fulfill: {
|
fulfill: {
|
||||||
state: {
|
state: {
|
||||||
visible: '{{!!$deps[0] && !!$deps[1]}}',
|
visible: '{{!!$deps[0] && !!$deps[1]}}',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user