Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
HuangJunbo
antSword
Commits
38615ed8
Commit
38615ed8
authored
Jul 04, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimized code
优化代码
parent
65df7fcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
form.js
source/modules/shellmanager/list/form.js
+20
-12
No files found.
source/modules/shellmanager/list/form.js
View file @
38615ed8
...
...
@@ -287,17 +287,25 @@ class Form {
},
{
type
:
"label"
,
label
:
'请求超时'
},
{
type
:
"combo"
,
label
:
'/ms'
,
inputWidth
:
100
,
name
:
"request-timeout"
,
readonly
:
true
,
options
:
[
{
text
:
"5000"
,
value
:
"5000"
,
selected
:
opt
[
'request-timeout'
]
===
'5000'
},
{
text
:
"10000"
,
value
:
"10000"
,
selected
:
opt
[
'request-timeout'
]
===
'10000'
},
{
text
:
"30000"
,
value
:
"30000"
,
selected
:
opt
[
'request-timeout'
]
===
'30000'
},
{
text
:
"60000"
,
value
:
"60000"
,
selected
:
opt
[
'request-timeout'
]
===
'60000'
}
]},
{
type
:
"combo"
,
label
:
'/ms'
,
inputWidth
:
100
,
name
:
"request-timeout"
,
options
:
((
items
)
=>
{
let
ret
=
[];
// 如果自定义的路径不在items里,则++
if
(
items
.
indexOf
(
opt
[
'request-timeout'
])
===
-
1
)
{
items
.
unshift
(
opt
[
'request-timeout'
]);
}
items
.
map
((
_
)
=>
{
ret
.
push
({
text
:
_
,
value
:
_
,
selected
:
opt
[
'command-path'
]
===
_
})
});
return
ret
;
})([
'5000'
,
'10000'
,
'30000'
,
'60000'
])
},
{
type
:
'label'
,
label
:
'自定义终端执行路径'
},
{
type
:
'combo'
,
name
:
'command-path'
,
inputWidth
:
200
,
options
:
((
items
)
=>
{
...
...
@@ -316,7 +324,7 @@ class Form {
return
ret
;
})([
'/bin/sh'
,
'c
:
\\
windows
\\
system32
\\
cmd.exe
'
'c
md
'
])
}
]}],
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