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
d9f91cbb
Commit
d9f91cbb
authored
Nov 12, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决数据库连接配置MongDB添加连接分片群失效问题
parent
0313c91d
Pipeline
#37712
passed with stages
in 24 minutes 17 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
ManagementDataBase.jsx
src/pages/database/ManagementDataBase.jsx
+2
-2
AddModal.jsx
src/pages/database/databaseConfig/mongDB/AddModal.jsx
+7
-0
AddModal.jsx
src/pages/platformCenter/bsmanager/workOrder/AddModal.jsx
+2
-2
No files found.
src/pages/database/ManagementDataBase.jsx
View file @
d9f91cbb
...
...
@@ -147,13 +147,13 @@ const ManagementDataBase = () => {
notification
.
success
({
message
:
'通知'
,
duration
:
3
,
description
:
res
.
message
,
description
:
'修复成功'
,
});
}
else
{
notification
.
error
({
message
:
'通知'
,
duration
:
15
,
description
:
res
.
m
essage
,
description
:
res
.
m
sg
,
});
}
})
...
...
src/pages/database/databaseConfig/mongDB/AddModal.jsx
View file @
d9f91cbb
...
...
@@ -81,6 +81,13 @@ const AddModal = props => {
};
const
onFinish
=
value
=>
{};
const
handleSelect
=
e
=>
{
console
.
log
(
e
)
if
(
e
==
'单实例'
){
form
.
setFieldsValue
({
port
:
27017
})
}
if
(
e
==
'分片群'
){
form
.
setFieldsValue
({
port
:
30000
})
}
e
===
'复制集'
?
setShowReplicaSet
(
true
)
:
setShowReplicaSet
(
false
);
};
useEffect
(()
=>
{
...
...
src/pages/platformCenter/bsmanager/workOrder/AddModal.jsx
View file @
d9f91cbb
...
...
@@ -129,7 +129,7 @@ const AddModal = props => {
if
((
inputValue
.
Roles
==
''
)
&&
(
inputValue
.
Reportable
!=
'否'
)){
notification
.
warning
({
message
:
'提示'
,
description
:
'当允许客户端上报时,须填写
角色
权限'
,
description
:
'当允许客户端上报时,须填写
事件
权限'
,
});
}
else
{
if
(
type
==
'edit'
)
{
...
...
@@ -468,7 +468,7 @@ const AddModal = props => {
if
(
bb
==
1
)
{
notification
.
error
({
message
:
'提示'
,
description
:
'
权限角色部门
必须都选至少一项'
,
description
:
'
部门站点角色
必须都选至少一项'
,
});
}
else
{
setIsVisible
(
false
)
...
...
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