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
30fab710
Commit
30fab710
authored
Mar 02, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Err-tag限制
parent
bc1f2636
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
mainconfiguration.vue
src/pages/mainconfiguration/mainconfiguration.vue
+10
-6
No files found.
src/pages/mainconfiguration/mainconfiguration.vue
View file @
30fab710
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
<Input
v-model=
"urlIpsetPath"
type=
"text"
placeholder=
"请输入"
style=
"width: 70%"
/>
<Input
v-model=
"urlIpsetPath"
type=
"text"
placeholder=
"请输入"
style=
"width: 70%"
/>
</FormItem>
</FormItem>
<FormItem
prop=
"alladdcontent"
label=
"集合:"
>
<FormItem
prop=
"alladdcontent"
label=
"集合:"
>
<Select
v-model=
"urlIpsetName"
style=
"width:70%"
@
on-change=
"selectserver"
>
<Select
v-model=
"urlIpsetName"
style=
"width:70%"
>
<Option
v-for=
"item in ipsetList"
:value=
"item"
:key=
"item"
>
{{
item
}}
</Option>
<Option
v-for=
"item in ipsetList"
:value=
"item"
:key=
"item"
>
{{
item
}}
</Option>
</Select>
</Select>
</FormItem>
</FormItem>
...
@@ -163,12 +163,12 @@
...
@@ -163,12 +163,12 @@
<Modal
v-model=
"addSpecifiedModal"
:mask-closable =
'false'
:footer-hide=
'true'
>
<Modal
v-model=
"addSpecifiedModal"
: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=
"类型:"
>
<Select
v-model=
"err_type"
style=
"width:70%"
@
on-change=
"
selectserver
"
>
<Select
v-model=
"err_type"
style=
"width:70%"
@
on-change=
"
changeType
"
>
<Option
v-for=
"(item, index) in typeList"
:value=
"item.value"
:key=
"index"
>
{{
item
.
value
}}
</Option>
<Option
v-for=
"(item, index) in typeList"
:value=
"item.value"
:key=
"index"
>
{{
item
.
value
}}
</Option>
</Select>
</Select>
</FormItem>
</FormItem>
<FormItem
prop=
"alladdcontent"
label=
"标签:"
>
<FormItem
prop=
"alladdcontent"
label=
"标签:"
>
<Select
v-model=
"err_tag"
style=
"width:70%"
@
on-change=
"selectserver"
>
<Select
v-model=
"err_tag"
style=
"width:70%"
>
<Option
v-for=
"(item, index) in tageList"
:value=
"item"
:key=
"index"
>
{{
item
}}
</Option>
<Option
v-for=
"(item, index) in tageList"
:value=
"item"
:key=
"index"
>
{{
item
}}
</Option>
</Select>
</Select>
</FormItem>
</FormItem>
...
@@ -1646,8 +1646,6 @@ export default {
...
@@ -1646,8 +1646,6 @@ export default {
}
}
let
str
=
this
.
ipsetContent
.
replace
(
re
,
''
);
let
str
=
this
.
ipsetContent
.
replace
(
re
,
''
);
let
arr
=
str
.
split
(
'
,
'
)
let
arr
=
str
.
split
(
'
,
'
)
console
.
log
(
arr
,
888
)
console
.
log
(
this
.
ipsetContent
,
typeof
(
this
.
ipsetContent
))
// 判断是否是IP字段
// 判断是否是IP字段
let
test
=
arr
&&
arr
.
every
(
item
=>
{
let
test
=
arr
&&
arr
.
every
(
item
=>
{
let
reg
=
/^
(\d
+
)\.(\d
+
)\.(\d
+
)\.(\d
+
)
$/
let
reg
=
/^
(\d
+
)\.(\d
+
)\.(\d
+
)\.(\d
+
)
$/
...
@@ -1836,6 +1834,13 @@ export default {
...
@@ -1836,6 +1834,13 @@ export default {
this
.
tageList
=
(
data
&&
data
.
body
)
||
[]
this
.
tageList
=
(
data
&&
data
.
body
)
||
[]
})
})
},
},
changeType
(
data
)
{
if
(
data
===
'
proxy
'
)
{
this
.
tageList
=
[
'
timeout
'
,
'
other
'
]
}
else
{
this
.
getType
()
}
},
modify
()
{
modify
()
{
this
.
updataOrigenContent
=
this
.
origenContent
;
this
.
updataOrigenContent
=
this
.
origenContent
;
this
.
modifyModal
=
true
;
this
.
modifyModal
=
true
;
...
@@ -1859,7 +1864,6 @@ export default {
...
@@ -1859,7 +1864,6 @@ export default {
this
.
getkeytext
(
'
url_auth_list
'
)
this
.
getkeytext
(
'
url_auth_list
'
)
this
.
getconfigurlist
(
'
url_auth_list
'
,
this
.
server
)
this
.
getconfigurlist
(
'
url_auth_list
'
,
this
.
server
)
this
.
getnodeList
()
this
.
getnodeList
()
this
.
getType
()
},
},
destroyed
()
{
destroyed
()
{
}
}
...
...
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