mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
Add new oper button for groups
This commit is contained in:
@@ -169,9 +169,17 @@ const group = (group_data, delete_func) => {
|
||||
loadData();
|
||||
})));
|
||||
|
||||
const new_oper_button = $('<button class="btn btn-primary">新增干员</button>')
|
||||
.click(() => {
|
||||
group_data.opers = group_data.opers ?? [];
|
||||
group_data.opers.push({});
|
||||
loadData();
|
||||
});
|
||||
|
||||
return $('<div>')
|
||||
.append(name_div_row)
|
||||
.append(table);
|
||||
.append(table)
|
||||
.append(new_oper_button);
|
||||
};
|
||||
|
||||
// 加载数据
|
||||
|
||||
Reference in New Issue
Block a user