파일 업로드기능 완료

This commit is contained in:
2025-06-03 19:10:07 +09:00
parent e609a8ce52
commit eb0addf4e3
20 changed files with 4501 additions and 27 deletions
+5 -3
View File
@@ -198,7 +198,7 @@ exports.createClub = async (req, res) => {
if (basicPlan) { if (basicPlan) {
const startDate = new Date(); const startDate = new Date();
const endDate = new Date(); const endDate = new Date();
endDate.setMonth(endDate.getMonth() + 1); // 1개월 추가 endDate.setFullYear(endDate.getFullYear() + 1); // 1 추가
await require('../models').ClubSubscription.create({ await require('../models').ClubSubscription.create({
clubId: newClub.id, clubId: newClub.id,
@@ -387,7 +387,7 @@ exports.getClubMembers = async (req, res) => {
// 클럽 회원 추가 // 클럽 회원 추가
exports.addClubMember = async (req, res) => { exports.addClubMember = async (req, res) => {
try { try {
const { clubId, userId, name, gender, memberType, email, phone } = req.body; const { clubId, userId, name, gender, memberType, email, phone, handicap, status } = req.body;
if (!clubId || !name || !gender) { if (!clubId || !name || !gender) {
return res.status(400).json({ message: '필수 정보가 누락되었습니다.' }); return res.status(400).json({ message: '필수 정보가 누락되었습니다.' });
@@ -406,7 +406,9 @@ exports.addClubMember = async (req, res) => {
gender, gender,
memberType: memberType || '준회원', memberType: memberType || '준회원',
email, email,
phone phone,
handicap,
status: status || 'active'
}); });
// 클럽의 회원 수 업데이트 // 클럽의 회원 수 업데이트
+1 -1
View File
@@ -572,7 +572,7 @@ exports.deleteEvent = async (req, res) => {
} }
); );
await event.update({ status: 'deleted' }); await event.update({ status: '삭제' });
res.json({ res.json({
message: '이벤트가 삭제되었습니다.', message: '이벤트가 삭제되었습니다.',
+746
View File
@@ -0,0 +1,746 @@
/**
* 파일 업로드 컨트롤러
* 이벤트 관련 파일 업로드 및 처리를 담당하는 컨트롤러
*/
const multer = require('multer');
const path = require('path');
const fs = require('fs');
const xlsx = require('xlsx');
const csv = require('csv-parser');
const Tesseract = require('tesseract.js');
const sharp = require('sharp');
const models = require('../models');
const { Event, EventParticipant, Member, EventScore, Club, EventTeam, ClubMember, EventTeamMember } = models;
const { Op, Sequelize } = require('sequelize');
const { sequelize } = require('../models');
// 업로드 디렉토리 설정
const uploadDir = path.join(__dirname, '../uploads');
// 업로드 디렉토리가 없으면 생성
if (!fs.existsSync(uploadDir)) {
fs.mkdirSync(uploadDir, { recursive: true });
}
// 파일 업로드를 위한 multer 설정
const storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, uploadDir);
},
filename: function (req, file, cb) {
const uniqueSuffix = Date.now() + '-' + Math.round(Math.random() * 1E9);
cb(null, uniqueSuffix + path.extname(file.originalname));
}
});
// 파일 필터 (허용된 파일 형식만 업로드)
const fileFilter = (req, file, cb) => {
const allowedTypes = [
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'text/csv',
'image/jpeg',
'image/png'
];
if (allowedTypes.includes(file.mimetype)) {
cb(null, true);
} else {
cb(new Error('지원되지 않는 파일 형식입니다. Excel, CSV, JPG, PNG 파일만 업로드 가능합니다.'), false);
}
};
const upload = multer({
storage: storage,
fileFilter: fileFilter,
limits: { fileSize: 10 * 1024 * 1024 } // 10MB 제한
});
// 파일 업로드 처리
exports.uploadEventFile = (req, res) => {
upload.single('file')(req, res, async function (err) {
if (err instanceof multer.MulterError) {
// Multer 에러 처리
return res.status(400).json({ message: `파일 업로드 오류: ${err.message}` });
} else if (err) {
// 기타 에러 처리
return res.status(400).json({ message: err.message });
}
// 파일이 없는 경우
if (!req.file) {
return res.status(400).json({ message: '업로드할 파일이 없습니다.' });
}
// 클럽 ID 확인
const clubId = req.body.clubId;
if (!clubId) {
// 파일 삭제
if (fs.existsSync(req.file.path)) {
fs.unlinkSync(req.file.path);
}
return res.status(400).json({ message: '클럽 ID가 필요합니다.' });
}
try {
// 클럽 존재 여부 확인
const club = await Club.findOne({
where: { id: clubId, status: 'active' }
});
if (!club) {
// 파일 삭제
if (fs.existsSync(req.file.path)) {
fs.unlinkSync(req.file.path);
}
return res.status(404).json({ message: '클럽을 찾을 수 없습니다.' });
}
// 이미지 파일 전처리 (OCR용)
let ocrImagePath = req.file.path;
if (req.file.mimetype.startsWith('image/')) {
const preprocessedPath = req.file.path.replace(/(\.[^.]+)$/, '_preprocessed$1');
await sharp(req.file.path)
.grayscale()
.sharpen()
.toFile(preprocessedPath);
ocrImagePath = preprocessedPath;
}
// 파일 정보 반환
res.json({
message: '파일이 업로드되었습니다.',
file: {
filename: req.file.filename,
originalname: req.file.originalname,
mimetype: req.file.mimetype,
size: req.file.size,
path: req.file.path,
clubId: clubId
}
});
} catch (error) {
// 오류 발생 시 파일 삭제
if (fs.existsSync(req.file.path)) {
fs.unlinkSync(req.file.path);
}
console.error('파일 업로드 오류:', error);
res.status(500).json({ message: `파일 업로드 중 오류가 발생했습니다: ${error.message}` });
}
});
};
// 업로드된 파일 파싱 및 미리보기 데이터 제공
exports.parseEventFile = async (req, res) => {
try {
const { filename, clubId } = req.body;
if (!filename) {
return res.status(400).json({ message: '파일명이 필요합니다.' });
}
if (!clubId) {
return res.status(400).json({ message: '클럽 ID가 필요합니다.' });
}
const filePath = path.join(uploadDir, filename);
// 파일 존재 여부 확인
if (!fs.existsSync(filePath)) {
return res.status(404).json({ message: '파일을 찾을 수 없습니다.' });
}
// 파일 확장자 확인
const fileExt = path.extname(filename).toLowerCase();
let parsedData = [];
// 클럽 회원 목록 조회 (참가자 매핑용)
const club = await Club.findOne({
where: { id: clubId, status: 'active' }
});
if (!club) {
return res.status(404).json({ message: '클럽을 찾을 수 없습니다.' });
}
const clubMembers = await club.getMembers({
attributes: ['id', 'name', 'gender', 'average', 'handicap'],
through: { where: { status: 'active' } }
});
const memberMap = new Map();
clubMembers.forEach(member => {
if (member && member.name) {
memberMap.set(member.name, {
id: member.id,
name: member.name,
gender: member.gender,
average: member.average,
handicap: member.handicap
});
}
});
// 파일 형식에 따른 처리
if (fileExt === '.xlsx' || fileExt === '.xls') {
// Excel 파일 처리
parsedData = await parseExcelFile(filePath, memberMap);
} else if (fileExt === '.csv') {
// CSV 파일 처리
parsedData = await parseCsvFile(filePath, memberMap);
} else if (fileExt === '.jpg' || fileExt === '.jpeg' || fileExt === '.png') {
// 이미지 파일 OCR 처리
parsedData = await parseImageFile(filePath, memberMap);
} else {
return res.status(400).json({ message: '지원되지 않는 파일 형식입니다.' });
}
res.json({
message: '파일 파싱 완료',
data: parsedData
});
} catch (error) {
console.error('파일 파싱 오류:', error);
res.status(500).json({ message: `파일 파싱 중 오류가 발생했습니다: ${error.message}` });
}
};
// Excel 파일 파싱 함수
async function parseExcelFile(filePath, memberMap) {
const workbook = xlsx.readFile(filePath, { type: 'binary', cellDates: true, codepage: 949 });
const sheetName = workbook.SheetNames[0];
const worksheet = workbook.Sheets[sheetName];
const jsonData = xlsx.utils.sheet_to_json(worksheet, { header: 1, defval: '' });
return processRawData(jsonData, memberMap);
}
// CSV 파일 파싱 함수
async function parseCsvFile(filePath, memberMap) {
return new Promise((resolve, reject) => {
const results = [];
fs.createReadStream(filePath, { encoding: 'utf8' })
.pipe(csv({ headers: false, skipEmptyLines: true }))
.on('data', (data) => {
// 각 행을 배열로 변환
results.push(Object.values(data).map(cell => (cell || '').trim()));
})
.on('end', () => {
try {
const processedData = processRawData(results, memberMap);
resolve(processedData);
} catch (error) {
reject(error);
}
})
.on('error', (error) => reject(error));
});
}
// 이미지 파일 OCR 처리 함수
async function parseImageFile(filePath, memberMap) {
try {
// 한글 인식을 위한 Tesseract 설정
const { data } = await Tesseract.recognize(filePath, 'kor+eng', {
logger: m => console.log(m),
tessedit_char_whitelist: '0123456789가-힣이름팀핸디총핀에버Gg.,:()[]- ',
preserve_interword_spaces: 1,
psm: 6 // 표/블록: 6, 한줄: 7, 단어: 8. 상황에 따라 실험 가능
});
// OCR 원본 결과 로그
console.log('[OCR 원본 결과]', data.text);
// OCR 결과 텍스트 처리
const lines = data.text.split('\n')
.filter(line => line.trim() !== '')
.map(line => line.split(/\s+/));
return processRawData(lines, memberMap);
} catch (error) {
console.error('OCR 처리 오류:', error);
throw new Error('이미지 OCR 처리 중 오류가 발생했습니다.');
}
}
// 원시 데이터 처리 및 정규화 함수
function processRawData(rawData, memberMap) {
// 이벤트 정보 추론
const inferredEventInfo = inferEventInfo(rawData);
// 다양한 표 헤더 키워드 정의
const headerKeywords = {
name: ['이름', '성명', '참가자'],
team: ['팀', '팀명'],
handicap: ['핸디', '핸디캡'],
total: ['총핀', '총점', '합계'],
avg: ['에버', '평균'],
// 점수 컬럼: 1게임, 2게임, 1G, 2G, 16, 26 등 다양한 형태
score: [/^(\d+)[Gg]$/, /^(\d{2,})$/, /^\d+게임$/]
};
// 헤더 행 찾기 및 컬럼 인덱스 매핑
let headerRow = -1;
let colMap = {};
for (let i = 0; i < Math.min(10, rawData.length); i++) {
const row = rawData[i];
row.forEach((cell, idx) => {
if (typeof cell !== 'string') return;
for (const key in headerKeywords) {
const patterns = headerKeywords[key];
for (const pattern of patterns) {
if ((typeof pattern === 'string' && cell.replace(/\s/g, '').includes(pattern)) ||
(pattern instanceof RegExp && pattern.test(cell.replace(/\s/g, '')))) {
if (key === 'score') {
if (!colMap.scores) colMap.scores = [];
colMap.scores.push(idx);
} else {
colMap[key] = idx;
}
headerRow = i;
break;
}
}
}
});
// 헤더가 최소 이름, 점수, 팀 중 하나라도 있으면 헤더로 간주
if (Object.keys(colMap).length > 1) break;
}
if (headerRow === -1) return { participants: [], gameCount: 0, inferredEventInfo };
// 데이터 행 파싱
const participants = [];
for (let i = headerRow + 1; i < rawData.length; i++) {
const row = rawData[i];
if (row.length < 2) continue;
// 이름: 한글 2자 이상
const name = colMap.name !== undefined ? row[colMap.name] : row.find(cell => /^[-힣a-z]{2,}$/i.test(cell));
if (!name) continue;
const teamNumber = colMap.team !== undefined ? row[colMap.team] : '';
const scores = (colMap.scores || []).map(idx => parseInt(row[idx], 10)).filter(n => !isNaN(n));
const handicap = colMap.handicap !== undefined ? parseInt(row[colMap.handicap], 10) : null;
const total = colMap.total !== undefined ? parseInt(row[colMap.total], 10) : null;
const avg = colMap.avg !== undefined ? parseFloat(row[colMap.avg]) : null;
// 회원 매핑 (이름 기준)
const memberMatch = memberMap && memberMap.get && name ? memberMap.get(name) : null;
participants.push({
name,
teamNumber,
scores,
handicap,
total,
avg,
memberId: memberMatch ? memberMatch.id : null,
memberInfo: memberMatch || null
});
}
return {
participants,
gameCount: Math.max(...participants.map(p => p.scores.length), 0),
inferredEventInfo
};
}
// 파일에서 이벤트 정보 추론
function inferEventInfo(rawData) {
const result = {
title: null,
titleCandidates: [],
startDate: null,
location: null
};
// 파일의 처음 10줄을 검색하여 이벤트 정보 추론
const maxRows = Math.min(10, rawData.length);
// 제목 추론 패턴 (키워드 포함 전체 구문 추출)
const titlePatterns = [
/(.+?정기전)/i,
/(.+?대회)/i,
/(.+?이벤트)/i,
/(.+?토너먼트)/i,
/(.+?경기)/i,
/(.+?오픈)/i,
/제\s*\d+\s*회\s*.+/i,
/제\s*\d+\s*차\s*.+/i,
/\d+\s*회\s*.+/i,
/\d+\s*차\s*.+/i,
/정기전\s*[:\-]?\s*.+/i,
/대회\s*[:\-]?\s*.+/i,
/이벤트\s*[:\-]?\s*.+/i
];
// 날짜 추론 패턴
const datePatterns = [
// YYYY-MM-DD 형식
/(\d{4})[-\/\.]\s*(\d{1,2})[-\/\.]\s*(\d{1,2})/,
// YYYY년 MM월 DD일 형식
/(\d{4})\s*년\s*(\d{1,2})\s*월\s*(\d{1,2})\s*일/,
// MM월 DD일 형식 (현재 연도 가정)
/(\d{1,2})\s*월\s*(\d{1,2})\s*일/,
// 날짜: YYYY-MM-DD 형식
/날짜\s*[:\-]?\s*(\d{4})[-\/\.]\s*(\d{1,2})[-\/\.]\s*(\d{1,2})/,
// 일시: YYYY-MM-DD 형식
/일시\s*[:\-]?\s*(\d{4})[-\/\.]\s*(\d{1,2})[-\/\.]\s*(\d{1,2})/,
// 시작일: YYYY-MM-DD 형식
/시작일\s*[:\-]?\s*(\d{4})[-\/\.]\s*(\d{1,2})[-\/\.]\s*(\d{1,2})/,
// YYYYMMDD 형식
/\s*(\d{4})\s*(\d{2})\s*(\d{2})\s*/,
// YYMMDD, YY.MM.DD, YY-MM-DD 형식 (25.02.04, 25-02-04, 250204)
/(\d{2})[.\-\/\s]?(\d{2})[.\-\/\s]?(\d{2})/
];
// 파일명에서 정보 추론 (originalname이 있는 경우)
if (rawData.originalname) {
const filename = rawData.originalname;
// 제목 추론 (모든 후보 수집)
for (const pattern of titlePatterns) {
const match = filename.match(pattern);
if (match && match[1]) {
const candidate = match[1].trim();
if (!result.titleCandidates.includes(candidate)) {
result.titleCandidates.push(candidate);
}
}
}
if (result.titleCandidates.length > 0) {
result.title = result.titleCandidates[0];
}
// 날짜 추론
for (const pattern of datePatterns) {
const match = filename.match(pattern);
if (match) {
// 매칭 그룹의 수에 따라 다르게 처리
if (match.length >= 4) { // YYYY-MM-DD 형식
const year = parseInt(match[1]);
const month = parseInt(match[2]) - 1; // JavaScript의 월은 0부터 시작
const day = parseInt(match[3]);
result.startDate = new Date(year, month, day);
} else if (match.length >= 3) { // MM월 DD일 형식
const currentYear = new Date().getFullYear();
const month = parseInt(match[1]) - 1;
const day = parseInt(match[2]);
result.startDate = new Date(currentYear, month, day);
}
break;
}
}
}
// 파일 내용에서 정보 추론
for (let i = 0; i < maxRows; i++) {
const row = rawData[i];
if (!row || !Array.isArray(row)) continue;
// 행을 문자열로 변환하여 패턴 매칭
const rowText = row.join(' ');
// 제목 후보 수집
for (const pattern of titlePatterns) {
const match = rowText.match(pattern);
if (match && match[1]) {
const candidate = match[1].trim();
if (!result.titleCandidates.includes(candidate)) {
result.titleCandidates.push(candidate);
}
}
}
if (!result.title && result.titleCandidates.length > 0) {
result.title = result.titleCandidates[0];
}
// 날짜가 아직 추론되지 않은 경우
if (!result.startDate) {
for (const pattern of datePatterns) {
const match = rowText.match(pattern);
if (match) {
// 매칭 그룹의 수에 따라 다르게 처리
if (match.length >= 4) {
// YYYY-MM-DD, YYYYMMDD, YYMMDD, YY.MM.DD, YY-MM-DD 모두 처리
let year = parseInt(match[1], 10);
const month = parseInt(match[2], 10) - 1;
const day = parseInt(match[3], 10);
// 2자리 연도라면 보정
if (match[1].length === 2) {
year += 2000;
}
result.startDate = new Date(year, month, day);
} else if (match.length === 3) {
// MM월 DD일 형식 (현재 연도 가정)
const currentYear = new Date().getFullYear();
const month = parseInt(match[1]) - 1;
const day = parseInt(match[2]);
result.startDate = new Date(currentYear, month, day);
}
break;
}
}
}
// 모든 정보가 추론되었다면 중단
if (result.title && result.startDate) {
break;
}
}
return result;
}
// 이벤트에 파일 데이터 저장
exports.saveEventFileData = async (req, res) => {
const { eventData, participants, clubId } = req.body;
if (!eventData || !participants || !clubId) {
return res.status(400).json({ message: '이벤트 정보, 참가자 정보, 클럽 ID가 필요합니다.' });
}
try {
// 트랜잭션 시작
const result = await sequelize.transaction(async (t) => {
// 1. 이벤트 생성 또는 업데이트
let event;
if (eventData.id) {
// 기존 이벤트 업데이트
event = await Event.findOne({
where: { id: eventData.id, clubId },
transaction: t
});
if (!event) {
throw new Error('이벤트를 찾을 수 없습니다.');
}
await event.update({
title: eventData.title,
description: eventData.description || '',
eventType: eventData.eventType,
startDate: new Date(eventData.startDate),
endDate: eventData.endDate ? new Date(eventData.endDate) : null,
location: eventData.location || '',
gameCount: eventData.gameCount || 3,
maxParticipants: eventData.maxParticipants || 0,
status: eventData.status || '완료'
}, { transaction: t });
} else {
// 새 이벤트 생성
event = await Event.create({
clubId,
title: eventData.title,
description: eventData.description || '',
eventType: eventData.eventType,
startDate: new Date(eventData.startDate),
endDate: eventData.endDate ? new Date(eventData.endDate) : null,
location: eventData.location || '',
gameCount: eventData.gameCount || 3,
maxParticipants: eventData.maxParticipants || 0,
status: eventData.status || '완료',
publicHash: generateRandomHash()
}, { transaction: t });
}
// 1.5 팀 정보 처리 - 참가자 처리 전에 팀 생성
// 팀 번호별로 그룹화
const teamGroups = {};
participants.forEach(p => {
if (p.teamNumber) {
if (!teamGroups[p.teamNumber]) {
teamGroups[p.teamNumber] = [];
}
teamGroups[p.teamNumber].push(p);
}
});
// 팀 생성
const createdTeams = {};
for (const teamNumber in teamGroups) {
// 기존 팀 확인
let eventTeam = await EventTeam.findOne({
where: {
eventId: event.id,
teamNumber: parseInt(teamNumber)
},
transaction: t
});
// 팀이 없으면 생성
if (!eventTeam) {
eventTeam = await EventTeam.create({
eventId: event.id,
teamNumber: parseInt(teamNumber),
name: `${teamNumber}`,
handicap: 0 // 기본 핸디캡 값
}, { transaction: t });
}
createdTeams[teamNumber] = eventTeam;
}
// 2. 참가자 및 점수 처리
for (const participant of participants) {
let eventParticipant;
// 참가자 생성 또는 업데이트
if (participant.memberId) {
// 기존 회원인 경우
const existingParticipant = await EventParticipant.findOne({
where: {
eventId: event.id,
memberId: participant.memberId
},
transaction: t
});
// 팀 ID 가져오기
let teamId = null;
if (participant.teamNumber && createdTeams[participant.teamNumber]) {
teamId = createdTeams[participant.teamNumber].id;
}
if (existingParticipant) {
// 기존 참가자 업데이트 (팀 정보 포함)
await existingParticipant.update({
teamId: teamId
}, { transaction: t });
eventParticipant = existingParticipant;
} else {
eventParticipant = await EventParticipant.create({
eventId: event.id,
memberId: participant.memberId,
status: '참가확정',
paymentStatus: '납부완료',
teamId: teamId,
comment: ''
}, { transaction: t });
}
} else {
// 새 회원 생성 및 참가자 등록
const newMember = await Member.create({
name: participant.name,
gender: participant.gender || '남성',
memberType: '정회원',
status: '활성'
}, { transaction: t });
// 클럽 회원으로 등록
await ClubMember.create({
clubId,
memberId: newMember.id,
joinDate: new Date(),
status: 'active'
}, { transaction: t });
// 팀 ID 가져오기
let teamId = null;
if (participant.teamNumber && createdTeams[participant.teamNumber]) {
teamId = createdTeams[participant.teamNumber].id;
}
eventParticipant = await EventParticipant.create({
eventId: event.id,
memberId: newMember.id,
status: '참가확정',
teamId: teamId,
comment: ''
}, { transaction: t });
}
// 팀에 속한 참가자인 경우 팀 멤버로 등록
if (participant.teamNumber && createdTeams[participant.teamNumber]) {
// 기존 팀 멤버 확인
const existingTeamMember = await EventTeamMember.findOne({
where: {
eventTeamId: createdTeams[participant.teamNumber].id,
eventParticipantId: eventParticipant.id
},
transaction: t
});
// 팀 멤버가 없으면 생성
if (!existingTeamMember) {
await EventTeamMember.create({
eventTeamId: createdTeams[participant.teamNumber].id,
eventParticipantId: eventParticipant.id,
order: 1
}, { transaction: t });
}
}
// 점수 저장
if (participant.scores && participant.scores.length > 0) {
// 기존 점수 삭제
await EventScore.destroy({
where: {
eventId: event.id,
participantId: eventParticipant.id
},
transaction: t
});
// 새 점수 등록
for (const scoreData of participant.scores) {
// 핵디캡 값이 없는 경우 참가자의 핵디캡 값 사용
const handicap = scoreData.handicap !== undefined ? scoreData.handicap : (participant.handicap || 0);
// 총점수가 없는 경우 원점수 사용
const totalScore = scoreData.totalScore !== undefined ? scoreData.totalScore : scoreData.score;
await EventScore.create({
eventId: event.id,
participantId: eventParticipant.id,
gameNumber: scoreData.gameNumber,
score: scoreData.score,
handicap: handicap,
totalScore: totalScore,
teamNumber: participant.teamNumber || null
}, { transaction: t });
}
}
}
return event;
});
res.json({
message: '이벤트 데이터가 성공적으로 저장되었습니다.',
event: {
id: result.id,
title: result.title,
eventType: result.eventType,
startDate: result.startDate
}
});
} catch (error) {
console.error('이벤트 데이터 저장 오류:', error);
res.status(500).json({ message: `이벤트 데이터 저장 중 오류가 발생했습니다: ${error.message}` });
}
};
// 랜덤 해시 생성 함수
function generateRandomHash() {
const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
return Array.from({ length: 16 }, () => chars[Math.floor(Math.random() * chars.length)]).join('');
}
// 임시 파일 삭제
exports.deleteUploadedFile = async (req, res) => {
try {
const { filename } = req.body;
if (!filename) {
return res.status(400).json({ message: '파일명이 필요합니다.' });
}
const filePath = path.join(uploadDir, filename);
// 파일 존재 여부 확인
if (fs.existsSync(filePath)) {
fs.unlinkSync(filePath);
}
res.json({ message: '파일이 삭제되었습니다.' });
} catch (error) {
console.error('파일 삭제 오류:', error);
res.status(500).json({ message: `파일 삭제 중 오류가 발생했습니다: ${error.message}` });
}
};
+2 -2
View File
@@ -131,7 +131,7 @@ exports.getEventByPublicHash = async (event, token = null) => {
const scoresArr = Array(event.gameCount).fill(null); const scoresArr = Array(event.gameCount).fill(null);
scores.filter(s => s.participantId === participant?.id).forEach(s => { scores.filter(s => s.participantId === participant?.id).forEach(s => {
if (s.gameNumber && s.gameNumber >= 1 && s.gameNumber <= event.gameCount) { if (s.gameNumber && s.gameNumber >= 1 && s.gameNumber <= event.gameCount) {
scoresArr[s.gameNumber - 1] = s.score; scoresArr[s.gameNumber - 1] = { score: s.score, handicap: s.handicap };
} }
}); });
return { return {
@@ -160,7 +160,7 @@ exports.getEventByPublicHash = async (event, token = null) => {
const scoresArr = Array(event.gameCount).fill(null); const scoresArr = Array(event.gameCount).fill(null);
scores.filter(s => s.participantId === p.id).forEach(s => { scores.filter(s => s.participantId === p.id).forEach(s => {
if (s.gameNumber && s.gameNumber >= 1 && s.gameNumber <= event.gameCount) { if (s.gameNumber && s.gameNumber >= 1 && s.gameNumber <= event.gameCount) {
scoresArr[s.gameNumber - 1] = s.score; scoresArr[s.gameNumber - 1] = { score: s.score, handicap: s.handicap };
} }
}); });
return { return {
Binary file not shown.
Binary file not shown.
+814 -8
View File
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -17,6 +17,7 @@
"body-parser": "^1.20.3", "body-parser": "^1.20.3",
"cookie-parser": "^1.4.7", "cookie-parser": "^1.4.7",
"cors": "^2.8.5", "cors": "^2.8.5",
"csv-parser": "^3.2.0",
"dotenv": "^16.4.7", "dotenv": "^16.4.7",
"express": "^4.21.2", "express": "^4.21.2",
"express-session": "^1.18.1", "express-session": "^1.18.1",
@@ -26,10 +27,14 @@
"mariadb": "^3.4.0", "mariadb": "^3.4.0",
"mongoose": "^8.12.1", "mongoose": "^8.12.1",
"morgan": "^1.10.0", "morgan": "^1.10.0",
"multer": "^2.0.0",
"mysql2": "^3.13.0", "mysql2": "^3.13.0",
"sequelize": "^6.37.6", "sequelize": "^6.37.6",
"sharp": "^0.34.2",
"socket.io": "^4.8.1", "socket.io": "^4.8.1",
"winston": "^3.17.0" "tesseract.js": "^6.0.1",
"winston": "^3.17.0",
"xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"sequelize-cli": "^6.6.2" "sequelize-cli": "^6.6.2"
+7
View File
@@ -1,6 +1,7 @@
const express = require('express'); const express = require('express');
const router = express.Router(); const router = express.Router();
const eventController = require('../controllers/eventController'); const eventController = require('../controllers/eventController');
const fileUploadController = require('../controllers/fileUploadController');
const { authenticateJWT } = require('../middleware/authMiddleware'); const { authenticateJWT } = require('../middleware/authMiddleware');
const requireFeature = require('../middleware/requireFeature'); const requireFeature = require('../middleware/requireFeature');
@@ -36,4 +37,10 @@ router.get('/user/events', authenticateJWT, requireFeature('event_management'),
// 공개 URL(publicHash) 재생성 // 공개 URL(publicHash) 재생성
router.patch('/:id/publicHash', eventController.regeneratePublicHash); router.patch('/:id/publicHash', eventController.regeneratePublicHash);
// 파일 업로드 관련 라우트
router.post('/upload', authenticateJWT, requireFeature('event_management'), fileUploadController.uploadEventFile);
router.post('/parse-preview', authenticateJWT, requireFeature('event_management'), fileUploadController.parseEventFile);
router.post('/save-file-data', authenticateJWT, requireFeature('event_management'), fileUploadController.saveEventFileData);
router.post('/delete-file', authenticateJWT, requireFeature('event_management'), fileUploadController.deleteUploadedFile);
module.exports = router; module.exports = router;
@@ -4,6 +4,9 @@ module.exports = {
const planFeatures = [ const planFeatures = [
{ planId: 1, featureId: 1, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) }, { planId: 1, featureId: 1, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) },
{ planId: 1, featureId: 2, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) }, { planId: 1, featureId: 2, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) },
{ planId: 1, featureId: 3, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) },
{ planId: 1, featureId: 4, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) },
{ planId: 1, featureId: 5, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) },
{ planId: 2, featureId: 1, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) }, { planId: 2, featureId: 1, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) },
{ planId: 2, featureId: 2, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) }, { planId: 2, featureId: 2, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) },
{ planId: 2, featureId: 3, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) }, { planId: 2, featureId: 3, status: 'active', createdAt: new Date(2025, 0, 1), updatedAt: new Date(2025, 0, 1) },
+992
View File
@@ -0,0 +1,992 @@
,,,,,,,,,,,,,,,,,,,,,,,,,,
,제1회 정기전 25.02.04,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,
,순위,,이름,1G,2G,3G,4G,핸디,총핀,에버,,,,,,,,,,,,,,,,
,#NAME?,2팀,노하윤,201,291,207,,12,699,233.0,,,,,,,,,,,,,,,,
,#NAME?,1팀,이호빈,142,220,268,,,630,210.0,,,,,,,,,,,,,,,,
,#NAME?,2팀,이경호,220,205,200,,,625,208.3,,,,,,,,,,,,,,,,
,#NAME?,2팀,박병주,202,145,204,,,551,183.7,,,,,,,,,,,,,,,,
,#NAME?,1팀,이연준,158,191,175,,,524,174.7,,,,,,,,,,,,,,,,
,#NAME?,2팀,신승혁,152,150,173,,,475,158.3,,,,,,,,,,,,,,,,
,#NAME?,1팀,김태현,128,128,144,,,400,133.3,,,,,,,,,,,,,,,,
,#NAME?,1팀,곽희연,123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NAME? 2팀 노하윤 201 291 207 12 699 233.0
6 #NAME? 1팀 이호빈 142 220 268 630 210.0
7 #NAME? 2팀 이경호 220 205 200 625 208.3
8 #NAME? 2팀 박병주 202 145 204 551 183.7
9 #NAME? 1팀 이연준 158 191 175 524 174.7
10 #NAME? 2팀 신승혁 152 150 173 475 158.3
11 #NAME? 1팀 김태현 128 128 144 400 133.3
12 #NAME? 1팀 곽희연 123 102 133 12 358 119.3
13 #NAME?
14 #NAME?
15 #NAME?
16 #NAME?
17 #NAME?
18 #NAME?
19 #NAME?
20 #NAME?
21 #NAME?
22 #NAME?
23 #NAME?
24 #NAME?
25 #NAME?
26 #NAME?
27 #NAME?
28 #NAME?
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
+2 -1
View File
@@ -312,7 +312,7 @@ const loadMenuItems = async () => {
}); });
menuItems.value = groupMenus; menuItems.value = groupMenus;
/*
// //
singleMenuItems.value = [ singleMenuItems.value = [
...singleMenus, ...singleMenus,
@@ -322,6 +322,7 @@ const loadMenuItems = async () => {
to: '/club/subscription' to: '/club/subscription'
} }
]; ];
*/
} else { } else {
menuItems.value = []; menuItems.value = [];
singleMenuItems.value = []; singleMenuItems.value = [];
File diff suppressed because it is too large Load Diff
@@ -61,9 +61,22 @@
<span :class="scoreColorClass(scoreStates[member.participantId + '-' + n], scoresProxy[member.participantId + '-' + n], member.handicap)" <span :class="scoreColorClass(scoreStates[member.participantId + '-' + n], scoresProxy[member.participantId + '-' + n], member.handicap)"
class="score-hc-value score-status-text" class="score-hc-value score-status-text"
:key="scoreStates[member.participantId + '-' + n] + '-' + scoresProxy[member.participantId + '-' + n]"> :key="scoreStates[member.participantId + '-' + n] + '-' + scoresProxy[member.participantId + '-' + n]">
{{ (scoresProxy[member.participantId + '-' + n] !== undefined && scoresProxy[member.participantId + '-' + n] !== '') ? {{ (() => {
Number(scoresProxy[member.participantId + '-' + n]) + (Number(member.handicap) || 0) : '' const key = member.participantId + '-' + n;
}} let score = scoresProxy[key];
if (score === undefined || score === null || score === '') score = member.scores?.[n-1]?.score ?? 0;
score = Number(score) || 0;
// : scoresProxy -handicap > member.scores[n-1]?.handicap > member.handicap
let gameHandicap = null;
if (scoresProxy[key + '-handicap'] !== undefined) {
gameHandicap = Number(scoresProxy[key + '-handicap']) || 0;
} else if (member.scores && member.scores[n-1] && typeof member.scores[n-1].handicap !== 'undefined') {
gameHandicap = Number(member.scores[n-1].handicap) || 0;
} else {
gameHandicap = Number(member.handicap) || 0;
}
return score !== '' ? score + gameHandicap : '';
})() }}
</span> </span>
</div> </div>
</div> </div>
+8
View File
@@ -24,6 +24,7 @@ import 'primeflex/primeflex.css'
// PrimeVue Components // PrimeVue Components
import Button from 'primevue/button' import Button from 'primevue/button'
import SplitButton from 'primevue/splitbutton'
import InputText from 'primevue/inputtext' import InputText from 'primevue/inputtext'
import DataTable from 'primevue/datatable' import DataTable from 'primevue/datatable'
import Column from 'primevue/column' import Column from 'primevue/column'
@@ -50,6 +51,9 @@ import Tag from 'primevue/tag'
import FloatLabel from 'primevue/floatlabel'; import FloatLabel from 'primevue/floatlabel';
import Tooltip from 'primevue/tooltip'; import Tooltip from 'primevue/tooltip';
import Tabs from 'primevue/tabs'; import Tabs from 'primevue/tabs';
import FileUpload from 'primevue/fileupload';
import Steps from 'primevue/steps';
import Calendar from 'primevue/calendar';
import TabPanels from 'primevue/tabpanels'; import TabPanels from 'primevue/tabpanels';
import TabPanel from 'primevue/tabpanel'; import TabPanel from 'primevue/tabpanel';
import TabList from 'primevue/tablist'; import TabList from 'primevue/tablist';
@@ -79,6 +83,7 @@ app.component('AppHeader', AppHeader);
// Register PrimeVue Components // Register PrimeVue Components
app.component('Button', Button) app.component('Button', Button)
app.component('SplitButton', SplitButton)
app.component('InputText', InputText) app.component('InputText', InputText)
app.component('DataTable', DataTable) app.component('DataTable', DataTable)
app.component('Column', Column) app.component('Column', Column)
@@ -107,5 +112,8 @@ app.component('ProgressSpinner', ProgressSpinner)
app.component('Datepicker', Datepicker) app.component('Datepicker', Datepicker)
app.component('Tag', Tag) app.component('Tag', Tag)
app.component('FloatLabel', FloatLabel); app.component('FloatLabel', FloatLabel);
app.component('FileUpload', FileUpload);
app.component('Steps', Steps);
app.component('Calendar', Calendar);
app.mount('#app') app.mount('#app')
+118
View File
@@ -372,4 +372,122 @@ export default {
throw error; throw error;
} }
}, },
/**
* 파일 업로드 파싱 요청
* @param {Object} data - 파일명과 클럽ID 정보
* @returns {Promise<Object>} 파싱된 데이터
*/
async parseEventFile(data) {
if (!data.filename || !data.clubId) {
throw new Error('파일명과 클럽 ID가 필요합니다.');
}
try {
const response = await apiClient.post('/api/club/events/parse-preview', data);
return response.data;
} catch (error) {
if (error.response && error.response.data && error.response.data.message) {
throw new Error(error.response.data.message);
}
throw error;
}
},
/**
* 파일 업로드 URL 가져오기
* @param {number} clubId - 클럽 ID
* @returns {string} 파일 업로드 URL
*/
getFileUploadUrl(clubId) {
if (!clubId) {
throw new Error('클럽 ID가 필요합니다.');
}
return `/api/club/events/upload?clubId=${clubId}`;
},
/**
* 파일 업로드 함수
* @param {File} file - 업로드할 파일
* @param {number} clubId - 클럽 ID
* @returns {Promise<Object>} 업로드 결과
*/
async uploadFile(file, clubId) {
if (!file || !clubId) {
throw new Error('파일과 클럽 ID가 필요합니다.');
}
const formData = new FormData();
formData.append('file', file);
formData.append('clubId', clubId);
try {
const response = await apiClient.post('/api/club/events/upload', formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
});
return response.data;
} catch (error) {
console.error('파일 업로드 오류:', error);
if (error.response && error.response.data && error.response.data.message) {
throw new Error(error.response.data.message);
}
throw error;
}
},
/**
* 이벤트 파일 데이터 저장
* @param {Object} data - 이벤트 데이터, 참가자 데이터, 클럽 ID
* @returns {Promise<Object>} 저장된 이벤트 정보
*/
async saveEventFileData(data) {
if (!data.eventData || !data.participants || !data.clubId) {
throw new Error('이벤트 정보, 참가자 정보, 클럽 ID가 필요합니다.');
}
try {
const response = await apiClient.post('/api/club/events/save-file-data', data);
return response.data;
} catch (error) {
if (error.response && error.response.data && error.response.data.message) {
throw new Error(error.response.data.message);
}
throw error;
}
},
/**
* 업로드된 임시 파일 삭제
* @param {Object} data - 파일명 정보
* @returns {Promise<Object>} 삭제 결과
*/
async deleteUploadedFile(data) {
if (!data.filename) {
throw new Error('파일명이 필요합니다.');
}
try {
const response = await apiClient.post('/api/club/events/delete-file', data);
return response.data;
} catch (error) {
if (error.response && error.response.data && error.response.data.message) {
throw new Error(error.response.data.message);
}
throw error;
}
},
/**
* 이벤트 파일 업로드 URL 생성
* @param {number} clubId - 클럽 ID
* @returns {string} 파일 업로드 URL
*/
getFileUploadUrl(clubId) {
if (!clubId) {
throw new Error('클럽 ID가 필요합니다.');
}
return `/api/club/events/upload`;
}
}; };
+24 -4
View File
@@ -52,8 +52,18 @@ export const calculateTeamGameScore = (team, scoresProxy, gameNumber) => {
const score = scoresProxy[scoreKey]; const score = scoresProxy[scoreKey];
if (score !== undefined && score !== null && score !== '') { if (score !== undefined && score !== null && score !== '') {
const memberHc = Number(member.handicap) || 0; // 핸디캡 우선순위: scoresProxy -handicap > member.scores[gameNumber-1]?.handicap > member.handicap
total += Number(score) + memberHc; let gameHandicap = null;
if (scoresProxy[scoreKey + '-handicap'] !== undefined) {
gameHandicap = Number(scoresProxy[scoreKey + '-handicap']) || 0;
} else if (member.scores && member.scores[gameNumber-1] && typeof member.scores[gameNumber-1].handicap !== 'undefined') {
gameHandicap = Number(member.scores[gameNumber-1].handicap) || 0;
} else {
gameHandicap = Number(member.handicap) || 0;
}
total += Number(score) + gameHandicap;
} }
}); });
@@ -96,7 +106,6 @@ export const calculateParticipantTotalScore = (participant, scoresProxy, gameCou
if (!participant || !participant.participantId) return 0; if (!participant || !participant.participantId) return 0;
let total = 0; let total = 0;
const handicap = Number(participant.handicap) || 0;
// 각 게임별 점수 합산 // 각 게임별 점수 합산
for (let i = 1; i <= gameCount; i++) { for (let i = 1; i <= gameCount; i++) {
@@ -104,7 +113,18 @@ export const calculateParticipantTotalScore = (participant, scoresProxy, gameCou
const score = scoresProxy[scoreKey]; const score = scoresProxy[scoreKey];
if (score !== undefined && score !== null && score !== '') { if (score !== undefined && score !== null && score !== '') {
total += Number(score) + handicap; // 핸디캡 우선순위: scoresProxy -handicap > member.scores[i-1]?.handicap > member.handicap
let gameHandicap = null;
if (scoresProxy[scoreKey + '-handicap'] !== undefined) {
gameHandicap = Number(scoresProxy[scoreKey + '-handicap']) || 0;
} else if (participant.scores && participant.scores[i-1] && typeof participant.scores[i-1].handicap !== 'undefined') {
gameHandicap = Number(participant.scores[i-1].handicap) || 0;
} else {
gameHandicap = Number(participant.handicap) || 0;
}
total += Number(score) + gameHandicap;
} }
} }
+35 -3
View File
@@ -4,6 +4,7 @@
<h2>이벤트 관리</h2> <h2>이벤트 관리</h2>
<div class="header-buttons"> <div class="header-buttons">
<Button label="캘린더 보기" icon="pi pi-calendar" class="p-button-outlined mr-2" @click="navigateToCalendar" /> <Button label="캘린더 보기" icon="pi pi-calendar" class="p-button-outlined mr-2" @click="navigateToCalendar" />
<Button label="파일에서 생성" icon="pi pi-file-import" class="p-button-outlined mr-2" @click="openFileUploadDialog" />
<Button label="이벤트 추가" icon="pi pi-plus" @click="openNewEventDialog" /> <Button label="이벤트 추가" icon="pi pi-plus" @click="openNewEventDialog" />
</div> </div>
</div> </div>
@@ -93,16 +94,28 @@
/> />
<!-- 삭제 확인 다이얼로그 --> <!-- 삭제 확인 다이얼로그 -->
<Dialog v-model:visible="deleteEventDialog" :style="{ width: '450px' }" header="확인" :modal="true"> <Dialog
v-model:visible="deleteEventDialog"
:style="{ width: '450px' }"
header="이벤트 삭제"
:modal="true"
>
<div class="confirmation-content"> <div class="confirmation-content">
<i class="pi pi-exclamation-triangle mr-3" style="font-size: 2rem" /> <i class="pi pi-exclamation-triangle mr-3" style="font-size: 2rem" />
<span v-if="event">{{ event.title }} 이벤트를 삭제하시겠습니까?</span> <span>정말 이벤트를 삭제하시겠습니까?</span>
</div> </div>
<template #footer> <template #footer>
<Button label="아니오" icon="pi pi-times" class="p-button-text" @click="deleteEventDialog = false" /> <Button label="아니오" icon="pi pi-times" class="p-button-text" @click="deleteEventDialog = false" />
<Button label="예" icon="pi pi-check" class="p-button-danger" @click="deleteEvent" /> <Button label="예" icon="pi pi-check" class="p-button-danger" @click="deleteEvent" />
</template> </template>
</Dialog> </Dialog>
<!-- 파일 업로드 다이얼로그 -->
<FileUploadDialog
v-model:visible="fileUploadDialog"
:clubId="clubId"
@event-created="onEventCreated"
/>
</div> </div>
</template> </template>
@@ -111,6 +124,7 @@ import { ref, onMounted, computed } from 'vue';
import { useToast } from 'primevue/usetoast'; import { useToast } from 'primevue/usetoast';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useClubStore } from '@/stores/clubStore'; import { useClubStore } from '@/stores/clubStore';
import FileUploadDialog from '@/components/event/FileUploadDialog.vue';
import eventService from '@/services/eventService'; import eventService from '@/services/eventService';
import apiClient from '@/services/api'; import apiClient from '@/services/api';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
@@ -132,10 +146,12 @@ const clubStore = useClubStore();
const events = ref([]); const events = ref([]);
const event = ref({}); const event = ref({});
const eventDialog = ref(false); const eventDialog = ref(false);
const deleteEventDialog = ref(false);
const detailsDialog = ref(false); const detailsDialog = ref(false);
const deleteEventDialog = ref(false);
const fileUploadDialog = ref(false);
const loading = ref(false); const loading = ref(false);
const submitted = ref(false); const submitted = ref(false);
// localStorage clubId
const clubId = ref(localStorage.getItem('clubId') || null); const clubId = ref(localStorage.getItem('clubId') || null);
// //
@@ -434,6 +450,22 @@ const navigateToCalendar = () => {
const url = `/club/calendar?clubId=${clubId.value}`; const url = `/club/calendar?clubId=${clubId.value}`;
window.location.href = url; window.location.href = url;
}; };
//
const openFileUploadDialog = () => {
fileUploadDialog.value = true;
};
//
const onEventCreated = async (eventData) => {
toast.add({
severity: 'success',
summary: '성공',
detail: '파일에서 이벤트가 생성되었습니다.',
life: 3000
});
await fetchEvents();
};
</script> </script>
<style scoped> <style scoped>
+1 -1
View File
@@ -97,7 +97,7 @@
</div> </div>
<div class="field col-6 mb-3"> <div class="field col-6 mb-3">
<label for="handicap" class="mb-1">핸디캡</label> <label for="handicap" class="mb-1">핸디캡</label>
<InputText id="handicap" v-model="member.handicap" type="number" min="0" max="50" class="w-full" /> <InputText id="handicap" v-model="member.handicap" type="number" min="-300" max="300" class="w-full" />
</div> </div>
<div class="field col-6 mb-3"> <div class="field col-6 mb-3">
<label for="status" class="mb-1">상태</label> <label for="status" class="mb-1">상태</label>
@@ -597,6 +597,29 @@ const sortedParticipants = computed(() => {
// (v-model ) // (v-model )
const scoresProxy = ref({}); const scoresProxy = ref({});
//
function initScoresProxy() {
if (!participants.value || !event.value?.gameCount) return;
participants.value.forEach(member => {
for (let n = 1; n <= event.value.gameCount; n++) {
const key = member.participantId + '-' + n;
// .score,
let score = '';
if (member.scores && member.scores[n-1] && typeof member.scores[n-1] === 'object' && 'score' in member.scores[n-1]) {
score = member.scores[n-1].score ?? '';
} else if (member.scores && typeof member.scores[n-1] === 'number') {
score = member.scores[n-1];
}
scoresProxy.value[key] = score;
}
});
}
// fetchEventData
watch([participants, () => event.value?.gameCount], () => {
initScoresProxy();
});
// ( ) // ( )
const unassignedMembers = ref([]); const unassignedMembers = ref([]);