|
1 | 1 | <template> |
2 | 2 | <div class="container"> |
3 | 3 | <h1>Explanation to be added</h1> |
4 | | - |
| 4 | + |
5 | 5 | <b-button |
6 | | - @click="GetShapByErrors" |
| 6 | + @click="getShapByErrors" |
7 | 7 | variant="primary" |
8 | 8 | style="width: 90px" |
9 | 9 | class="ml-5 w-10" |
10 | 10 | >Get graphs</b-button |
11 | | - > |
12 | | - |
13 | | - <!-- <b-card no-body class="overflow-hidden" style="max-width: 1700px;" v-for="r in this.images" :key="r.details"> |
14 | | - <b-row no-gutters> |
15 | | - <b-col md="6"> |
16 | | - <b-card-img :src="r.url" alt="Image" class="rounded-0"></b-card-img> |
17 | | - </b-col> |
18 | | - <b-col md="6"> |
19 | | - <b-card-body title="Horizontal Card"> |
20 | | - <b-card-text> |
21 | | - This is a wider card with supporting text as a natural lead-in to additional content. |
22 | | - This content is a little bit longer. |
23 | | - </b-card-text> |
24 | | - </b-card-body> |
25 | | - </b-col> |
26 | | - </b-row> |
27 | | - </b-card> --> |
| 11 | + > |
| 12 | + <div> |
| 13 | + <b-card-group deck v-for="img in images" :key="img"> |
| 14 | + <b-card no-body class="overflow-hidden" style="max-width: 2000px"> |
| 15 | + <b-row no-gutters> |
| 16 | + <b-col md="6"> |
| 17 | + <b-card-img |
| 18 | + :src="img" |
| 19 | + alt="Image" |
| 20 | + class="rounded-0" |
| 21 | + ></b-card-img> |
| 22 | + </b-col> |
| 23 | + <b-col md="6"> |
| 24 | + <b-card-body title="Horizontal Card"> |
| 25 | + <b-card-text> |
| 26 | + This is a wider card with supporting text as a natural lead-in |
| 27 | + to additional content. This content is a little bit longer. |
| 28 | + </b-card-text> |
| 29 | + </b-card-body> |
| 30 | + </b-col> |
| 31 | + </b-row> |
| 32 | + </b-card> |
| 33 | + </b-card-group> |
| 34 | + </div> |
28 | 35 | </div> |
29 | 36 | </template> |
30 | 37 |
|
31 | 38 | <script> |
32 | 39 | export default { |
33 | 40 | data() { |
34 | 41 | return { |
35 | | - images:[], |
| 42 | + images: [], |
36 | 43 | }; |
37 | 44 | }, |
38 | 45 |
|
39 | 46 | methods: { |
40 | | - async test() { |
41 | | - let info = await this.axios.get( |
42 | | - "http://localhost:8080/shap/GetShapByErrors/" |
43 | | - ); |
44 | | - errors_plot = []; |
45 | | - info.data.forEach((element) => { |
46 | | - errors_plot.push(element); |
47 | | - }); |
48 | | -
|
49 | | - return newRecipes; |
| 47 | + async getShapByErrors() { |
| 48 | + // let info = await this.axios.get( |
| 49 | + // "http://localhost:8080/shap/GetShapByErrors/" |
| 50 | + // ); |
| 51 | + // errors_plot = []; |
| 52 | + // info.data.forEach((element) => { |
| 53 | + // errors_plot.push(element); |
| 54 | + // }); |
| 55 | + this.images= ["https://picsum.photos/400/400/?image=20","https://picsum.photos/400/400/?image=20","https://picsum.photos/400/400/?image=20"] |
| 56 | + console.log(this.images) |
50 | 57 | }, |
51 | 58 | }, |
52 | 59 | }; |
|
0 commit comments