This commit is contained in:
Alessandro Francia
2018-04-24 09:31:15 +02:00
parent 0077f1ce42
commit b343aa25af
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ import { AppModel, store } from "../store";
export default class Tooling extends Vue{
public test: Array<Object> = (store.state as AppModel).tooling.magazines;
$store: any;
public test: Array<Object> = (this.$store.state as AppModel).tooling.magazines;
public archiveClick = function(){
console.log(this.test);
+1 -1
View File
@@ -6,7 +6,7 @@
</div>
<div class="tooling-boxbody">
<div class="list-top scrollable">
<card v-for="t in test" :key="t.id" title="tooling" img-source="../assets/images/image_tooling.PNG" @click="archiveClick()"></card>
<card v-for="t in test" :key="t.id" :title="t.type == 0 ? 'Magazzino ' + t.id: 'Mandrino ' + t.id" img-source="../assets/images/image_tooling.PNG" @click="archiveClick()"></card>
<!-- <card title="magazzino 1" img-source="../assets/images/image_tooling.PNG" @click="archiveClick()"></card>
<card title="magazzino 1" @click="archiveClick()"></card>
<card title="magazzino 1" @click="archiveClick()"></card>
+1 -1
View File
@@ -20,7 +20,7 @@ let router = new VueRouter({ linkActiveClass: "inpath", linkExactActiveClass: "a
router.addRoutes(routes);
// ATTENZIONE : mettere a true durante lo sviluppo e riportare a false per la pubblicazione
let developerMode = false;
let developerMode = true;
// manipulate the title page
router.beforeEach((to, from, next) => {