wjx 1 月之前
父节点
当前提交
ee788f7eef
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/pages/iaaSystem/manage/application/modalApp.tsx

+ 3 - 2
src/pages/iaaSystem/manage/application/modalApp.tsx

@@ -108,7 +108,7 @@ const ModalApp: React.FC<Props> = ({ appAllList, userList, apptypeEnum, onChange
                     {(fields, { add, remove }) => {
                         return <>
                             {fields.map(({ key, name, ...restField }) => (
-                                <Space key={key} style={{ display: 'flex', marginBottom: 8, width: '100%' }} align="center">
+                                <Space key={key} style={{ display: 'flex', marginBottom: 8, width: '100%' }} align="start">
                                     <Form.Item
                                         {...restField}
                                         label={<strong>应用类型</strong>}
@@ -129,7 +129,7 @@ const ModalApp: React.FC<Props> = ({ appAllList, userList, apptypeEnum, onChange
                                     <Form.Item
                                         {...restField}
                                         label={<strong>应用</strong>}
-                                        name={[name, 'iaaAppId']}
+                                        name={[name, 'iaaAppIdList']}
                                         rules={[{ required: true, message: '请选选择应用' }]}
                                     >
                                         <Select
@@ -137,6 +137,7 @@ const ModalApp: React.FC<Props> = ({ appAllList, userList, apptypeEnum, onChange
                                             showSearch
                                             allowClear
                                             placeholder="选择应用"
+                                            mode="multiple"
                                             filterOption={(input, option) =>
                                                 (option?.label as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
                                             }