refactor: remove 投放方式 column from campaign table
This commit is contained in:
@@ -465,7 +465,6 @@
|
||||
<th>Pkg / 包名</th>
|
||||
<th>投放国家</th>
|
||||
<th>渠道</th>
|
||||
<th>投放方式</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
@@ -649,7 +648,6 @@
|
||||
if (pf !== 'all') data = data.filter(c => c.product === pf);
|
||||
if (cf !== 'all') data = data.filter(c => c.channel === cf);
|
||||
|
||||
const modeColor = m => m === '自投' ? 'status-active' : (m === '代投' ? 'status-pause' : '');
|
||||
const tbody = document.querySelector('#campaignTable tbody');
|
||||
tbody.innerHTML = data.map(c => `
|
||||
<tr>
|
||||
@@ -658,7 +656,6 @@
|
||||
<td class="num-cell" style="font-size:11px">${c.pkg}</td>
|
||||
<td><span class="pkg-tag">${c.geo}</span></td>
|
||||
<td>${c.channel}</td>
|
||||
<td><span class="status-badge ${modeColor(c.mode)}" style="padding:2px 8px;font-size:10px;">${c.mode}</span></td>
|
||||
</tr>
|
||||
`).join('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user