knockoutmetingen
This commit is contained in:
@@ -194,7 +194,7 @@
|
||||
</button>
|
||||
|
||||
|
||||
<div data-bind="visible: aantalmetingen() > 0" id="hc-chart1" style="min-width: 310px; height: 400px; margin: 0 auto" >
|
||||
<div id="hc-chart1" style="min-width: 310px; height: 400px; margin: 0 auto" >
|
||||
</div>
|
||||
|
||||
<canvas style="display: none" id="ijkpuntencanvas">
|
||||
|
||||
@@ -263,7 +263,7 @@ ls.initIJkpuntenModel = function(){
|
||||
medewerkerKiezen : ko.observable(false),
|
||||
ijkgrafiek : ko.observable(''),
|
||||
scoretype : ko.observable(''),
|
||||
aantalmetingen : ko.observable(0),
|
||||
|
||||
|
||||
initBindings :function(){
|
||||
var self = ls.IJkpuntenModel;
|
||||
@@ -429,8 +429,6 @@ ls.initIJkpuntenModel = function(){
|
||||
'orgid': self.selectedOrg().id
|
||||
};
|
||||
|
||||
console.log(submitData, "data")
|
||||
|
||||
showAjaxLoader();
|
||||
$.post('index.php/monpas/rapijkpunten/getingevuldelijsten/', submitData, function(result){
|
||||
self.erzijnlijsten(false);
|
||||
@@ -470,11 +468,16 @@ ls.initIJkpuntenModel = function(){
|
||||
self.nieuwsteVersie(nieuw);
|
||||
}
|
||||
$.each(result.lijsten, function(j,l){
|
||||
console.log(l, "l")
|
||||
|
||||
if(j == 0){
|
||||
self.label(l.label)
|
||||
self.aantalmetingen(l.metingen)
|
||||
|
||||
}
|
||||
|
||||
|
||||
self.lijsten.push(new fAddLijst(j,l, nieuw))
|
||||
|
||||
});
|
||||
|
||||
if (result.aantal) {
|
||||
@@ -609,7 +612,6 @@ ls.initIJkpuntenModel = function(){
|
||||
},
|
||||
|
||||
fOpenGrafiek: function(){
|
||||
console.log("in de grafiek")
|
||||
|
||||
var self = ls.IJkpuntenModel;
|
||||
|
||||
@@ -633,8 +635,8 @@ ls.initIJkpuntenModel = function(){
|
||||
xastitel = l.label;
|
||||
}
|
||||
var zwart = '#0000';
|
||||
if(l.gemscore && parseFloat(l.gemscore) > 0){
|
||||
ambitiewaarde = parseFloat(l.gemscore);
|
||||
if(l.gemscore && Number(l.gemscore) > 0){
|
||||
ambitiewaarde = Number(l.gemscore);
|
||||
}
|
||||
|
||||
lijsten[i].scores = l.scores();
|
||||
@@ -647,11 +649,7 @@ ls.initIJkpuntenModel = function(){
|
||||
labels.push(g.nummer);
|
||||
scores.push({ y : parseFloat(g.gem),
|
||||
color : g.kleur,
|
||||
name : g.nummer,
|
||||
soort : 'score',
|
||||
versie : l.periodenummer,
|
||||
vantm : l.vantm,
|
||||
omschrijving: omschrijving});
|
||||
name : g.nummer });
|
||||
|
||||
verkorteVersies.push(l.periodenummer);
|
||||
|
||||
@@ -789,9 +787,6 @@ ls.initIJkpuntenModel = function(){
|
||||
showInLegend: false
|
||||
});
|
||||
|
||||
console.log(balkGegevens, "series")
|
||||
console.log(xas, "xas")
|
||||
|
||||
},
|
||||
|
||||
fToonToelichting: function(){
|
||||
|
||||
Reference in New Issue
Block a user