Commit bf10662d authored by 皮倩雯's avatar 皮倩雯

数据库mongodb添加功能失效解决

parent 7880e6f8
Pipeline #36866 skipped with stages
...@@ -21,7 +21,6 @@ const AddModal = props => { ...@@ -21,7 +21,6 @@ const AddModal = props => {
if (type === 'add') { if (type === 'add') {
AddConnString({ AddConnString({
Type:'mongodb', Type:'mongodb',
MongoDbType:'mongodb',
...obj, ...obj,
}) })
.then(res => { .then(res => {
...@@ -149,7 +148,7 @@ const AddModal = props => { ...@@ -149,7 +148,7 @@ const AddModal = props => {
<Form form={form} {...layout} onFinish={onFinish}> <Form form={form} {...layout} onFinish={onFinish}>
<Item <Item
label="实例类型" label="实例类型"
name="type" name="MongoDbType"
rules={[{ required: true, message: '请选择实例类型' }]} rules={[{ required: true, message: '请选择实例类型' }]}
> >
<Select onChange={e => handleSelect(e)}> <Select onChange={e => handleSelect(e)}>
......
...@@ -103,6 +103,7 @@ const AddUserModal = props => { ...@@ -103,6 +103,7 @@ const AddUserModal = props => {
cancelText="取消" cancelText="取消"
> >
<Form form={addUserForm} labelCol={{ span: 4 }}> <Form form={addUserForm} labelCol={{ span: 4 }}>
<span style={{position: 'absolute', left: '1%', top: '21%', color: 'red', fontSize: '16px'}}>*</span>
<Form.Item <Form.Item
hasFeedback hasFeedback
name="loginName" name="loginName"
...@@ -117,6 +118,7 @@ const AddUserModal = props => { ...@@ -117,6 +118,7 @@ const AddUserModal = props => {
> >
<Input placeholder="登录名称不支持中文" /> <Input placeholder="登录名称不支持中文" />
</Form.Item> </Form.Item>
<span style={{position: 'absolute', left: '1%', top: '35%', color: 'red', fontSize: '16px'}}>*</span>
<Form.Item <Form.Item
hasFeedback hasFeedback
name="password" name="password"
...@@ -134,6 +136,7 @@ const AddUserModal = props => { ...@@ -134,6 +136,7 @@ const AddUserModal = props => {
> >
<Input placeholder="请输入账户密码,至少6位" /> <Input placeholder="请输入账户密码,至少6位" />
</Form.Item> </Form.Item>
<span style={{position: 'absolute', left: '1%', top: '49%', color: 'red', fontSize: '16px'}}>*</span>
<Form.Item <Form.Item
hasFeedback hasFeedback
name="userName" name="userName"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment