Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
bf10662d
Commit
bf10662d
authored
Oct 29, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库mongodb添加功能失效解决
parent
7880e6f8
Pipeline
#36866
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
AddModal.jsx
src/pages/database/databaseConfig/mongDB/AddModal.jsx
+1
-2
AddUserModal.jsx
src/pages/userCenter/userManage/AddUserModal.jsx
+3
-0
No files found.
src/pages/database/databaseConfig/mongDB/AddModal.jsx
View file @
bf10662d
...
@@ -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=
"
t
ype"
name=
"
MongoDbT
ype"
rules=
{
[{
required
:
true
,
message
:
'请选择实例类型'
}]
}
rules=
{
[{
required
:
true
,
message
:
'请选择实例类型'
}]
}
>
>
<
Select
onChange=
{
e
=>
handleSelect
(
e
)
}
>
<
Select
onChange=
{
e
=>
handleSelect
(
e
)
}
>
...
...
src/pages/userCenter/userManage/AddUserModal.jsx
View file @
bf10662d
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment