Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gateway-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
gateway-ui
Commits
0183bdf0
Commit
0183bdf0
authored
Mar 04, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ip名称不可修改
parent
35433197
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
mainconfiguration.vue
src/pages/mainconfiguration/mainconfiguration.vue
+14
-12
No files found.
src/pages/mainconfiguration/mainconfiguration.vue
View file @
0183bdf0
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<Modal
v-model=
"addIpsetModal"
:mask-closable =
'false'
:footer-hide=
'true'
>
<Modal
v-model=
"addIpsetModal"
:mask-closable =
'false'
:footer-hide=
'true'
>
<Form
ref=
"formInline"
:model=
"formInline"
:rules=
"ruleInline"
style=
"margin-top:20px"
:label-width=
"80"
>
<Form
ref=
"formInline"
:model=
"formInline"
:rules=
"ruleInline"
style=
"margin-top:20px"
:label-width=
"80"
>
<FormItem
prop=
"alladdcontent"
label=
"名称:"
>
<FormItem
prop=
"alladdcontent"
label=
"名称:"
>
<Input
v-model=
"ipsetName"
type=
"text"
placeholder=
"请输入名称"
style=
"width: 70%"
/>
<Input
v-model=
"ipsetName"
type=
"text"
placeholder=
"请输入名称"
:disabled=
"updataIpsetSta"
style=
"width: 70%"
/>
</FormItem>
</FormItem>
<FormItem
prop=
"alladdcontent"
label=
"列表:"
>
<FormItem
prop=
"alladdcontent"
label=
"列表:"
>
<Input
v-model=
"ipsetContent"
type=
"text"
placeholder=
"请输入"
style=
"width: 70%"
/>
<Input
v-model=
"ipsetContent"
type=
"text"
placeholder=
"请输入"
style=
"width: 70%"
/>
...
@@ -447,7 +447,7 @@ export default {
...
@@ -447,7 +447,7 @@ export default {
h
(
'
Button
'
,
{
h
(
'
Button
'
,
{
props
:
{
props
:
{
type
:
'
primary
'
,
type
:
'
primary
'
,
size
:
'
small
'
size
:
'
small
'
,
},
},
style
:
{
style
:
{
marginRight
:
'
10px
'
marginRight
:
'
10px
'
...
@@ -1556,31 +1556,33 @@ export default {
...
@@ -1556,31 +1556,33 @@ export default {
this
.
ipsetName
=
''
;
this
.
ipsetName
=
''
;
this
.
ipsetContent
=
''
;
this
.
ipsetContent
=
''
;
this
.
addIpsetModal
=
true
;
this
.
addIpsetModal
=
true
;
this
.
updataIpsetSta
=
false
;
},
},
updateIpset
(
data
)
{
updateIpset
(
data
)
{
this
.
updataIpsetSta
=
true
;
this
.
updataIpsetSta
=
true
;
this
.
updateconfigindex
=
data
.
_index
;
this
.
updateconfigindex
=
data
.
_index
;
this
.
ipsetName
=
data
.
name
;
this
.
ipsetName
=
data
.
name
;
this
.
ipsetContent
=
JSON
.
stringify
(
data
.
ip_list
);
this
.
ipsetContent
=
JSON
.
stringify
(
data
.
ip_list
);
this
.
addIpsetModal
=
true
this
.
addIpsetModal
=
true
;
},
},
updateUrlIpset
(
data
)
{
updateUrlIpset
(
data
)
{
this
.
updataUrlSta
=
true
;
this
.
updataUrlSta
=
true
;
this
.
updateconfigindex
=
data
.
_index
;
this
.
urlIpsetName
=
data
.
ip_set_name
;
this
.
urlIpsetPath
=
data
.
path
;
this
.
addUrlIpsetModal
=
true
let
list
=
{
let
list
=
{
key
:
'
url_
ip_set_v2
'
,
key
:
'
ip_set_v2
'
,
service_name
:
this
.
server
service_name
:
this
.
server
}
}
;
getconfigurelist
(
list
).
then
(
data
=>
{
getconfigurelist
(
list
).
then
(
data
=>
{
let
arr
=
(
data
&&
data
.
body
)
||
[];
let
arr
=
(
data
&&
data
.
body
)
||
[];
arr
=
arr
.
filter
((
x
,
index
,
self
)
=>
self
.
indexOf
(
x
)
===
index
)
arr
.
map
(
item
=>
{
arr
.
map
(
item
=>
{
this
.
ipsetList
.
push
(
item
.
ip_set_name
)
this
.
ipsetList
.
push
(
item
.
name
)
})
this
.
ipsetList
=
this
.
ipsetList
.
filter
((
x
,
index
,
self
)
=>
self
.
indexOf
(
x
)
===
index
)
})
})
this
.
ipsetList
=
this
.
ipsetList
.
filter
((
x
,
index
,
self
)
=>
self
.
indexOf
(
x
)
===
index
)
});
this
.
updateconfigindex
=
data
.
_index
;
this
.
urlIpsetName
=
data
.
ip_set_name
;
this
.
urlIpsetPath
=
data
.
path
;
this
.
addUrlIpsetModal
=
true
;
},
},
updateLimit
(
data
)
{
updateLimit
(
data
)
{
this
.
updataLimitSta
=
true
;
this
.
updataLimitSta
=
true
;
...
...
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