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
3ee39c22
Commit
3ee39c22
authored
Feb 26, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制时间为0
parent
4f7a7c67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
mainconfiguration.vue
src/pages/mainconfiguration/mainconfiguration.vue
+21
-6
No files found.
src/pages/mainconfiguration/mainconfiguration.vue
View file @
3ee39c22
...
@@ -149,10 +149,10 @@
...
@@ -149,10 +149,10 @@
<Input
v-model=
"limitPath"
type=
"text"
placeholder=
"请输入路径"
style=
"width: 70%"
/>
<Input
v-model=
"limitPath"
type=
"text"
placeholder=
"请输入路径"
style=
"width: 70%"
/>
</FormItem>
</FormItem>
<FormItem
prop=
"alladdcontent"
label=
"单位时间:"
>
<FormItem
prop=
"alladdcontent"
label=
"单位时间:"
>
<Input
v-model=
"limitTime"
type=
"
text
"
placeholder=
"请输入单位时间"
style=
"width: 70%"
/>
<Input
v-model=
"limitTime"
type=
"
number
"
placeholder=
"请输入单位时间"
style=
"width: 70%"
/>
</FormItem>
</FormItem>
<FormItem
prop=
"alladdcontent"
label=
"速率:"
>
<FormItem
prop=
"alladdcontent"
label=
"速率:"
>
<Input
v-model=
"limitRate"
type=
"
text
"
placeholder=
"请输入速率"
style=
"width: 70%"
/>
<Input
v-model=
"limitRate"
type=
"
number
"
placeholder=
"请输入速率"
style=
"width: 70%"
/>
</FormItem>
</FormItem>
</Form>
</Form>
<div
class=
"alladdbtn"
>
<div
class=
"alladdbtn"
>
...
@@ -408,8 +408,8 @@ export default {
...
@@ -408,8 +408,8 @@ export default {
}
}
],
],
limitPath
:
''
,
limitPath
:
''
,
limitRate
:
null
,
limitRate
:
0
,
limitTime
:
null
,
limitTime
:
1
,
tageList
:
[],
tageList
:
[],
ipsetList
:
[],
ipsetList
:
[],
ipsetData
:
[],
ipsetData
:
[],
...
@@ -1029,6 +1029,7 @@ export default {
...
@@ -1029,6 +1029,7 @@ export default {
this
.
specifiedData
=
[]
this
.
specifiedData
=
[]
}
}
}
}
this
.
newIpsetData
=
[]
this
.
colorupdatacolor
=
true
this
.
colorupdatacolor
=
true
this
.
colorupdata
=
true
this
.
colorupdata
=
true
this
.
origenselectserver
=
this
.
server
this
.
origenselectserver
=
this
.
server
...
@@ -1615,8 +1616,8 @@ export default {
...
@@ -1615,8 +1616,8 @@ export default {
},
},
addLimit
()
{
addLimit
()
{
this
.
limitPath
=
''
;
this
.
limitPath
=
''
;
this
.
limitTime
=
null
;
this
.
limitTime
=
''
;
this
.
limitRate
=
null
;
this
.
limitRate
=
''
;
this
.
addLimitModal
=
true
;
this
.
addLimitModal
=
true
;
},
},
addSpecified
()
{
addSpecified
()
{
...
@@ -1685,6 +1686,20 @@ export default {
...
@@ -1685,6 +1686,20 @@ export default {
this
.
origenselectserver
=
this
.
server
this
.
origenselectserver
=
this
.
server
},
},
confireLimit
()
{
confireLimit
()
{
if
(
this
.
limitRate
===
''
||
this
.
limitTime
===
''
)
{
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
请输入速率及时间
'
,
});
return
}
if
(
this
.
limitTime
<=
0
)
{
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
时间不能为0
'
,
});
return
}
let
keys
=
this
.
urlIpSetData
.
some
(
item
=>
{
let
keys
=
this
.
urlIpSetData
.
some
(
item
=>
{
return
item
.
path
===
this
.
limitPath
return
item
.
path
===
this
.
limitPath
})
})
...
...
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