Commit 1d3a48f0 by Heechul Kim

Added group select feature in app play

parent ef5256cd
Showing with 9 additions and 9 deletions
......@@ -68,7 +68,7 @@
<input
type="checkbox"
@click="toggle"
v-model="groupSelected"
ref="section"
v-bind:value="section"
>
그룹 {{ section }}
......@@ -193,19 +193,19 @@ export default {
this.$router.push('/log/' + response.body)
}, response => {
Toast.create.negative('서버 애플리케이션 배포 실패')
return
})
},
toggle: function () {
let selected = []
console.log(this.groupSelected)
if (this.groupSelected) {
this.machines.forEach(function (machine) {
selected.push(machine)
})
}
let self = this
this.$refs.section.forEach(function (a) {
if (a.checked) {
self.sections[a.value].forEach(function (machine) {
selected.push(machine['ip'])
})
}
})
this.form.machines = selected
console.log(selected)
},
radioVal: function () {
// get tags when app is selected.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment