update Mo 2. Mär 10:31:01 CET 2020
This commit is contained in:
parent
ba758ac782
commit
7ce52c8be9
@ -68,10 +68,10 @@ function add_resp_progressbar(p_id, p_type, p_agt, p_start, p_end) {
|
||||
break;
|
||||
};
|
||||
|
||||
$( '#pg-' + p_type ).append( '<div class="progress mt-1 '+bar_border+'" id="pg-' + p_id + '" style="height: 0.9375rem; font-size: 0.9375rem;"></div>'); //+ ' ></div>' );
|
||||
$( '#pg-' + p_type ).append( '<div class="progress mt-1 position-relative '+bar_border+'" id="pg-' + p_id + '" style="height: 15px; font-size: 14px;"></div>'); //+ ' ></div>' );
|
||||
|
||||
$( '#pg-'+ p_id ).append( '<div id="pg-bar'+ p_id +'" class="progress-bar progress-bar-striped '+ bar_background +'" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>' );
|
||||
|
||||
$( '#pg-bar'+ p_id ).append('<small id="pg-text'+ p_id +'" class="justify-content-center d-flex position-absolute w-100"></small>');
|
||||
|
||||
|
||||
|
||||
@ -107,14 +107,14 @@ function add_resp_progressbar(p_id, p_type, p_agt, p_start, p_end) {
|
||||
$("#pg-bar"+p_id)
|
||||
.css("width", "100%")
|
||||
.attr("aria-valuenow", 100)
|
||||
.text("")
|
||||
.addClass("ion-md-checkmark-circle");
|
||||
$("#pg-text"+p_id).text("");
|
||||
clearInterval(counter_ID[p_id]);
|
||||
} else {
|
||||
$("#pg-bar"+p_id)
|
||||
.css("width", current_progress + "%")
|
||||
.attr("aria-valuenow", current_progress)
|
||||
.text(minutes + " min");
|
||||
.attr("aria-valuenow", current_progress);
|
||||
$("#pg-text"+p_id).text(minutes);
|
||||
};
|
||||
};
|
||||
|
||||
@ -131,9 +131,9 @@ function add_resp_progressbar(p_id, p_type, p_agt, p_start, p_end) {
|
||||
var names = ["CB FW Cottbus 1", "CB FW Madlow", "Lee", "Grant"];
|
||||
var groupCount = 2;
|
||||
var groups = new vis.DataSet();
|
||||
for (var g = 0; g < groupCount; g++) {
|
||||
groups.add({ id: g, content: names[g] });
|
||||
};
|
||||
//for (var g = 0; g < groupCount; g++) {
|
||||
// groups.add({ id: g, content: names[g] });
|
||||
//};
|
||||
|
||||
var date = new Date();
|
||||
date.setMinutes(date.getMinutes() - 0,1 );
|
||||
@ -351,6 +351,8 @@ if (arrayItem.agt){
|
||||
add_resp_progressbar(arrayItem.resp_uuid, item_type, arrayItem.agt, new Date(arrayItem.set_time), new Date(arrayItem.arrival_time));
|
||||
items.update(new_item);
|
||||
groups.update({ id: arrayItem.wache_id, content: arrayItem.wache_name });
|
||||
$( '#'+item_type+'-counter' ).text('x')
|
||||
|
||||
});
|
||||
|
||||
console.log(items.get());
|
||||
|
||||
@ -228,30 +228,38 @@ style(type='text/css').
|
||||
.text-info.font-weight-bold Einsatzrückmeldungen
|
||||
.card-body.p-2
|
||||
.d-flex.fustify-content-between.font-weight-bold
|
||||
#rueckmeldung.list-group.list-group-horizontal.text-center.w-100
|
||||
a.list-group-item.bg-secondary.flex-fill.text-success 3 EK
|
||||
a.list-group-item.bg-secondary.flex-fill.text-info 2 MA
|
||||
a.list-group-item.bg-secondary.flex-fill.text-light 1 FK
|
||||
#rueckmeldung.list-group.list-group-horizontal.text-center
|
||||
a.list-group-item.bg-warning.flex-fill.text-dark 2 AGT
|
||||
.list-group.list-group-horizontal.text-center.w-100
|
||||
.list-group-item.flex-fill.text-success
|
||||
a#ek-counter 0
|
||||
a EK
|
||||
.list-group-item.flex-fill.text-info
|
||||
a#ma-counter 0
|
||||
a MA
|
||||
.list-group-item.flex-fill.text-light
|
||||
a#fk-counter 0
|
||||
a FK
|
||||
.list-group.text-center
|
||||
.list-group-item.border.border-warning.flex-fill.text-warning
|
||||
a#agt-counter 0
|
||||
a AGT
|
||||
//a.badge.badge-warning 2 AGT
|
||||
.row
|
||||
.col-4#pg-ek
|
||||
.progress.mt-1
|
||||
//.progress.mt-1
|
||||
.progress-bar.progress-bar-striped.bg-success(role='progressbar', style='width: 25%', aria-valuenow='25', aria-valuemin='0', aria-valuemax='100')
|
||||
a(style='') 2min
|
||||
.progress.mt-1.border.border-warning(style='height: 20px;')
|
||||
//.progress.mt-1.border.border-warning(style='height: 20px;')
|
||||
.progress-bar.progress-bar-striped.bg-success(role='progressbar', style='width: 25%', aria-valuenow='25', aria-valuemin='0', aria-valuemax='100')
|
||||
h 2min
|
||||
.progress.mt-1
|
||||
//.progress.mt-1
|
||||
.progress-bar.progress-bar-striped.bg-success.ion-md-checkmark-circle(role='progressbar', style='width: 100%', aria-valuenow='100', aria-valuemin='0', aria-valuemax='100')
|
||||
.col-4#pg-ma
|
||||
.progress.mt-1
|
||||
//.progress.mt-1
|
||||
.progress-bar.progress-bar-striped.bg-info(role='progressbar', style='width: 25%', aria-valuenow='25', aria-valuemin='0', aria-valuemax='100') 3min
|
||||
.progress.mt-1
|
||||
//.progress.mt-1
|
||||
.progress-bar.progress-bar-striped.bg-info(role='progressbar', style='width: 25%', aria-valuenow='25', aria-valuemin='0', aria-valuemax='100') 1min
|
||||
.col-4#pg-fk
|
||||
.progress.mt-1.border.border-warning
|
||||
//.progress.mt-1.border.border-warning
|
||||
.progress-bar.progress-bar-striped.bg-light(role='progressbar', style='width: 50%', aria-valuenow='50', aria-valuemin='0', aria-valuemax='100') 10min
|
||||
.card-body.p-2
|
||||
#visualization.border.rounded(style='background-color:white')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user