You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/resources/js/Home/views/Home.vue

56 lines
1.5 KiB

<template>
<v-container fluid>
<v-layout row wrap>
<a
:href="module.href"
:class="'flex ' + module.main_class"
v-for="( module ,key ) in getModules"
:key="key"
>
<wm-tile
:TileClass="module.title_class"
:TitleEn="module.title_en"
:TitleFa="module.title_fa"
:GradientBegin="module.gradient_begin"
:GradientEnd="module.gradient_end"
:ImageURL="module.img_url"
:ImageHeight="module.img_height"
></wm-tile>
5 years ago
</a>
</v-layout>
5 years ago
<router-link :to="{name: 'AddModule'}">
<v-btn large fab color="cyan" fixed bottom left dark style="left:5%">
<v-icon dark>fas fa-plus</v-icon>
</v-btn>
5 years ago
</router-link>
5 years ago
<!-- <wm-wrapper></wm-wrapper> -->
</v-container>
</template>
<script>
import Tile from "@Global/components/Tiles/Tile";
5 years ago
// import Wrapper from "@Global/components/FormLoader/Wrapper";
5 years ago
import { mapGetters, mapActions } from "vuex";
export default {
5 years ago
data: () => ({}),
components: {
5 years ago
"wm-tile": Tile,
5 years ago
// "wm-wrapper": Wrapper,
},
computed: {
5 years ago
...mapGetters("role_permission", ["getModules"])
},
5 years ago
methods: {
...mapActions("role_permission", ["loadModules"])
},
created() {
5 years ago
this.loadModules({ home_page: true });
}
};
</script>
<style scoped lang="scss">
</style>