1
This commit is contained in:
parent
00e166a4f3
commit
335e86c5be
@ -91,20 +91,21 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
|||||||
|
|
||||||
const schema: ISchema = {
|
const schema: ISchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
|
||||||
layout: {
|
|
||||||
type: 'void',
|
|
||||||
'x-component': 'FormGrid',
|
|
||||||
'x-component-props': {
|
|
||||||
maxColumns: 2,
|
|
||||||
minColumns: 2,
|
|
||||||
columnGap: 24
|
|
||||||
},
|
|
||||||
properties: {
|
properties: {
|
||||||
externalSystemId: {
|
externalSystemId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '三方系统',
|
title: '三方系统',
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
|
'x-decorator-props': {
|
||||||
|
labelCol: 24,
|
||||||
|
wrapperCol: 24,
|
||||||
|
layout: 'vertical',
|
||||||
|
colon: false,
|
||||||
|
labelAlign: 'left',
|
||||||
|
style: {
|
||||||
|
marginBottom: 24
|
||||||
|
}
|
||||||
|
},
|
||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
style: {
|
style: {
|
||||||
@ -119,6 +120,16 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: 'Jenkins视图',
|
title: 'Jenkins视图',
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
|
'x-decorator-props': {
|
||||||
|
labelCol: 24,
|
||||||
|
wrapperCol: 24,
|
||||||
|
layout: 'vertical',
|
||||||
|
colon: false,
|
||||||
|
labelAlign: 'left',
|
||||||
|
style: {
|
||||||
|
marginBottom: 24
|
||||||
|
}
|
||||||
|
},
|
||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
style: {
|
style: {
|
||||||
@ -143,6 +154,16 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: 'Jenkins作业',
|
title: 'Jenkins作业',
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
|
'x-decorator-props': {
|
||||||
|
labelCol: 24,
|
||||||
|
wrapperCol: 24,
|
||||||
|
layout: 'vertical',
|
||||||
|
colon: false,
|
||||||
|
labelAlign: 'left',
|
||||||
|
style: {
|
||||||
|
marginBottom: 24
|
||||||
|
}
|
||||||
|
},
|
||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
style: {
|
style: {
|
||||||
@ -164,31 +185,19 @@ 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}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Modal
|
<Modal
|
||||||
title={`部署配置`}
|
title="部署配置"
|
||||||
open={open}
|
open={open}
|
||||||
width={800}
|
onCancel={onCancel}
|
||||||
className="deployment-config-modal"
|
onOk={() => form.submit(onSuccess)}
|
||||||
maskClosable={false}
|
width={600}
|
||||||
destroyOnClose
|
|
||||||
style={{top: 50}}
|
|
||||||
styles={{
|
|
||||||
body: {
|
|
||||||
height: 'calc(100vh - 250px)',
|
|
||||||
overflowY: 'auto',
|
|
||||||
padding: '24px'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<FormProvider form={form}>
|
<FormProvider form={form}>
|
||||||
<SchemaField schema={schema} scope={{useAsyncDataSource}}/>
|
<SchemaField schema={schema}/>
|
||||||
|
|
||||||
</FormProvider>
|
</FormProvider>
|
||||||
</Modal>
|
</Modal>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user