Commit 08cb9fd7 by Heechul Kim

added group select

parent 1d3a48f0
......@@ -39,7 +39,7 @@
exact
replace
@click="trigger()"
>그룹
>서버그룹
</q-tab>
<q-tab
v-if="this.$store.state.login"
......@@ -57,7 +57,7 @@
exact
replace
@click="trigger()"
>애플리케이션
>APP
</q-tab>
<q-tab
v-if="this.$store.state.login && this.$store.state.role === 'admin'"
......@@ -123,7 +123,7 @@ export default {
name: 'app',
data () {
return {
porchVersion: '0.0.1',
porchVersion: '1.0',
intervalRefresh: [],
position: 'bottom',
reverse: false,
......
......@@ -193,7 +193,6 @@ export default {
this.$router.push('/log/file/' + response.body)
}, response => {
Toast.create.negative('서버 파일 배포 실패')
return
})
},
toggle: function () {
......
......@@ -433,11 +433,9 @@ export default {
// Validate data
if (!data.mac) {
Toast.create.negative('MAC 주소는 필수 입력 항목입니다.')
return
}
else if (!data.ip) {
Toast.create.negative('IP 주소는 필수 입력 항목입니다.')
return
}
else { // all validated. submit it.
const url = API_URL + `/machine/${row.name}`
......
......@@ -45,7 +45,7 @@
<div ref="machine-tab">
<div class="card">
<div class="card-title">
<input type="checkbox" @click="toggle" v-model="allSelected">
<input type="checkbox" @click="toggle">
선택 OS: {{ this.form.os }}
</div>
<div class="card-content">
......@@ -138,6 +138,7 @@ export default {
},
toggle: function () {
let selected = []
this.allSelected = !this.allSelected
if (this.allSelected) {
this.machines.forEach(function (machine) {
selected.push(machine)
......@@ -186,7 +187,6 @@ export default {
})
}, response => {
Toast.create.negative('서버 정보 수신 실패')
return
})
},
getSupportedOS: function () {
......
......@@ -126,7 +126,6 @@ export default {
if (data.cn.length < 4) {
let err = '일반명은 4글자 이상이어야 합니다.'
Toast.create.negative(err)
return
}
else { // all validated. submit it.
const url = API_URL + `/section/${row.name}`
......
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