Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
ad9cd859
Commit
ad9cd859
authored
Nov 26, 2019
by
zhanghouying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改判定是否有记录被选定的方法,更严谨一些
parent
0351b727
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/views/mnt/deploy/index.vue
+6
-5
No files found.
src/views/mnt/deploy/index.vue
View file @
ad9cd859
...
@@ -178,6 +178,7 @@ export default {
...
@@ -178,6 +178,7 @@ export default {
methods
:
{
methods
:
{
beforeInit
()
{
beforeInit
()
{
this
.
url
=
'api/deploy'
this
.
url
=
'api/deploy'
this
.
selectIndex
=
''
return
true
return
true
},
},
// 打开新增弹窗前做的操作
// 打开新增弹窗前做的操作
...
@@ -204,7 +205,7 @@ export default {
...
@@ -204,7 +205,7 @@ export default {
return
true
return
true
},
},
deploy
()
{
deploy
()
{
if
(
this
.
selectIndex
===
''
)
{
if
(
!
this
.
selectIndex
)
{
this
.
$message
.
error
(
'请先选择服务'
)
this
.
$message
.
error
(
'请先选择服务'
)
}
else
{
}
else
{
this
.
$refs
.
deploy
.
dialog
=
true
this
.
$refs
.
deploy
.
dialog
=
true
...
@@ -212,7 +213,7 @@ export default {
...
@@ -212,7 +213,7 @@ export default {
}
}
},
},
sysRestore
()
{
sysRestore
()
{
if
(
this
.
selectIndex
===
''
)
{
if
(
!
this
.
selectIndex
)
{
this
.
$message
.
error
(
'请先选择服务'
)
this
.
$message
.
error
(
'请先选择服务'
)
}
else
{
}
else
{
this
.
$refs
.
sysRestore
.
dialog
=
true
this
.
$refs
.
sysRestore
.
dialog
=
true
...
@@ -227,7 +228,7 @@ export default {
...
@@ -227,7 +228,7 @@ export default {
this
.
deployId
=
!
row
?
null
:
row
.
id
this
.
deployId
=
!
row
?
null
:
row
.
id
},
},
startServer
()
{
startServer
()
{
if
(
this
.
selectIndex
===
''
)
{
if
(
!
this
.
selectIndex
)
{
this
.
$message
.
error
(
'请先选择服务'
)
this
.
$message
.
error
(
'请先选择服务'
)
}
else
{
}
else
{
this
.
crudMethod
.
startServer
(
JSON
.
stringify
(
this
.
currentRow
))
this
.
crudMethod
.
startServer
(
JSON
.
stringify
(
this
.
currentRow
))
...
@@ -239,7 +240,7 @@ export default {
...
@@ -239,7 +240,7 @@ export default {
}
}
},
},
stopServer
()
{
stopServer
()
{
if
(
this
.
selectIndex
===
''
)
{
if
(
!
this
.
selectIndex
)
{
this
.
$message
.
error
(
'请先选择服务'
)
this
.
$message
.
error
(
'请先选择服务'
)
}
else
{
}
else
{
this
.
crudMethod
.
stopServer
(
JSON
.
stringify
(
this
.
currentRow
))
this
.
crudMethod
.
stopServer
(
JSON
.
stringify
(
this
.
currentRow
))
...
@@ -251,7 +252,7 @@ export default {
...
@@ -251,7 +252,7 @@ export default {
}
}
},
},
serverStatus
()
{
serverStatus
()
{
if
(
this
.
selectIndex
===
''
)
{
if
(
!
this
.
selectIndex
)
{
this
.
$message
.
error
(
'请先选择服务'
)
this
.
$message
.
error
(
'请先选择服务'
)
}
else
{
}
else
{
this
.
crudMethod
.
serverStatus
(
JSON
.
stringify
(
this
.
currentRow
))
this
.
crudMethod
.
serverStatus
(
JSON
.
stringify
(
this
.
currentRow
))
...
...
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