Commit 1d3a48f0 by Heechul Kim

Added group select feature in app play

parent ef5256cd
Showing with 7 additions and 7 deletions
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<input <input
type="checkbox" type="checkbox"
@click="toggle" @click="toggle"
v-model="groupSelected" ref="section"
v-bind:value="section" v-bind:value="section"
> >
그룹 {{ section }} 그룹 {{ section }}
...@@ -193,19 +193,19 @@ export default { ...@@ -193,19 +193,19 @@ export default {
this.$router.push('/log/' + response.body) this.$router.push('/log/' + response.body)
}, response => { }, response => {
Toast.create.negative('서버 애플리케이션 배포 실패') Toast.create.negative('서버 애플리케이션 배포 실패')
return
}) })
}, },
toggle: function () { toggle: function () {
let selected = [] let selected = []
console.log(this.groupSelected) let self = this
if (this.groupSelected) { this.$refs.section.forEach(function (a) {
this.machines.forEach(function (machine) { if (a.checked) {
selected.push(machine) self.sections[a.value].forEach(function (machine) {
selected.push(machine['ip'])
}) })
} }
})
this.form.machines = selected this.form.machines = selected
console.log(selected)
}, },
radioVal: function () { radioVal: function () {
// get tags when app is selected. // 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