Compare commits
No commits in common. "6a89ba059beca34a5777e6f03453c7d1c42e6375" and "ff83041585031b7b35ea10b67c295da95274e193" have entirely different histories.
6a89ba059b
...
ff83041585
|
@ -1,17 +1,11 @@
|
|||
import Vue from 'vue';
|
||||
|
||||
async function sendPush(memberIds, title, message, isAuth) {
|
||||
const request = {
|
||||
async function sendPush(memberIds, title, message) {
|
||||
return Vue.axios.post('/push', {
|
||||
memberIds,
|
||||
title,
|
||||
message
|
||||
}
|
||||
|
||||
if (isAuth !== undefined && isAuth !== null && isAuth !== '') {
|
||||
request.isAuth = isAuth
|
||||
}
|
||||
|
||||
return Vue.axios.post('/push', request)
|
||||
})
|
||||
}
|
||||
|
||||
export { sendPush }
|
||||
|
|
|
@ -9,47 +9,6 @@
|
|||
<br>
|
||||
|
||||
<v-container>
|
||||
<v-row class="is-auth">
|
||||
<v-col cols="6" />
|
||||
<v-col cols="6">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<input
|
||||
id="no-auth"
|
||||
v-model="isAuth"
|
||||
type="radio"
|
||||
value="false"
|
||||
>
|
||||
<label for="no-auth">
|
||||
본인인증을 하지 않은 유저만
|
||||
</label>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<input
|
||||
id="auth"
|
||||
v-model="isAuth"
|
||||
type="radio"
|
||||
value="true"
|
||||
>
|
||||
<label for="auth">
|
||||
본인인증을 한 유저만
|
||||
</label>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<input
|
||||
id="both"
|
||||
v-model="isAuth"
|
||||
type="radio"
|
||||
value=""
|
||||
>
|
||||
<label for="both">
|
||||
모두
|
||||
</label>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-text-field
|
||||
v-model="member_id"
|
||||
label="회원번호(입력하지 않으면 전체회원에게 발송)"
|
||||
|
@ -106,9 +65,6 @@
|
|||
<v-card-text>
|
||||
내용: {{ message }}
|
||||
</v-card-text>
|
||||
<v-card-text>
|
||||
본인인증 여부: {{ isAuth === 'true' ? 'O' : isAuth === 'false' ? 'X' : '모두' }}
|
||||
</v-card-text>
|
||||
<v-card-actions v-show="!isLoading">
|
||||
<v-spacer />
|
||||
<v-btn
|
||||
|
@ -148,8 +104,7 @@ export default {
|
|||
member_id: '',
|
||||
send_member_id: [],
|
||||
title: '',
|
||||
message: '',
|
||||
isAuth: ''
|
||||
message: ''
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -197,8 +152,7 @@ export default {
|
|||
await api.sendPush(
|
||||
this.send_member_id,
|
||||
this.title,
|
||||
this.message,
|
||||
this.isAuth
|
||||
this.message
|
||||
)
|
||||
} finally {
|
||||
this.isLoading = false
|
||||
|
@ -207,7 +161,6 @@ export default {
|
|||
this.send_member_id = []
|
||||
this.title = ''
|
||||
this.message = ''
|
||||
this.isAuth = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -216,9 +169,5 @@ export default {
|
|||
</script>
|
||||
|
||||
<style scoped>
|
||||
.is-auth {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue