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/AddModule.vue

167 lines
6.3 KiB

5 years ago
<template>
5 years ago
<v-container fluid>
<div class="Tile Shadowed Padd-0 WM-Margin-B-10">
<wm-breadcrumbs LinkClass="WM-Link-Cyan" :items="breadcrumbItems"></wm-breadcrumbs>
</div>
<div class="Tile Shadowed">
4 years ago
<page-title
5 years ago
titleFaClass="black--text"
color="black"
titleFa=" افزودن بخش جدید "
4 years ago
titleEn=" Add a New Module "
imageAddress="MacRed.jpg"
></page-title>
<module-items :modules="modules" />
<!-- <div :class="'ModuleItem '+module.color_class+'Border'">-->
<!-- <div :class="'itrator En '+module.color_class+'&#45;&#45;text'">{{index+1}}</div>-->
<!-- <v-layout row wrap class="WM-Margin-0">-->
<!-- <v-flex lg4 class="Title">-->
<!-- <div class="Fa">{{ module.title_fa }}</div>-->
<!-- <div class="En">{{ module.title_en }}</div>-->
<!-- </v-flex>-->
<!-- <v-flex lg4 class="Price">-->
<!-- <div class="Old En" v-if="module.old_price">{{ Intl.NumberFormat().format(module.old_price) }}</div>-->
<!-- <div class="Main En">-->
<!-- {{ Intl.NumberFormat().format(module.price) }}-->
<!-- <span class="Unit">IRT</span>-->
<!-- </div>-->
<!-- </v-flex>-->
<!-- <v-flex lg4 class="WM-Align-L" >-->
<!-- <v-tooltip top transition="slide-x-transition" color="black" v-if="module.has_module == 'no'" >-->
<!-- <template v-slot:activator="{ on }">-->
<!-- <v-btn-->
<!-- v-on="on"-->
<!-- small-->
<!-- @click.native="$_openModalStack({ name: 'rolePermission_trialConfirm', model: module})"-->
<!-- slot="activator"-->
<!-- fab-->
<!-- :color="module.color_class"-->
<!-- >-->
<!-- <v-icon dark>WMi-history</v-icon>-->
<!-- </v-btn>-->
<!-- </template>-->
<!-- <span>فعالسازی نسخه ی 15 روزه، آزمایشی</span>-->
<!-- </v-tooltip>-->
<!-- &lt;!&ndash; <v-tooltip top transition="slide-x-transition" color="black" v-if="module.has_module == 'no' || module.is_trial == 'yes'">-->
<!-- <template v-slot:activator="{ on }">-->
<!-- <v-btn-->
<!-- @click.native="$_openModalStack({ name: 'rolePermission_paymentConfirm', model: module})"-->
<!-- slot="activator"-->
<!-- fab-->
<!-- :color="module.color_class"-->
<!-- dark-->
<!-- v-on="on"-->
<!-- >-->
<!-- <v-icon dark> WMi-plus </v-icon>-->
<!-- </v-btn>-->
<!-- </template>-->
<!-- <span> خرید </span>-->
<!-- </v-tooltip> &ndash;&gt;-->
<!-- </v-flex>-->
<!-- <v-flex lg12 class="description RTL" v-if="module.description_title">-->
<!-- <v-expansion-panel popout style="margin-bottom:0px;">-->
<!-- <v-expansion-panel-content>-->
<!-- <template v-slot:header>-->
<!-- <v-flex lg12 class="text-lg-right Title">-->
<!-- <v-icon>WMi-align-right</v-icon>-->
<!-- {{ module.description_title }}-->
<!-- </v-flex>-->
<!-- </template>-->
<!-- <v-card>-->
<!-- <v-card-text style="padding:0px 40px 10px 40px">-->
<!-- <div class="WM-Tile">-->
<!-- <v-layout row wrap class="WM-Margin-0">-->
<!-- <v-flex lg12 class="text-lg-right zIndex99 Text" v-html="module.description"></v-flex>-->
<!-- </v-layout>-->
<!-- </div>-->
<!-- </v-card-text>-->
<!-- </v-card>-->
<!-- </v-expansion-panel-content>-->
<!-- </v-expansion-panel>-->
<!-- </v-flex>-->
<!-- </v-layout>-->
<!-- </div>-->
5 years ago
</div>
5 years ago
5 years ago
<!-- --------------------------------------------------------------------
5 years ago
Modals :: BEGIN
5 years ago
---------------------------------------------------------------------->
<template>
<div class="text-xs-center">
</div>
</template>
5 years ago
5 years ago
<!-- --------------------------------------------------------------------
5 years ago
Modals :: END
5 years ago
---------------------------------------------------------------------->
</v-container>
5 years ago
</template>
<script>
4 years ago
import ModuleItems from "@Admin/components/Client/Module/Items.vue";
5 years ago
import { mapGetters, mapActions, mapMutations } from "vuex";
export default {
components: {
4 years ago
ModuleItems,
5 years ago
},
data() {
return {
breadcrumbItems: [
{
text: "",
disabled: false,
routeName: "Home",
5 years ago
icon: "Real-Estate"
5 years ago
},
{
text: " افزودن بخش جدید ",
disabled: true
}
],
4 years ago
modules: [
{ title_fa:'مدیریت ارتباط با مشتری', title_en:'Customer Relationship Management - CRM', color:'cyan', icon:'users', price:3500000, monthly_price:120000, remain_days:'251'},
{ title_fa:'مدیریت محصولات و خدمات', title_en:'Products & Services Management System', color:'orange', icon:'align-right', price:1500000, monthly_price:60000 },
{ title_fa:'سیستم مدیریت فروشگاه', title_en:'Store Management System', color:'red', icon:'communications', price:5000000, monthly_price:160000},
{ title_fa:'سیستم مدیریت انبار', title_en:'Warehouse Management System', color:'purple', icon:'truck', price:2500000, monthly_price:120000, remain_days:'14'},
{ title_fa:'سیستم مدیریت مالی', title_en:'Finance Management System', color:'blue', icon:'chart-pie', price:4500000, monthly_price:160000},
],
5 years ago
allModules: [],
5 years ago
};
},
computed: {
5 years ago
...mapGetters("rolePermission", ["getAllModules", "getModules"])
5 years ago
},
methods: {
5 years ago
...mapActions("rolePermission", ["loadAllModules", "loadModules"]),
5 years ago
async loadPage() {
await this.loadAllModules({ home_page: true });
5 years ago
await this.loadModules({ home_page: true });
for (const allModule of this.getAllModules) {
let module = this.getModules.find(x => x.id == allModule.id);
if (module) {
allModule['has_module'] = 'yes';
allModule['is_trial'] = module.is_trial;
} else {
allModule['has_module'] = 'no';
5 years ago
}
}
this.allModules = this.getAllModules;
}
5 years ago
},
5 years ago
beforeMount() {
this.loadPage();
5 years ago
}
};
5 years ago
</script>
<style scoped lang="scss">
4 years ago
.module-item {
5 years ago
position: relative;
4 years ago
padding: 2px 10px;
5 years ago
margin-bottom: 10px;
}
5 years ago
</style>