Added cost changes

This commit is contained in:
Helloworld
2022-05-29 22:37:31 +08:00
parent a8bc18c220
commit fe351346c6
2 changed files with 8 additions and 1 deletions

View File

@@ -70,12 +70,18 @@ const action = (action_data) => {
.val(action_data.type ?? "")
.change(function () { action_data.type = $(this).val(); });
tr.append($('<td>').append(type_input));
// Kills
// 击杀数
const kills_input = input_text()
.attr('type', 'number')
.val(String(action_data.kills ?? ""))
.change(function () { action_data.kills = $(this).val !== "" ? Number($(this).val()) : undefined; });
tr.append($('<td>').append(kills_input));
// 费用变化
const cost_changes = input_text()
.attr('type', 'number')
.val(String(action_data.cost_changes ?? ""))
.change(function () { action_data.cost_changes = $(this).val !== "" ? Number($(this).val()) : undefined; });
tr.append($('<td>').append(cost_changes));
// 干员
const name_input = input_text()
.val(action_data.name ?? "")

View File

@@ -62,6 +62,7 @@
<tr>
<th>类别</th>
<th>击杀数</th>
<th>费用变化</th>
<th>干员名字</th>
<th>x坐标</th>
<th>y坐标</th>