Commit 08cb9fd7 by Heechul Kim

added group select

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