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
ec58374f
Commit
ec58374f
authored
Mar 02, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化文案
parent
fa976fcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
mainconfiguration.vue
src/pages/mainconfiguration/mainconfiguration.vue
+23
-3
No files found.
src/pages/mainconfiguration/mainconfiguration.vue
View file @
ec58374f
...
...
@@ -119,7 +119,7 @@
<Input
v-model=
"ipsetName"
type=
"text"
placeholder=
"请输入名称"
style=
"width: 70%"
/>
</FormItem>
<FormItem
prop=
"alladdcontent"
label=
"列表:"
>
<Input
v-model=
"ipsetContent"
type=
"text"
placeholder=
"请输入
名称
"
style=
"width: 70%"
/>
<Input
v-model=
"ipsetContent"
type=
"text"
placeholder=
"请输入"
style=
"width: 70%"
/>
</FormItem>
</Form>
<div
class=
"alladdbtn"
>
...
...
@@ -130,7 +130,7 @@
<Modal
v-model=
"addUrlIpsetModal"
:mask-closable =
'false'
:footer-hide=
'true'
>
<Form
ref=
"formInline"
:model=
"formInline"
:rules=
"ruleInline"
style=
"margin-top:20px"
:label-width=
"80"
>
<FormItem
prop=
"alladdcontent"
label=
"路径:"
>
<Input
v-model=
"urlIpsetPath"
type=
"text"
placeholder=
"请输入
名称
"
style=
"width: 70%"
/>
<Input
v-model=
"urlIpsetPath"
type=
"text"
placeholder=
"请输入"
style=
"width: 70%"
/>
</FormItem>
<FormItem
prop=
"alladdcontent"
label=
"集合:"
>
<Select
v-model=
"urlIpsetName"
style=
"width:70%"
@
on-change=
"selectserver"
>
...
...
@@ -1609,7 +1609,7 @@ export default {
let
arr
=
(
data
&&
data
.
body
)
||
[];
arr
=
arr
.
filter
((
x
,
index
,
self
)
=>
self
.
indexOf
(
x
)
===
index
)
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
)
})
...
...
@@ -1635,6 +1635,26 @@ export default {
});
return
}
// console.log(this.ipsetContent, typeof(this.ipsetContent))
// 判断是否有【】
// let reg = /\[\]/g
// // 判断是否是IP字段
// // let re=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/
// // if (!re.test(this.ipsetContent)) {
// // this.$Notice.error({
// // title: '提示',
// // desc: ' 输入格式不正确',
// // });
// // return
// // }
// console.log(!reg.test(this.ipsetContent), 999)
// if (!reg.test(this.ipsetContent)) {
// this.$Notice.error({
// title: '提示',
// desc: ' 输入格式不正确',
// });
// return
// }
let
keys
=
this
.
ipsetData
.
some
(
item
=>
{
return
item
.
name
===
this
.
ipsetName
})
...
...
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