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

解决数据库连接配置MongDB添加连接分片群失效问题

parent 0313c91d
Pipeline #37712 passed with stages
in 24 minutes 17 seconds
...@@ -147,13 +147,13 @@ const ManagementDataBase = () => { ...@@ -147,13 +147,13 @@ const ManagementDataBase = () => {
notification.success({ notification.success({
message: '通知', message: '通知',
duration: 3, duration: 3,
description: res.message, description: '修复成功',
}); });
} else { } else {
notification.error({ notification.error({
message: '通知', message: '通知',
duration: 15, duration: 15,
description: res.message, description: res.msg,
}); });
} }
}) })
......
...@@ -81,6 +81,13 @@ const AddModal = props => { ...@@ -81,6 +81,13 @@ const AddModal = props => {
}; };
const onFinish = value => {}; const onFinish = value => {};
const handleSelect = e => { const handleSelect = e => {
console.log(e)
if(e == '单实例'){
form.setFieldsValue({port:27017})
}
if(e == '分片群'){
form.setFieldsValue({port:30000})
}
e === '复制集' ? setShowReplicaSet(true) : setShowReplicaSet(false); e === '复制集' ? setShowReplicaSet(true) : setShowReplicaSet(false);
}; };
useEffect(() => { useEffect(() => {
......
...@@ -129,7 +129,7 @@ const AddModal = props => { ...@@ -129,7 +129,7 @@ const AddModal = props => {
if((inputValue.Roles=='')&&(inputValue.Reportable!='否')){ if((inputValue.Roles=='')&&(inputValue.Reportable!='否')){
notification.warning({ notification.warning({
message: '提示', message: '提示',
description: '当允许客户端上报时,须填写角色权限', description: '当允许客户端上报时,须填写事件权限',
}); });
}else{ }else{
if (type == 'edit') { if (type == 'edit') {
...@@ -468,7 +468,7 @@ const AddModal = props => { ...@@ -468,7 +468,7 @@ const AddModal = props => {
if (bb == 1) { if (bb == 1) {
notification.error({ notification.error({
message: '提示', message: '提示',
description: '权限角色部门必须都选至少一项', description: '部门站点角色必须都选至少一项',
}); });
} else { } else {
setIsVisible(false) setIsVisible(false)
......
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