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
1dbbe948
Commit
1dbbe948
authored
Feb 28, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加限制输入条件
parent
3ee39c22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
mainconfiguration.vue
src/pages/mainconfiguration/mainconfiguration.vue
+23
-2
No files found.
src/pages/mainconfiguration/mainconfiguration.vue
View file @
1dbbe948
...
@@ -1628,6 +1628,13 @@ export default {
...
@@ -1628,6 +1628,13 @@ export default {
this
.
addSpecifiedModal
=
true
;
this
.
addSpecifiedModal
=
true
;
},
},
confireIpset
()
{
confireIpset
()
{
if
(
!
this
.
ipsetName
||
!
this
.
ipsetContent
)
{
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
请输入完整信息
'
,
});
return
}
let
keys
=
this
.
ipsetData
.
some
(
item
=>
{
let
keys
=
this
.
ipsetData
.
some
(
item
=>
{
return
item
.
name
===
this
.
ipsetName
return
item
.
name
===
this
.
ipsetName
})
})
...
@@ -1657,6 +1664,13 @@ export default {
...
@@ -1657,6 +1664,13 @@ export default {
this
.
origenselectserver
=
this
.
server
this
.
origenselectserver
=
this
.
server
},
},
confireUrlSet
()
{
confireUrlSet
()
{
if
(
!
this
.
urlIpsetPath
||
!
this
.
urlIpsetName
)
{
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
请输入完整信息
'
,
});
return
}
let
keys
=
this
.
urlIpSetData
.
some
(
item
=>
{
let
keys
=
this
.
urlIpSetData
.
some
(
item
=>
{
return
item
.
ip_set_name
===
this
.
urlIpsetName
return
item
.
ip_set_name
===
this
.
urlIpsetName
})
})
...
@@ -1686,10 +1700,10 @@ export default {
...
@@ -1686,10 +1700,10 @@ export default {
this
.
origenselectserver
=
this
.
server
this
.
origenselectserver
=
this
.
server
},
},
confireLimit
()
{
confireLimit
()
{
if
(
this
.
limitRate
===
''
||
this
.
limitTime
===
''
)
{
if
(
!
this
.
limitPath
||
!
this
.
limitRate
||
!
this
.
limitTime
)
{
this
.
$Notice
.
error
({
this
.
$Notice
.
error
({
title
:
'
提示
'
,
title
:
'
提示
'
,
desc
:
'
请输入
速率及时间
'
,
desc
:
'
请输入
完整信息
'
,
});
});
return
return
}
}
...
@@ -1731,6 +1745,13 @@ export default {
...
@@ -1731,6 +1745,13 @@ export default {
this
.
origenselectserver
=
this
.
server
this
.
origenselectserver
=
this
.
server
},
},
confireSpecified
()
{
confireSpecified
()
{
if
(
!
this
.
header
||
!
this
.
body
||
!
this
.
err_type
||
!
this
.
err_tag
)
{
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
请输入完整信息
'
,
});
return
}
let
keys
=
this
.
specifiedData
.
some
(
item
=>
{
let
keys
=
this
.
specifiedData
.
some
(
item
=>
{
return
item
.
err_type
===
this
.
err_type
&&
item
.
err_tag
===
this
.
err_tag
return
item
.
err_type
===
this
.
err_type
&&
item
.
err_tag
===
this
.
err_tag
})
})
...
...
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