전투시스템 스케줄러 game mode 방식 변경

This commit is contained in:
2025-06-19 18:54:15 +09:00
parent 495243a1a3
commit b2b579ead1
4 changed files with 84 additions and 36 deletions

View File

@@ -8,7 +8,7 @@ import {
BattleEventDelete,
BattleEventDetailView, BattleEventStop,
BattleEventView,
BattleRewardView,
BattleRewardView, GameModeView,
} from '../../apis/Battle';
import { authList } from '../../store/authList';
@@ -91,6 +91,10 @@ const BattleEvent = () => {
data: battleRewardData
} = useDataFetch(() => BattleRewardView(token), [token]);
const {
data: gameModeData
} = useDataFetch(() => GameModeView(token), [token]);
const endTime = (start_dt, operation_time) =>{
const startDate = new Date(start_dt);
@@ -262,6 +266,7 @@ const BattleEvent = () => {
onReset={handleReset}
configData={battleConfigData}
rewardData={battleRewardData}
gameModeData={gameModeData}
/>
</FormWrapper>
<ViewTableInfo total={dataList?.total} total_all={dataList?.total_all} handleOrderBy={handleOrderByChange} handlePageSize={handlePageSizeChange}>
@@ -296,8 +301,9 @@ const BattleEvent = () => {
<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="90">라운드 시간</th>*/}
{/*<th width="90">배정포드</th>*/}
<th width="70">라운드 </th>
<th width="70">핫타임</th>
<th width="100">확인 / 수정</th>
@@ -313,7 +319,7 @@ const BattleEvent = () => {
checked={isRowSelected(battle.id)} />
</td>
<td>{battle.group_id}</td>
<td>{battle.event_id}</td>
<td>{battle.id}</td>
<td>{battle.event_name}</td>
<StatusWapper>
<StatusLabel $status={battle.repeat_type}>
@@ -329,8 +335,9 @@ const BattleEvent = () => {
{battleEventStatus.find(data => data.value === battle.status).name}
</StatusLabel>
</StatusWapper>
<td>{secondToMinutes(battle.round_time)}</td>
<td>{battle.reward_group_id}</td>
<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.hot_time}</td>
<td>
@@ -359,6 +366,7 @@ const BattleEvent = () => {
setDetailData={setDetailData}
configData={battleConfigData}
rewardData={battleRewardData}
gameModeData={gameModeData}
/>
<LogDetailModal