전투이벤트 진행시간 추가

진행시간 기준 종료시간 계산
This commit is contained in:
2025-07-01 18:05:59 +09:00
parent d4db33bcf0
commit 0d8fb7b327
4 changed files with 96 additions and 47 deletions

View File

@@ -30,7 +30,11 @@ import {
} from '../../components/common';
import { convertKTC, convertKTCDate, convertUTC, timeDiffMinute } from '../../utils';
import { BattleEventModal } from '../../components/ServiceManage';
import { INITIAL_PAGE_SIZE, INITIAL_PAGE_LIMIT } from '../../assets/data/adminConstants';
import {
INITIAL_PAGE_SIZE,
INITIAL_PAGE_LIMIT,
BATTLE_EVENT_OPERATION_TIME_WAIT_SECONDS,
} from '../../assets/data/adminConstants';
import { useDataFetch, useModal, useTable, withAuth } from '../../hooks/hook';
import { StatusWapper, StatusLabel } from '../../styles/ModuleComponents';
import { battleEventStatus, battleRepeatType } from '../../assets/data/options';
@@ -98,7 +102,7 @@ const BattleEvent = () => {
const endTime = (start_dt, operation_time) =>{
const startDate = new Date(start_dt);
startDate.setSeconds(startDate.getSeconds() + operation_time);
startDate.setSeconds(startDate.getSeconds() + operation_time + BATTLE_EVENT_OPERATION_TIME_WAIT_SECONDS);
return startDate;
}
@@ -295,16 +299,16 @@ const BattleEvent = () => {
<th width="90">그룹</th>
<th width="70">이벤트 ID</th>
<th width="200">이벤트명</th>
<th width="90">게임모드</th>
<th width="80">반복</th>
<th width="100">기간 시작일(KST)</th>
<th width="100">기간 종료일(KST)</th>
<th width="100">이벤트 시작시간(KST)</th>
<th width="100">이벤트 종료시간(KST)</th>
<th width="90">이벤트 상태</th>
<th width="90">게임모드</th>
{/*<th width="90">라운드 시간</th>*/}
{/*<th width="90">배정포드</th>*/}
<th width="70">라운드 </th>
{/*<th width="70">라운드 수</th>*/}
<th width="70">핫타임</th>
<th width="100">확인 / 수정</th>
<th width="150">히스토리</th>
@@ -321,6 +325,7 @@ const BattleEvent = () => {
<td>{battle.group_id}</td>
<td>{battle.id}</td>
<td>{battle.event_name}</td>
<td>{battle.game_mode_id}</td>
<StatusWapper>
<StatusLabel $status={battle.repeat_type}>
{battleRepeatType.find(data => data.value === battle.repeat_type).name}
@@ -335,10 +340,9 @@ const BattleEvent = () => {
{battleEventStatus.find(data => data.value === battle.status).name}
</StatusLabel>
</StatusWapper>
<td>{battle.game_mode_id}</td>
{/*<td>{secondToMinutes(battle.round_time)}분</td>*/}
{/*<td>{battle.reward_group_id}</td>*/}
<td>{battle.round_count}</td>
{/*<td>{battle.round_count}</td>*/}
<td>{battle.hot_time}</td>
<td>
<Button theme="line" text="상세보기"