v1.0.3 - 添加批量添加比赛功能
This commit is contained in:
@@ -72,7 +72,10 @@
|
||||
<section id="manage-matches-tab" class="tab-content">
|
||||
<div class="section-header">
|
||||
<h2>⚽ 比赛管理</h2>
|
||||
<button onclick="showAddMatchModal()" class="btn-primary">+ 添加比赛</button>
|
||||
<div>
|
||||
<button onclick="showBatchAddMatchModal()" class="btn-secondary">批量添加</button>
|
||||
<button onclick="showAddMatchModal()" class="btn-primary">+ 添加比赛</button>
|
||||
</div>
|
||||
</div>
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
@@ -154,6 +157,35 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 批量添加比赛弹窗 -->
|
||||
<div id="batch-match-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<span class="close" onclick="closeModal('batch-match-modal')">×</span>
|
||||
<h2>批量添加比赛</h2>
|
||||
<div class="form-group">
|
||||
<label>比赛数据(每行一条,用逗号分隔)</label>
|
||||
<textarea id="batch-match-data" rows="12" placeholder="比赛代码,主队,客队,比赛时间,轮次
|
||||
例如:
|
||||
M001,阿根廷,法国,2026-07-15 21:00,决赛
|
||||
M002,巴西,德国,2026-07-14 18:00,半决赛
|
||||
M003,西班牙,荷兰,2026-07-14 21:00,半决赛"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>轮次(可选,批量设置)</label>
|
||||
<select id="batch-match-round">
|
||||
<option value="">-- 使用数据中的轮次 --</option>
|
||||
<option value="小组赛">小组赛</option>
|
||||
<option value="16强">16强</option>
|
||||
<option value="8强">8强</option>
|
||||
<option value="半决赛">半决赛</option>
|
||||
<option value="季军赛">季军赛</option>
|
||||
<option value="决赛">决赛</option>
|
||||
</select>
|
||||
</div>
|
||||
<button onclick="batchAddMatches()" class="btn-primary">批量添加</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 添加比赛弹窗 -->
|
||||
<div id="match-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
|
||||
Reference in New Issue
Block a user