투표컨펌 추가가
This commit is contained in:
parent
15104c2f44
commit
f37c8ec947
@ -184,6 +184,7 @@ const addContents = (itemList, voteId) => {
|
|||||||
}
|
}
|
||||||
//투표종료
|
//투표종료
|
||||||
const endVoteId = (endVoteId) => {
|
const endVoteId = (endVoteId) => {
|
||||||
|
if(confirm('투표를 종료하시겠습니까?')){
|
||||||
$api.patch('vote/updateEndData',{
|
$api.patch('vote/updateEndData',{
|
||||||
endVoteId :endVoteId
|
endVoteId :endVoteId
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
@ -193,8 +194,10 @@ const endVoteId = (endVoteId) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//투표 삭제
|
//투표 삭제
|
||||||
const voteDelete =(id) =>{
|
const voteDelete =(id) =>{
|
||||||
|
if(confirm('투표를 삭제하시겠습니까?')){
|
||||||
$api.patch('vote/updateDeleteData',{
|
$api.patch('vote/updateDeleteData',{
|
||||||
deleteVoteId :id
|
deleteVoteId :id
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
@ -205,6 +208,7 @@ const voteDelete =(id) =>{
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// 제목이 14글자 넘어가면 ... 처리하는 함수
|
// 제목이 14글자 넘어가면 ... 처리하는 함수
|
||||||
const truncateTitle = title => {
|
const truncateTitle = title => {
|
||||||
return title.length > 10 ? title.slice(0, 10) + '...' : title;
|
return title.length > 10 ? title.slice(0, 10) + '...' : title;
|
||||||
|
|||||||
@ -138,6 +138,7 @@ const checkedNames = (numList) => {
|
|||||||
}
|
}
|
||||||
//투표종료
|
//투표종료
|
||||||
const endVoteId = (endVoteId) => {
|
const endVoteId = (endVoteId) => {
|
||||||
|
if(confirm('투표를 종료하시겠습니까?')){
|
||||||
$api.patch('vote/updateEndData',{
|
$api.patch('vote/updateEndData',{
|
||||||
endVoteId :endVoteId
|
endVoteId :endVoteId
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
@ -146,6 +147,7 @@ const endVoteId = (endVoteId) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//기한 지난 투표 종료
|
//기한 지난 투표 종료
|
||||||
const voteEnded = async (id) =>{
|
const voteEnded = async (id) =>{
|
||||||
await endVoteId(id.id);
|
await endVoteId(id.id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user