remove user

pull/1/head
saeid_01 5 years ago
parent 3087b87dc8
commit 89d6f5b75a

@ -1,6 +1,6 @@
{ {
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=126dc6f3c173336b3c08", "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=126dc6f3c173336b3c08",
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=79f8aa6edff8ead412ae", "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=a473f236ecf7672e01a4",
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=c02efa86f7529baae7b3", "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=31b2f14d982aa06c67c2",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=7096cbe1285511bfa614" "/js/vue/User/app.js": "/js/vue/User/app.js?id=1a93781a993e7f6b688c"
} }

@ -1,40 +0,0 @@
<template>
<v-app>
<div id="app">
<wm-background></wm-background>
<app-menu></app-menu>
<v-content>
<v-container fluid class="Login">
<div class="Tile">
<router-view></router-view>
<!-- <wm-tiles-layout></wm-tiles-layout> -->
</div>
</v-container>
</v-content>
</div>
</v-app>
</template>
<script>
import Background from '@Global/components/Body/Backgrounds/Gradient';
import Menu from '@Global/components/Drawer/SideBar';
export default {
components: {
'wm-background':Background,
appMenu: Menu,
},
};
</script>
<style lang="scss" scoped>
#app {
background-color: transparent;
// -webkit-font-smoothing: antialiased;
// -moz-osx-font-smoothing: grayscale;
}
.WM-Container-Fluid {
width: 100%;
height: 100%;
}
</style>

@ -1,82 +0,0 @@
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueScrollReveal from 'vue-scroll-reveal'
import Vuetify from 'vuetify'
import {global} from '../Global/mixins/global';
import 'popper.js'
import 'bootstrap-v4-rtl'
import 'bootstrap-v4-rtl/scss/bootstrap-rtl.scss'
import 'bootstrap-select'
import 'bootstrap-select/dist/css/bootstrap-select.css'
import 'vuetify/dist/vuetify.min.css' // Ensure you are using css-loader
import '@Global/assets/Font-Icons/css/fontello.css'
import "@Global/scss/style.scss"
// components
import PartTitle from "@Global/components/Dividers/PartTitle.vue";
import PageTitle from "@Global/components/Dividers/PageTitle.vue";
import Checkbox from "@Global/components/Inputs/Checkbox.vue";
import InfoBlock from "@Global/components/Misc/InfoBlock.vue";
import Breadcrumbs from '@Global/components/Misc/Breadcrumbs';
Vue.component('WM-PartTitle', PartTitle)
Vue.component('WM-PageTitle', PageTitle)
Vue.component('WM-Checkbox', Checkbox)
Vue.component('WM-InfoBlock', InfoBlock)
Vue.component('wm-breadcrumbs', Breadcrumbs)
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
window.Vue = require('vue');
/**
* The following block of code may be used to automatically register your
* Vue components. It will recursively scan this directory for the Vue
* components and automatically register them with their "basename".
*
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/
// const files = require.context('./', true, /\.vue$/i)
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue.use(Vuetify, {
iconfont: 'fa',
rtl: true,
});
// Vue.config.productionTip = false;
Vue.use(VueScrollReveal, {
class: 'v-scroll-reveal', // A CSS class applied to elements with the v-scroll-reveal directive; useful for animation overrides.
duration: 800,
scale: 1,
distance: '10px',
mobile: false
});
Vue.mixin(global);
const app = new Vue({
router,
store,
render: h => h(App),
}).$mount('#app');

@ -1,57 +0,0 @@
<template>
<v-dialog v-model="$store.state.ConfigUserDepartmentAdd" width="30%" transition="slide-x-transition">
<v-card class="RTL">
<v-card-title class=" grey lighten-3" primary-title>
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" افزودن دپارتمان " TitleEn=" Add a Deaprtment " color="orange"></WM-PartTitle>
</v-card-title>
<v-card-text>
<div class="row">
<v-flex lg12>
<v-card-text>
<v-autocomplete prepend-icon="fas fa-align-right" :items="departments" color="orange" item-text="name_fa" label=" دپارتمان مادر "></v-autocomplete>
<v-text-field label=" نام فارسی بخش یا دپارتمان " color="orange" prepend-icon="fas fa-tag" ></v-text-field>
<v-text-field label=" Deparment or Section Name " color="orange" prepend-icon="fas fa-tag" ></v-text-field>
</v-card-text>
</v-flex>
</div>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="orange" depressed dark @click="$store.state.ConfigUserDepartmentAdd = false">
<v-icon dark right>fas fa-check</v-icon> تایید اطاعلاعات
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<script>
export default {
props: {
},
data () {
return {
departments: [
{
name_fa: " فنی ",
name_en: " Technical ",
},
{
name_fa: " فروش ",
name_en: " Sale ",
},
{
name_fa: " مدیریت ",
name_en: " Management ",
}
]
}
}
};
</script>

@ -1,31 +0,0 @@
<template>
<v-flex lg12 style="position:relative; padding: 0px 15px;">
<v-card-text class="Duplicate">
<v-layout row wrap pl-2>
<v-flex lg6>
<v-text-field label=" نام فارسی دپارتمان " color="cyan" prepend-icon="fas fa-bars"></v-text-field>
</v-flex>
<v-flex lg6>
<v-text-field label=" Department English Name " color="cyan" prepend-icon="fas fa-bars"></v-text-field>
</v-flex>
<v-btn fab color="cyan" fixed bottom left dark style="left:-15px; bottom:-30px; position:absolute"><v-icon dark>fas fa-plus</v-icon></v-btn>
<v-btn fab small color="red" fixed bottom left dark style="left:-5px; top:-20px; position:absolute"><v-icon dark>fas fa-times</v-icon></v-btn>
</v-layout>
<v-flex lg12 style="position:relative; padding: 0px 15px; margin: 0px 20px;">
<v-card-text class="Duplicate">
<v-layout row wrap pl-2>
<v-flex lg6>
<v-text-field label=" نام فارسی بخش " color="cyan" prepend-icon="fas fa-align-right"></v-text-field>
</v-flex>
<v-flex lg6>
<v-text-field label=" Section English Name " color="cyan" prepend-icon="fas fa-align-right"></v-text-field>
</v-flex>
<v-btn fab small color="cyan" fixed bottom left dark style="left:-5px; bottom:-25px; position:absolute"><v-icon dark>fas fa-plus</v-icon></v-btn>
<v-btn fab small color="red" fixed bottom left dark style="left:-5px; top:-20px; position:absolute"><v-icon dark>fas fa-times</v-icon></v-btn>
</v-layout>
</v-card-text>
</v-flex>
</v-card-text>
</v-flex>
</template>

@ -1,141 +0,0 @@
<template>
<v-container>
<v-layout row wrap>
<v-flex xs12 lg12 mb-3>
<v-expansion-panel popout>
<v-expansion-panel-content v-for="(department,i) in departments" :key="i">
<template v-slot:header>
<v-flex lg4 pt-2 class="text-lg-right FA">
<span class="TitleNumber En">{{ parseInt(i+1) }}.</span>
{{ department.name_fa }}
</v-flex>
<v-flex lg4 pt-2 class="LTR EN">{{ department.name_en }}</v-flex>
<v-flex xl4 class="Buttons text-lg-center">
<v-tooltip top color="black">
<v-btn small slot="activator" fab color="cyan" dark>
<v-icon dark>fas fa-pencil-alt</v-icon>
</v-btn>
<span> ویرایش </span>
</v-tooltip>
<v-tooltip top color="black">
<v-btn small @click.native="$store.state.ConfigUserDepartmentAdd = true" slot="activator" fab color="orange" dark>
<v-icon dark>fas fa-plus</v-icon>
</v-btn>
<span> افزودن زیر مجمموعه </span>
</v-tooltip>
<v-tooltip top color="black">
<v-btn small slot="activator" fab color="red" dark>
<v-icon dark>fas fa-trash-alt</v-icon>
</v-btn>
<span> حذف آیتم </span>
</v-tooltip>
</v-flex>
</template>
<v-card>
<v-card-text style="padding:5px 30px">
<div class="WM-Tile" v-for="(section,j) in department.sections" :key="j">
<v-layout row wrap class="Content">
<div class="Number En">{{ parseInt(j+1)+'-'+parseInt(i+1) }}</div>
<v-flex lg4 class="text-lg-right zIndex99" pt-3>{{ section.name_fa }}</v-flex>
<v-flex lg4 class="LTR" pt-3>{{ section.name_en }}</v-flex>
<v-flex xl4 class="Buttons text-lg-center">
<v-tooltip top color="black">
<v-btn small slot="activator" fab color="cyan" dark>
<v-icon dark>fas fa-pencil-alt</v-icon>
</v-btn>
<span>ویرایش</span>
</v-tooltip>
<v-tooltip top color="black">
<v-btn small slot="activator" fab color="red" dark>
<v-icon dark>fas fa-trash-alt</v-icon>
</v-btn>
<span>حذف آیتم</span>
</v-tooltip>
</v-flex>
</v-layout>
</div>
</v-card-text>
</v-card>
</v-expansion-panel-content>
</v-expansion-panel>
</v-flex>
</v-layout>
<!-- --------------------------------------------------------------------
Modals :: BEGIN
-------------------------------------------------------------------- -->
<template>
<div class="text-xs-center">
<wm-user-departments-add></wm-user-departments-add>
</div>
</template>
<!-- --------------------------------------------------------------------
Modals :: END
-------------------------------------------------------------------- -->
</v-container>
</template>
<script>
import DepartmentAdd from "@User/components/Config/Department/Add.vue";
export default {
components: {
"wm-user-departments-add": DepartmentAdd
},
data() {
return {
departments: [
{
name_fa: " فنی ",
name_en: " Technical ",
sections: [
{ name_fa: " برنامه نویسی ", name_en: " Programming " },
{ name_fa: " گرافیک ", name_en: " Graphic " },
{ name_fa: " امور اپراتوری ", name_en: " Operating Matters " }
]
},
{
name_fa: " فروش ",
name_en: " Sale ",
sections: [
{ name_fa: " تحقیق و توسعه ", name_en: " Research & Developement " },
{ name_fa: " بازرایابی ", name_en: " Marketing " },
{ name_fa: " قراردادها ", name_en: " Contracts " }
]
},
{
name_fa: " مدیریت ",
name_en: " Management ",
sections: [
{ name_fa: " مدیریت اجرایی ", name_en: " Operaing Management " },
{ name_fa: " مدیریت منابع انسانی ", name_en: " Human Resource " }
]
}
]
};
}
};
</script>
<style lang="scss">
@import "@Global/scss/Tile.scss";
.WM-Tile {
padding: 0px;
}
.Content .Number {
width: auto;
right: 0px;
bottom: -6px;
}
.v-expansion-panel__container--active .v-expansion-panel__header .FA,
.v-expansion-panel__container--active .v-expansion-panel__header .EN {
font-size: 24px;
}
.TitleNumber {
line-height: 40px;
width: 40px;
font-size: 40px;
color: rgb(0, 0, 0);
}
.v-expansion-panel--inset .v-expansion-panel__container--active,
.v-expansion-panel--popout .v-expansion-panel__container--active {
border: 1px solid #000 !important;
box-shadow: none;
}
</style>

@ -1,38 +0,0 @@
<template>
<v-dialog v-model="$store.state.ConfigUserDepartments" width="60%" transition="slide-x-transition">
<v-card class="RTL">
<v-card-title class=" grey lighten-3" primary-title>
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" ویرایش دپارتمان ها " TitleEn=" Edit Deparments " color="cyan"></WM-PartTitle>
</v-card-title>
<v-card-text>
<!-- <wm-duplicator-view></wm-duplicator-view> -->
<wm-list-view></wm-list-view>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="cyan" depressed dark @click="$store.state.ConfigUserDepartments = false">
<v-icon dark right>fas fa-check</v-icon> بسیار خب
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<script>
// import DuplicatorView from "@User/components/Config/Department/DuplicatorView.vue";
import ListView from "@User/components/Config/Department/ListView.vue";
export default {
components: {
// 'wm-duplicator-view' : DuplicatorView,
'wm-list-view' : ListView,
},
props: {
Color: { default: 'grey darken-4' },
},
};
</script>

@ -1,45 +0,0 @@
<template>
<v-dialog v-model="$store.state.UserDetails" width="60%" transition="slide-x-transition">
<v-card class="RTL">
<v-card-title class=" grey lighten-3" primary-title>
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" جزئیات کاربر " TitleEn=" User's Details " color="cyan"></WM-PartTitle>
</v-card-title>
<v-card-text>
<div class="row">
<div class="col-md-3 WM-Align-R">
<div class="WM-Font-14 WM-Color-Gray"><i class="WMi-user"></i> نام و نام خانوادگی </div>
<div class="WM-Font-20"> علیرضا حسنی </div>
</div>
<div class="col-md-6 WM-Align-R">
<div class="WM-Font-14 WM-Color-Gray"><i class="WMi-mail-alt"></i> آدرس آیمیل </div>
<div class="WM-Font-20"> Alireza-Hassani@outlook.com </div>
</div>
<div class="col-md-3 WM-Align-R">
<div class="WM-Font-14 WM-Color-Gray"><i class="WMi-phone"></i> شماره ی همراه </div>
<div class="WM-Font-20"> 09127004945 </div>
</div>
</div>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="cyan" depressed dark @click="$store.state.UserDetails = false">
<v-icon dark right>fas fa-check</v-icon> بسیار خب
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<script>
export default {
props: {
Color: { default: 'grey darken-4' },
},
};
</script>

@ -1,45 +0,0 @@
<template>
<v-layout row wrap class="Filters WM-Padding-10 WM-Border WM-Border-LightGray" style="border-right:2px solid #32c5d2;">
<v-flex xs12 sm4 md3>
<v-menu :close-on-content-click="false" v-model="DateFilterBefore" :nudge-right="40" lazy transition="slide-y-transition" offset-y full-width min-width="290px">
<v-text-field slot="activator" v-model="date" label=" تاریخ ثبت قبل از " prepend-icon="fas fa-calendar-alt" color="red darken-2" readonly></v-text-field>
<v-date-picker v-model="date" @input="DateFilterBefore = false" color="red darken-1" locale="fa-ir"></v-date-picker>
</v-menu>
</v-flex>
<v-flex xs12 sm4 md3>
<v-menu :close-on-content-click="false" v-model="DateFilterAfter" :nudge-right="40" lazy transition="slide-y-transition" offset-y full-width min-width="290px">
<v-text-field slot="activator" v-model="date" label=" تاریخ ثبت بعد از " prepend-icon="fas fa-calendar-alt" color="red darken-2" readonly></v-text-field>
<v-date-picker v-model="date" @input="DateFilterAfter = false" color="red darken-1" locale="fa-ir"></v-date-picker>
</v-menu>
</v-flex>
<v-flex xs12 sm4 md3>
<v-text-field label=" نام کاربر " color="red darken-2" prepend-icon="fas fa-search"></v-text-field>
</v-flex>
<v-flex xs12 sm4 md3>
<v-tooltip top color="black">
<v-btn slot="activator" fab color="cyan" dark><v-icon dark>fas fa-filter</v-icon></v-btn>
<span> فیلتر سفارشات </span>
</v-tooltip>
</v-flex>
</v-layout>
</template>
<script>
export default {
data: function () {
return {
date: new Date().toISOString().substr(0, 10),
DateFilterAfter: false,
DateFilterBefore: false,
}
}
};
</script>
<style scoped lang="scss">
.Filters {
margin: 20px 0px 10px 0px;
}
</style>

@ -1,149 +0,0 @@
<template>
<v-flex :class="TileClass" >
<div class="WM-Tile">
<v-layout row wrap class="Content">
<div class="Check">
<WM-Checkbox v-model="props.selected" ItemText="" :ItemID="'Check'+props.item.id"></WM-Checkbox>
</div>
<div class="Number En">12</div>
<v-flex xl3 @click="$store.state.ClientDetails = true" slot="activator">
<div class="Info">
<div class="TitleFa">
<v-badge color="red">
<span> {{ props.item.TitleFa }} </span>
</v-badge>
</div>
<div class="TitleEn Context"> {{ props.item.TitleEn }} </div>
</div>
</v-flex>
<v-flex xl3 class="Tasks text-lg-center">
<v-chip color="grey lighten-3" text-color="black" @click="$store.state.TaskTimeline = true" slot="activator">
<v-avatar class="purple WM-Color-White"> 2 </v-avatar>
وظیفه انجام نشده
</v-chip>
<v-btn small outline fab color="purple" @click.native="$store.state.TaskAdd = true" slot="activator">
<v-icon>fas fa-plus</v-icon>
</v-btn>
</v-flex>
<v-flex xl3 class="text-lg-center">
<v-chip color="grey lighten-3" text-color="black" @click="$store.state.UserRoles = true" slot="activator">
<v-avatar class="black WM-Color-White"> 2 </v-avatar>
دسترسی
</v-chip>
<v-btn small outline fab color="black" @click.native="$store.state.UserRoles = true" slot="activator">
<v-icon>fas fa-pencil-alt</v-icon>
</v-btn>
</v-flex>
<v-flex xl3 class="Buttons text-lg-right">
<v-tooltip top color="black">
<v-btn small slot="activator" fab color="grey lighten-4"><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش </span>
</v-tooltip>
<v-tooltip top color="black">
<v-btn small @click.native="$store.state.UserDetails = true" slot="activator" fab color="cyan" dark><v-icon dark>fas fa-align-right</v-icon></v-btn>
<span> جزئیات مشتری </span>
</v-tooltip>
<v-tooltip top color="black">
<v-btn small @click.native="$store.state.SendEmail = true" slot="activator" fab color="purple" dark><v-icon dark>fas fa-envelope</v-icon></v-btn>
<span> ارسال ایمیل </span>
</v-tooltip>
<v-tooltip top color="black">
<v-btn small @click.native="$store.state.SendSMS = true" slot="activator" fab color="orange" dark><v-icon dark>fas fa-comment-alt</v-icon></v-btn>
<span> ارسال پیام کوتاه </span>
</v-tooltip>
<v-tooltip top color="black">
<v-btn small slot="activator" fab color="red" dark><v-icon dark>fas fa-trash-alt</v-icon></v-btn>
<span> حذف آیتم </span>
</v-tooltip>
</v-flex>
</v-layout>
</div>
</v-flex>
</template>
<script>
export default {
props: {
TileClass: { default: "xl12" },
props: { default: "" },
},
}
</script>
<style scoped lang="scss">
.WM-Tile {
width:100%;
padding:10px;
border: 1px solid #eeeeee;
transition: 0.4s;
border-radius: 5px;
margin-bottom: 10px;
}
.WM-Tile:hover {
border: 1px solid #000;
}
.WM-Tile.Shadowed {
box-shadow: 0 10px 30px 0 rgba(0,0,0,.5);
border-radius:5px;
}
.WM-Tile .Content {
background-color:#fff;
height:100%;
}
.WM-Tile .Image {
width:100%;
}
.Content {
padding:10px;
margin:0px;
position: relative;
}
.Content .Info {
text-align:right;
margin-right: 30px;
cursor: pointer;
}
.Content .Check {
position: absolute;
right: 0px;
width: 40px;
}
.Content .Number {
position: absolute;
right: -14px;
bottom: -16px;
line-height: 40px;
width: 40px;
font-size: 40px;
color: rgb(224, 224, 224);
}
.Info .TitleEn {
font-size:13px;
}
//-----------------------------------Price
.Content .Price {
text-align:left;
}
.Content .Price .Unit {
font-size:12px;
}
.Price .NewPrice {
font-size:24px;
}
.Price .OldPrice {
font-size:14px;
margin-left: 20px;
text-decoration: line-through;
text-decoration-color: #ee3552;
color: #ee3552;
margin-top: -5px;
}
//---------------------------Buttons-------------------------------
.v-btn--floating.v-btn--outline.v-btn:hover {
background-color: inherit !important;
}
</style>

@ -1,69 +0,0 @@
<template>
<div>
<v-layout row wrap class="Content">
<v-flex xl3 class="text-lg-right" >
<span style="margin-right:65px;"> نام مشتری </span>
</v-flex>
<v-flex xl3 class="text-lg-center">
وظیفه ها
</v-flex>
<v-flex xl3 class="text-lg-center">
دسترسی ها
</v-flex>
<v-flex xl3 class="text-lg-right">
ابزارها
</v-flex>
</v-layout>
<v-data-iterator :items="Users" :rows-per-page-items="rowsPerPageItems" :pagination.sync="pagination" select-all row wrap rows-per-page-text="آیتم به ازای هر صفحه">
<template v-slot:item="props">
<wm-user-item :props="props"></wm-user-item>
</template>
<template v-slot:pageText="props">
آیتم {{ props.pageStart }} - {{ props.pageStop }} از {{ props.itemsLength }}
</template>
</v-data-iterator>
</div>
</template>
<script>
import UserItem from "@User/components/Item.vue";
export default {
components: {
'wm-user-item' : UserItem,
},
props: {
// Tile:TileData,
TileClass: { default: "xl12" },
TileHeight: { default: "70px" },
// --------------------------------------------
TitleFa: { default: " فرید الدین ساروی" },
TitleEn: { default: " Farid Saravi " },
Level: { default: 5 },
},
data: () => ({
rowsPerPageItems: [4, 8, 12],
pagination: {
rowsPerPage: 4
},
Users: [
{
id:1,
TitleFa: ' فرید الدین ساروی ',
TitleEn: ' Farid Saravi ',
},
{
id:2,
TitleFa: ' علیرضا حسنی ',
TitleEn: ' Alireza Hassani ',
},
{
id:13,
TitleFa: ' محمد سعید خاکبازان ',
TitleEn: ' Mohammad Saeed Khakbazan ',
},
]
})
};
</script>

@ -1,90 +0,0 @@
<template>
<v-dialog v-model="$store.state.AddRole" width="70%" transition="slide-x-transition">
<v-card class="RTL">
<v-card-title class=" grey lighten-3" primary-title>
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" ایجاد نقش جدید " TitleEn=" Define a new Role " color="cyan"></WM-PartTitle>
</v-card-title>
<v-card-text>
<v-layout row wrap class="WM-Section" style="border-right-color: #32c5d2;">
<v-flex class="lg3 RTL text-lg-right">
<div class="Step En" style="color:#32c5d2;"> 01 </div>
<div class="Title">
<div class="FA"> کاربران </div>
<div class="EN"> Users </div>
</div>
<!-- <v-tooltip top color="black">
<v-btn small slot="activator" fab color="cyan" dark style="float:left; margin-left:10px;"><v-icon dark>fas fa-plus</v-icon></v-btn>
<span> افزودن نقش جدید </span>
</v-tooltip> -->
<!-- <v-switch style="float:left; margin-left:10px;" color="cyan" v-model="UserSwitch"></v-switch> -->
</v-flex>
<v-flex class="lg9">
<v-layout row wrap class="WM-Margin-0">
<v-flex class="lg6 WM-Flex RoleFlex">
<v-card-text>
<v-text-field label=" نام نقش به فارسی " color="cyan" prepend-icon="fas fa-tag" ></v-text-field>
</v-card-text>
</v-flex>
<v-flex class="lg6 WM-Flex RoleFlex">
<v-card-text>
<v-text-field label=" Role Name - English " class="LTR" color="cyan" prepend-icon="fas fa-tag" ></v-text-field>
</v-card-text>
</v-flex>
</v-layout>
<v-layout row wrap class="WM-Margin-0">
<v-flex class="lg4 WM-Flex RoleFlex">
<v-switch color="cyan" v-model="UserAdd" label=" افزودن کاربر "></v-switch>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<v-switch color="cyan" v-model="UserEdit" label=" ویرایش کاربر "></v-switch>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<v-switch color="cyan" v-model="UserRemove" label=" حذف کاربر "></v-switch>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<v-switch color="cyan" v-model="EditRoles" label=" ویرایش دسترسی ها "></v-switch>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<v-switch color="cyan" v-model="Contact" label=" ارسال پیام کوتاه یا ایمیل "></v-switch>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<v-switch color="cyan" v-model="DoTask" label=" قابلیت انجام وظیفه "></v-switch>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<v-switch color="cyan" v-model="DefineTask" label=" قابلیت انجام وظیفه "></v-switch>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="cyan" depressed dark @click="$store.state.AddRole = false">
<v-icon dark right>fas fa-plus</v-icon> افزودن نقش
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<script>
export default {
props: {
},
data () {
return {
status: [
{ name: ' بسته شده ', id: 1 },
{ name: ' ویزیت اولیه ', id: 2 },
{ name: ' انصراف داده ', id: 3 },
],
UserSwitch: true,
}
}
};
</script>

@ -1,170 +0,0 @@
<template>
<v-dialog v-model="$store.state.UserRoles" width="70%" transition="slide-x-transition">
<v-card class="RTL">
<v-card-title class=" grey lighten-3" primary-title>
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" دسترسی های کاربر " TitleEn=" User's Access " color="black"></WM-PartTitle>
</v-card-title>
<v-card-text>
<v-layout row wrap class="WM-Section" style="border-right-color: #32c5d2;">
<v-flex class="lg3 RTL text-lg-right">
<div class="Step En" style="color:#32c5d2;"> 01 </div>
<div class="Title">
<div class="FA"> کاربران </div>
<div class="EN"> Users </div>
</div>
<v-tooltip top color="black">
<v-btn small slot="activator" @click.native="$store.state.AddRole = true" fab color="cyan" dark style="float:left; margin-left:10px;"><v-icon dark>fas fa-plus</v-icon></v-btn>
<span> افزودن نقش جدید در بخش مدیریت کاربران سیستم</span>
</v-tooltip>
<!-- <v-switch style="float:left; margin-left:10px;" color="cyan" v-model="UserSwitch"></v-switch> -->
</v-flex>
<v-flex class="lg9">
<v-layout row wrap class="WM-Margin-0">
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر سطح 1 " ItemID="UserAdminL1"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر سطح 2 " ItemID="UserAdminL2"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
<v-layout row wrap class="WM-Section" style="border-right-color: #ee3552;">
<v-flex class="lg3 RTL text-lg-right">
<div class="Step En" style="color:#ee3552;"> 02 </div>
<div class="Title">
<div class="FA"> مدیریت ارتباط با مشتری </div>
<div class="EN"> CRM </div>
</div>
<v-tooltip top color="black">
<v-btn small @click.native="$store.state.AddRole = true" slot="activator" fab color="red" dark style="float:left; margin-left:10px;"><v-icon dark>fas fa-plus</v-icon></v-btn>
<span> افزودن نقش جدید در بخش مدیریت ارتباط با مشتری</span>
</v-tooltip>
<!-- <v-switch style="float:left; margin-left:10px;" color="red" v-model="UserSwitch"></v-switch> -->
</v-flex>
<v-flex class="lg9">
<v-layout row wrap class="WM-Margin-0">
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر وظایف " ItemID="CRMTasksAdmin"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر مشتریان " ItemID="CRMClientsAdmin"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر رویدادها " ItemID="CRMClientsAdmin"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر تراکنش ها " ItemID="CRMClientsAdmin"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
<v-layout row wrap class="WM-Section" style="border-right-color: #FF6B57;">
<v-flex class="lg3 RTL text-lg-right">
<div class="Step En" style="color:#FF6B57;"> 03 </div>
<div class="Title">
<div class="FA"> فروشگاه </div>
<div class="EN"> Store </div>
</div>
<v-tooltip top color="black">
<v-btn small slot="activator" fab color="orange" dark style="float:left; margin-left:10px;"><v-icon dark>fas fa-plus</v-icon></v-btn>
<span> افزودن نقش جدید در بخش فروشگاه </span>
</v-tooltip>
<!-- <v-switch style="float:left; margin-left:10px;" color="orange" v-model="UserSwitch"></v-switch> -->
</v-flex>
<v-flex class="lg9">
<v-layout row wrap class="WM-Margin-0">
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر محصولات " ItemID="StoreProducts"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر تخفیف ها " ItemID="StoreProducts"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر سفارشات " ItemID="StoreProducts"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
<v-flex class="lg4 WM-Flex RoleFlex">
<WM-Checkbox ItemText=" مدیر فروش های ویژه " ItemID="StoreProducts"></WM-Checkbox>
<v-tooltip bottom color="black">
<v-btn class="XS" style="margin:-7px 10px 0px 0px;" @click.native="$store.state.AddRole = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش نقش </span>
</v-tooltip>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="black" depressed dark @click="$store.state.UserRoles = false">
<v-icon dark right>fas fa-check</v-icon> تایید دسترسی ها
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<script>
export default {
props: {
},
data () {
return {
status: [
{ name: ' بسته شده ', id: 1 },
{ name: ' ویزیت اولیه ', id: 2 },
{ name: ' انصراف داده ', id: 3 },
],
UserSwitch: true,
}
}
};
</script>
<style lang="scss" scoped>
.RoleFlex {
height: 45px;
align-items: center;
}
</style>

@ -1,104 +0,0 @@
<template>
<v-dialog v-model="$store.state.UserRoles" width="70%" transition="slide-x-transition">
<v-card class="RTL">
<v-card-title class=" grey lighten-3" primary-title>
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" دسترسی های کاربر " TitleEn=" User's Access " color="black"></WM-PartTitle>
</v-card-title>
<v-card-text>
<v-layout row wrap class="WM-Section" style="border-right-color: #32c5d2;">
<v-flex class="lg3 RTL text-lg-right">
<div class="Step En" style="color:#32c5d2;"> 01 </div>
<div class="Title">
<div class="FA"> کاربران </div>
<div class="EN"> Users </div>
</div>
<v-tooltip top color="black">
<v-btn small slot="activator" fab color="cyan" dark style="float:left; margin-left:10px;"><v-icon dark>fas fa-plus</v-icon></v-btn>
<span> افزودن نقش جدید </span>
</v-tooltip>
<!-- <v-switch style="float:left; margin-left:10px;" color="cyan" v-model="UserSwitch"></v-switch> -->
</v-flex>
<v-flex class="lg2">
<WM-Checkbox ItemText=" افزودن کاربر " ItemID="UserAdd"></WM-Checkbox>
<WM-Checkbox ItemText=" ویرایش کاربر " ItemID="ClientDelete"></WM-Checkbox>
<WM-Checkbox ItemText=" حذف کاربر " ItemID="UserDelete"></WM-Checkbox>
</v-flex>
<v-flex class="lg2">
<WM-Checkbox ItemText=" ویرایش دسترسی ها " ItemID="UserRoles"></WM-Checkbox>
<WM-Checkbox ItemText=" ارسال پیام کوتاه یا ایمیل " ItemID="UserContact"></WM-Checkbox>
</v-flex>
<v-flex class="lg2">
<WM-Checkbox ItemText=" قابلیت انجام وظیفه " ItemID="UserRoles"></WM-Checkbox>
<WM-Checkbox ItemText=" قابلیت تعریف وظیفه " ItemID="UserContact"></WM-Checkbox>
</v-flex>
</v-layout>
<v-layout row wrap class="WM-Section" style="border-right-color: #ee3552;">
<v-flex class="lg3 RTL text-lg-right">
<div class="Step En" style="color:#ee3552;"> 02 </div>
<div class="Title">
<div class="FA"> مدیریت ارتباط با مشتری </div>
<div class="EN"> CRM </div>
</div>
<v-switch style="float:left; margin-left:10px;" color="red" v-model="UserSwitch"></v-switch>
</v-flex>
<v-flex class="lg2">
<WM-Checkbox ItemText=" افزودن مشتری " ItemID="ClientAdd"></WM-Checkbox>
<WM-Checkbox ItemText=" ویرایش مشتری " ItemID="ClientDelete"></WM-Checkbox>
<WM-Checkbox ItemText=" حذف مشتری " ItemID="ClientDelete"></WM-Checkbox>
</v-flex>
<v-flex class="lg2">
<WM-Checkbox ItemText=" مدیریت مالی " ItemID="ClientFinance"></WM-Checkbox>
<WM-Checkbox ItemText=" ارسال پیام کوتاه یا ایمیل " ItemID="ClientContact"></WM-Checkbox>
</v-flex>
</v-layout>
<v-layout row wrap class="WM-Section" style="border-right-color: #FF6B57;">
<v-flex class="lg3 RTL text-lg-right">
<div class="Step En" style="color:#FF6B57;"> 03 </div>
<div class="Title">
<div class="FA"> فروشگاه </div>
<div class="EN"> Store </div>
</div>
<v-switch style="float:left; margin-left:10px;" color="orange" v-model="UserSwitch"></v-switch>
</v-flex>
<v-flex class="lg2">
<WM-Checkbox ItemText=" افزودن آیتم " ItemID="ClientAdd"></WM-Checkbox>
<WM-Checkbox ItemText=" ویرایش آیتم " ItemID="ClientAdd"></WM-Checkbox>
<WM-Checkbox ItemText=" حذف آیتم " ItemID="ClientDelete"></WM-Checkbox>
</v-flex>
<v-flex class="lg2">
<WM-Checkbox ItemText=" مدیریت مالی " ItemID="ClientFinance"></WM-Checkbox>
<WM-Checkbox ItemText=" ارسال پیام کوتاه یا ایمیل " ItemID="ClientContact"></WM-Checkbox>
</v-flex>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="black" depressed dark @click="$store.state.UserRoles = false">
<v-icon dark right>fas fa-check</v-icon> تایید دسترسی ها
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<script>
export default {
props: {
},
data () {
return {
status: [
{ name: ' بسته شده ', id: 1 },
{ name: ' ویزیت اولیه ', id: 2 },
{ name: ' انصراف داده ', id: 3 },
],
UserSwitch: true,
}
}
};
</script>

@ -1,78 +0,0 @@
/**
* Vue Router
*
* @library
*
* https://router.vuejs.org/en/
*/
// Lib imports
import Vue from 'vue'
// import VueAnalytics from 'vue-analytics'
import Router from 'vue-router'
import Meta from 'vue-meta'
// Routes
import paths from './paths'
function route (options) {
let path = options.path;
let view = options.view;
let name = options.name;
let meta = (options.meta) ? options.meta : '';
return {
name: name || view,
path,
meta,
component: (resovle) => import(
`@User/views/${view}.vue`
).then(resovle)
}
}
Vue.use(Router)
// Create a new router
const router = new Router({
mode: 'history',
routes: paths.map(path => route(path)).concat([
{ path: '*', redirect: '/Home' }
]),
scrollBehavior (to, from, savedPosition) {
if (savedPosition) {
return savedPosition
}
if (to.hash) {
return { selector: to.hash }
}
return { x: 0, y: 0 }
}
})
Vue.use(Meta)
router.beforeEach((to, from, next) => {
// const isPublic = to.matched.some(record => record.meta.public);
// const onlyWhenLoggedOut = to.matched.some(record => record.meta.onlyWhenLoggedOut);
// const roles = (to.meta && to.meta.roles) ? to.meta.roles : null;
// if (!isPublic && !loggedIn) {
// return next({
// path:'/login',
// query: {redirect: to.fullPath} // Store the full path to redirect the user to after login
// });
// }
// // Do not allow user to visit login page or register page if they are logged in
// if (loggedIn && onlyWhenLoggedOut && policy) {
// return next('/')
// }
next();
});
export default router

@ -1,11 +0,0 @@
export default [{
path: '/User/List',
name: 'UserList',
view: 'List'
},
{
path: '/User/Add',
name: 'AddUser',
view: 'Add'
},
];

@ -1,18 +0,0 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
UserDetails: false,
UserRoles: false,
AddRole: false,
ConfigUserDepartments: false,
ConfigUserDepartmentAdd: false,
TaskAdd: false,
TaskTimeline: false,
SendEmail: false,
SendSMS: false
}
})

@ -1,219 +0,0 @@
<template>
<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">
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" افزودن کاربر جدید " TitleEn=" Add a new User " Color="cyan"></WM-PartTitle>
<v-layout row wrap class="WM-Section" style="border-right-color: #32c5d2;">
<v-flex class="lg12 RTL text-lg-right">
<div class="Step En" style="color:#32c5d2;"> 01 </div>
<div class="Title">
<div class="FA"> اطلاعـــــات عمــــــومی </div>
<div class="EN"> General Info </div>
</div>
</v-flex>
<v-layout row wrap>
<v-flex class="lg4">
<v-card-text>
<v-autocomplete prepend-icon="fas fa-align-justify" :items="deparment" :filter="customFilter" color="cyan" item-text="name" label=" دپارتمان کاربر "></v-autocomplete>
</v-card-text>
</v-flex>
<v-flex class="lg4">
<v-card-text>
<v-autocomplete prepend-icon="fas fa-align-right" :items="deparment" :filter="customFilter" color="cyan" item-text="name" label=" اگر لازم است، دپارتمان کاربر را به طور جزئی تر مشخص کنید "></v-autocomplete>
</v-card-text>
</v-flex>
<v-flex pt-2 class="lg1 text-lg-right">
<v-tooltip bottom color="black">
<v-btn mt-4 small @click.native="$store.state.ConfigUserDepartments = true" slot="activator" outline fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
<span> ویرایش دپارتمان ها </span>
</v-tooltip>
</v-flex>
</v-layout>
<!-- --------------------------------------------------------------------
Gneral Info
-------------------------------------------------------------------- -->
<v-layout row wrap>
<v-flex lg3>
<v-card-text>
<v-text-field label=" نام کاربر به فارسی " color="cyan" prepend-icon="fas fa-tag" ></v-text-field>
</v-card-text>
</v-flex>
<v-flex lg3>
<v-card-text>
<v-text-field label=" نام کاربر به انگلیسی " color="cyan" prepend-icon="fas fa-tag"></v-text-field>
</v-card-text>
</v-flex>
<v-flex lg3>
<v-card-text>
<v-text-field label=" کد ملی و یا شماره گذرنامه " color="cyan" prepend-icon="fas fa-sort-numeric-up"></v-text-field>
</v-card-text>
</v-flex>
<v-flex lg3>
<v-card-text>
<v-text-field label=" آدرس پست الکترونیکی " color="cyan" prepend-icon="fas fa-envelope"></v-text-field>
</v-card-text>
</v-flex>
<v-flex lg3>
<v-card-text>
<v-text-field v-model="password" :append-icon="passwordShow ? 'fas fa-eye' : 'fas fa-eye-slash'" :rules="[rules.required, rules.min]"
:type="passwordShow ? 'text' : 'password'" label=" کلمه ی عبور " color="cyan" prepend-icon="fas fa-asterisk"
hint=" حداقل 8 کاراکتر " counter @click:append="passwordShow = !passwordShow">
</v-text-field>
</v-card-text>
</v-flex>
<v-flex lg3>
<v-card-text>
<v-text-field v-model="passwordRetype" :append-icon="passwordRetypeShow ? 'fas fa-eye' : 'fas fa-eye-slash'" :rules="[rules.required, rules.min]"
:type="passwordRetypeShow ? 'text' : 'password'" label=" تکرار کلمه ی عبور " color="cyan" prepend-icon="fas fa-asterisk"
hint=" حداقل 8 کاراکتر " counter @click:append="passwordRetypeShow = !passwordRetypeShow">
</v-text-field>
</v-card-text>
</v-flex>
</v-layout>
</v-layout>
<!-- --------------------------------------------------------------------
Contact Info
-------------------------------------------------------------------- -->
<v-layout row wrap class="WM-Section" style="border-right-color: #00838F;">
<v-flex class="lg12 RTL text-lg-right">
<div class="Step En" style="color:#00838F;"> 02 </div>
<div class="Title">
<div class="FA"> اطلاعــــــات تمــــــاس </div>
<div class="EN"> Contact Info </div>
</div>
</v-flex>
<v-flex lg2>
<v-card-text>
<v-autocomplete prepend-icon="fas fa-map" :items="customerTypes" :filter="customFilter" color="cyan" item-text="name" label=" شهر مشتری "></v-autocomplete>
</v-card-text>
</v-flex>
<v-flex lg2>
<v-card-text>
<v-autocomplete prepend-icon="fas fa-align-right" :items="customerTypes" :filter="customFilter" color="cyan" item-text="name" label=" منطقه ی مشتری "></v-autocomplete>
</v-card-text>
</v-flex>
<v-flex lg2>
<v-card-text>
<v-text-field label=" آی دی تلگرام " color="cyan" prepend-icon="fas fa-telegram-plane"></v-text-field>
</v-card-text>
</v-flex>
<v-flex lg2>
<v-card-text>
<v-text-field label=" آدرس پیج اینستاگرام " color="cyan" prepend-icon="fas fa-instagram"></v-text-field>
</v-card-text>
</v-flex>
<v-flex lg8 style="position:relative; padding: 0px 15px;">
<v-card-text class="Duplicate">
<v-layout row wrap pl-2>
<v-flex lg8>
<v-text-field label=" آدرس " color="cyan" prepend-icon="fas fa-map-marker"></v-text-field>
</v-flex>
<v-flex lg4>
<v-text-field label=" شماره ی ثابت " color="cyan" prepend-icon="fas fa-phone"></v-text-field>
</v-flex>
<v-btn fab color="cyan" fixed bottom left dark style="left:15px; bottom:-25px; position:absolute"><v-icon dark>fas fa-plus</v-icon></v-btn>
<v-btn fab small color="red" fixed bottom left dark style="left:-5px; top:-20px; position:absolute"><v-icon dark>fas fa-times</v-icon></v-btn>
</v-layout>
</v-card-text>
</v-flex>
<v-flex lg4 style="position:relative; padding: 0px 20px;">
<v-card-text class="Duplicate">
<v-layout row wrap pl-2>
<v-flex lg6>
<v-text-field label=" نام شماره " color="cyan" prepend-icon="fas fa-tag"></v-text-field>
</v-flex>
<v-flex lg6>
<v-text-field label=" شماره ی تلفن " color="cyan" prepend-icon="fas fa-phone"></v-text-field>
</v-flex>
<v-btn fab color="cyan" fixed bottom left dark style="left:15px; bottom:-25px; position:absolute"><v-icon dark>fas fa-plus</v-icon></v-btn>
<v-btn fab small color="red" fixed bottom left dark style="left:-5px; top:-20px; position:absolute"><v-icon dark>fas fa-times</v-icon></v-btn>
</v-layout>
</v-card-text>
</v-flex>
</v-layout>
<v-layout row wrap>
<v-flex mt-3 class="lg12 RTL text-lg-left">
<hr>
<v-btn large round color="cyan" dark> <v-icon dark>fas fa-plus</v-icon> افزودن کاربر </v-btn>
</v-flex>
</v-layout>
</div>
<!-- --------------------------------------------------------------------
Modals :: BEGIN
-------------------------------------------------------------------- -->
<template>
<div class="text-xs-center">
<wm-user-departments-edit></wm-user-departments-edit>
</div>
</template>
<!-- --------------------------------------------------------------------
Modals :: END
-------------------------------------------------------------------- -->
</v-container>
</template>
<script>
import DepartmentEdit from "@User/components/Config/Department/Modal-Layout.vue";
export default {
components: {
'wm-user-departments-edit' : DepartmentEdit,
},
data () {
return {
passwordShow: false,
passwordRetypeShow: false,
password: '',
passwordRetype: '',
rules: {
required: value => !!value || 'اجباری',
min: v => v.length >= 8 || ' کلمه ی عبور باید حداقل 8 حرف باشد ',
emailMatch: () => ('The email and password you entered don\'t match')
},
hasSaved: false,
model: null,
categories: [
{ name: ' تلفن همراه ', abbr: 'FL', id: 1 },
{ name: ' تبلت ', abbr: 'GA', id: 2 },
{ name: ' لپ تاپ ', abbr: 'NE', id: 3 },
{ name: ' کامپیوتر ', abbr: 'CA', id: 4 },
{ name: ' دوربین ', abbr: 'NY', id: 5 }
],
customerTypes: [
{ name: ' حقیقی ', abbr: 'FL', id: 1 },
{ name: ' حقوقی ', abbr: 'GA', id: 2 },
],
breadcrumbItems: [
{
text: ' کاربران من ',
disabled: false,
routeName: 'UserList'
},
{
text: ' افزودن کاربر جدید ',
disabled: true,
routeName: 'AddUser'
}
]
}
},
};
</script>
<style scoped lang="scss">
.v-card__text {
padding-top: 4px;
}
.v-btn--round i {
margin-left: 10px;
margin-top: -4px;
}
</style>

@ -1,87 +0,0 @@
<template>
<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">
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" کاربران مجموعه ی من " TitleEn=" My Users " color="cyan"></WM-PartTitle>
<wm-user-filter></wm-user-filter>
<wm-user-items></wm-user-items>
<router-link :to="{name: 'AddUser'}">
<v-btn large fab color="cyan" fixed bottom left dark style="left:5%"><v-icon dark>fas fa-plus</v-icon></v-btn>
</router-link>
</div>
<!-- --------------------------------------------------------------------
Modals :: BEGIN
-------------------------------------------------------------------- -->
<template>
<div class="text-xs-center">
<wm-user-details></wm-user-details>
<wm-user-roles></wm-user-roles>
<wm-add-role></wm-add-role>
<wm-task-add></wm-task-add>
<wm-task-timeline></wm-task-timeline>
<wm-send-email></wm-send-email>
<wm-send-sms></wm-send-sms>
</div>
</template>
<!-- --------------------------------------------------------------------
Modals :: END
-------------------------------------------------------------------- -->
</v-container>
</template>
<script>
import UserItems from '@User/components/Items';
import UserFilters from '@User/components/Filters';
import UserDetails from "@User/components/Details.vue";
import UserRoles from "@User/components/Role/List.vue";
import AddRole from "@User/components/Role/Add.vue";
import TaskAdd from "@Common/components/Task/Add.vue";
import TaskTimeline from "@Common/components/Task/Timeline/Modal-Layout.vue";
import TaskTimelineItem from "@Common/components/Task/Timeline/Item.vue";
import SendEmailModal from "@Common/components/Contact/Email/Send.vue";
import SendSMSModal from "@Common/components/Contact/SMS/Send.vue";
export default {
components: {
'wm-user-items' : UserItems,
'wm-user-filter' : UserFilters,
'wm-user-details' : UserDetails,
'wm-user-roles' : UserRoles,
'wm-add-role' : AddRole,
'wm-task-add' : TaskAdd,
'wm-task-timeline' : TaskTimeline,
'wm-send-email' : SendEmailModal,
'wm-send-sms' : SendSMSModal,
},
data: function () {
return {
breadcrumbItems: [
// {
// text: '',
// disabled: false,
// href: '/CRM/Home',
// icon: 'home'
// },
{
text: ' کاربران من ',
disabled: true,
routeName: 'UserList'
},
]
}
}
};
</script>
<style scoped lang="scss">
</style>

@ -1,17 +0,0 @@
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
<title> Welcome </title>
<!-- Styles -->
</head>
<body>
<div id="app"></div>
</body>
<script src="{{ mix('js/vue/User/app.js') }}"></script>
</html>

@ -22,9 +22,7 @@ Route::get('/WebsiteManagement/{any?}', function () {
return view('WebsiteManagement'); return view('WebsiteManagement');
}); });
Route::get( '/User/{any?}', function () {
return view('User');
});
Route::get( '/Login', function () { Route::get( '/Login', function () {
return view( 'Authentication'); return view( 'Authentication');
}); });

12
webpack.mix.js vendored

@ -16,9 +16,6 @@ mix.webpackConfig({
alias: { alias: {
'@JS': path.resolve(__dirname, 'resources/js'), '@JS': path.resolve(__dirname, 'resources/js'),
'@Global': path.resolve(__dirname, 'resources/js/Global'), '@Global': path.resolve(__dirname, 'resources/js/Global'),
// '@Modules': path.resolve(__dirname, 'resources/js/Modules'),
// -----------------------------Modules--------------------------------
'@User': path.resolve(__dirname, 'resources/js/User'),
}, },
}, },
output: { output: {
@ -26,20 +23,15 @@ mix.webpackConfig({
}, },
}); });
// mix.js('resources/js/Modules/Website/app.js', 'public/Modules/Website/js')
// .js('resources/js/Home/app.js', 'public/Home/js');
// .js('resources/js/Authentication/app.js', 'public/Authentication/js');
mix.js('resources/js/Authentication/app.js', 'public/js/vue/Authentication') mix.js('resources/js/Authentication/app.js', 'public/js/vue/Authentication')
.js('resources/js/Home/app.js', 'public/js/vue/Home') .js('resources/js/Home/app.js', 'public/js/vue/Home');
.js('resources/js/User/app.js', 'public/js/vue/User');
// require('./modules/wm-core/webpack.mix'); require('./modules/wm-core/webpack.mix');
require('./modules/wm-common/webpack.mix'); require('./modules/wm-common/webpack.mix');
require('./modules/wm-crm/webpack.mix'); require('./modules/wm-crm/webpack.mix');
// require('./modules/wm-store/webpack.mix');
// require('./modules/wm-reservation/webpack.mix'); // require('./modules/wm-reservation/webpack.mix');

Loading…
Cancel
Save