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