Добавил фронтенд
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
class UpdateClusterIdInAnomalyLog extends ControllerBase {
|
||||
// Конструктор
|
||||
constructor(url) {
|
||||
super("anomaly_logs/update_cluster_id");
|
||||
}
|
||||
|
||||
// Отправка запроса на сервер
|
||||
async SendRequest(log_id, cluster_id, cell) {
|
||||
let parameters = {
|
||||
'id': Number(log_id),
|
||||
'cluster_id': Number(cluster_id)
|
||||
};
|
||||
|
||||
await super.Any(parameters, "post");
|
||||
|
||||
this.UpdateCell(cluster_id, cell);
|
||||
}
|
||||
|
||||
ProcessResponse(response) {}
|
||||
|
||||
UpdateCell(cluster_id, cell) {
|
||||
cell.innerHTML = window.get_logs_clusters.clusters[cluster_id]["name"];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user