Commit ac48f733 authored by Hannes Warnestad's avatar Hannes Warnestad
Browse files

gogogo

parent 86fcdcc4
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Kategori: Hållbar konsumtion</title><header><script src="form5.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Hållbar konsumtion 1</h1></div></header></head><body><form-5></form-5><script src="form5.bundle.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Kategori: H&Aringllbar konsumtion</title><header><script src="form5.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">H&Aringllbar konsumtion 1</h1></div></header></head><body><form-5></form-5><script src="form5.bundle.js"></script></body></html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -14,7 +14,7 @@
<body>
<h1>Form5</h1>
<h1>&Aring</h1>
<form-5></form-5>
<!-- <h1>Form2</h1>
<form-2></form-2>
......
......@@ -2,13 +2,13 @@
<html lang="sv">
<head>
<meta charset="UTF-8">
<title>Kategori: Hållbar konsumtion</title>
<title>Kategori: H&Aringllbar konsumtion</title>
<header>
<script src="form5.bundle.js"></script>
<div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;">
<h1
style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">
Hållbar konsumtion 1
H&Aringllbar konsumtion 1
</h1>
</div>
</header>
......
......@@ -17,10 +17,10 @@ export function writeToServer(myData) {
.catch(err => console.error("ERROR WRITING: " + err));
}
export function readFromServer(_form) {
const headers = { Origin: "http://rest-api-service-conventionswe.apps.redpill-linpro.com/" };
const params = {form: _form};
const promise = HTTP.jsonp(url, {headers, params});
export function readFromServer(_form, _value) {
// const headers = { Origin: "http://rest-api-service-conventionswe.apps.redpill-linpro.com/" };
const params = {form: _form, value:_value};
const promise = HTTP.get(url, {params});
return promise;
......
......@@ -5,7 +5,7 @@ const filterServiceData = {
{ value: 2, label: "Buss" },
{ value: 3, label: "Promenad" },
{ value: 4, label: "Samåkning" },
{ value: 5, label: "Båt" }
{ value: 5, label: "B&Aringt" }
]
)),
form12: new Promise(resolve => resolve([
......@@ -86,7 +86,7 @@ const filterServiceData = {
form53: new Promise(resolve => resolve([
{ value: 0, label: "Kläder" },
{ value: 1, label: "Porslin" },
{ value: 2, label: "Möbler" },
{ value: 2, label: "M&oumlbler" },
{ value: 3, label: "Leksaker" },
{ value: 4, label: "Fritidsprylar" },
{ value: 5, label: "Fordon" },
......
......@@ -27,11 +27,9 @@ class multiRadioButtonSelect extends WC {
attributeChanged(name, oldVal, newVal) {
if (oldVal !== newVal) {
if (name === "name") {
console.log("inside" + this.radioButtons.length)
this.name = newVal;
let count = 0;
this.radioButtons.forEach((rb) => {
console.log(this.multi)
if (this.multi)
rb.setAttribute("name", newVal);
else
......@@ -56,7 +54,6 @@ class multiRadioButtonSelect extends WC {
}
else if (name === "multi") {
this.multi = true;
console.log("YEYSYSYSYSYSYS");
}
}
}
......
......@@ -22,13 +22,20 @@ class resultBase extends WC {
load: function () {
allChartsInfo[i].dataMethod.then(res => {
console.log(res)
this.xAxis.categories = res.xNames;
//this.xAxis.categories = res.xNames;
console.log("BEfore read")
readFromServer(res.data).then(data => {
console.log("after read");
console.log(data);
// this.addSeries();
});
for (let i = 0; i < res.xNames.length; i++) {
readFromServer(res.data, i).then(res2 => {
console.log("after read" + res2);
console.log(res2);
this.addSeries({
name: res.xNames[i],
data: res2.count
})
// this.addSeries();
});
}
this.reflow();
});
......
No preview for this file type
#Generated by Maven
#Mon Nov 23 16:51:07 CET 2020
#Mon Nov 23 17:37:13 CET 2020
groupId=com.rplp.forms
artifactId=rplp-forms
version=1.0.0
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment