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
de445182
Commit
de445182
authored
2 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '宿主管理配置优化'
parent
b9b5b7ef
Pipeline
#67136
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
AddModal.jsx
src/pages/platformCenter/hostmanager/gateWay/AddModal.jsx
+7
-2
gateWay.jsx
src/pages/platformCenter/hostmanager/gateWay/gateWay.jsx
+2
-0
No files found.
src/pages/platformCenter/hostmanager/gateWay/AddModal.jsx
View file @
de445182
...
...
@@ -229,10 +229,15 @@ const AddModal = props => {
{
validator
:
(
rule
,
value
)
=>
{
let
aa
=
form
.
getFieldValue
().
UpstreamPathTemplate
;
console
.
log
(
aa
.
startsWith
(
'/'
));
console
.
log
(
aa
);
console
.
log
(
aa
.
indexOf
(
'/PandaCore/GateWay'
));
if
(
!
aa
.
startsWith
(
'/'
))
{
return
Promise
.
reject
(
'必须以/开头'
);
}
if
(
aa
.
indexOf
(
'/PandaCore/GateWay'
)
!=
-
1
)
{
return
Promise
.
reject
(
'无需添加/PandaCore/GateWay'
);
}
return
Promise
.
resolve
();
},
},
...
...
@@ -245,7 +250,7 @@ const AddModal = props => {
<
Input
allowClear
style=
{
{
width
:
'100%'
}
}
placeholder=
"示例:/
PandaOMS/PandaOMS
/{url}"
placeholder=
"示例:/
CivData
/{url}"
disabled=
{
hidden
}
/>
</
Item
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/hostmanager/gateWay/gateWay.jsx
View file @
de445182
...
...
@@ -383,6 +383,7 @@ const GateConfig = () => {
<
Tooltip
title=
"编辑"
>
<
EditTwoTone
onClick=
{
()
=>
edit
(
record
)
}
style=
{
{
fontSize
:
'16px'
}
}
/>
</
Tooltip
>
{
record
.
key
!=
'IOT'
&&
record
.
key
!=
'CivData'
&&
record
.
key
!=
'GIS'
&&
(
<
Tooltip
title=
"删除"
>
<
Popconfirm
placement=
"bottomRight"
...
...
@@ -399,6 +400,7 @@ const GateConfig = () => {
<
DeleteOutlined
style=
{
{
fontSize
:
'16px'
,
color
:
'#e86060'
}
}
/>
</
Popconfirm
>
</
Tooltip
>
)
}
</
Space
>
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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