mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 01:31:07 +03:30
newui
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
/public/hot
|
/public/hot
|
||||||
/public/storage
|
/public/storage
|
||||||
/public/img
|
/public/img
|
||||||
|
/public/js/vue
|
||||||
/storage
|
/storage
|
||||||
/tests
|
/tests
|
||||||
/vendor
|
/vendor
|
||||||
|
|||||||
Vendored
+899
-19
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"/js/vue/app.js": "/js/vue/app.js?id=19c7dcb81bb79d7b55d0"
|
"/js/vue/app.js": "/js/vue/app.js"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,9 +127,9 @@ export default {
|
|||||||
text: 'Statistics',
|
text: 'Statistics',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: {name: 'Ticket'},
|
to: {name: 'Tickets'},
|
||||||
icon: 'fas fa-chart-bar',
|
icon: 'fas fa-chart-bar',
|
||||||
text: 'Ticket',
|
text: 'Tickets',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
responsive: false
|
responsive: false
|
||||||
|
|||||||
@@ -37,6 +37,63 @@
|
|||||||
hide-details
|
hide-details
|
||||||
color="purple"
|
color="purple"
|
||||||
/> -->
|
/> -->
|
||||||
|
<v-menu
|
||||||
|
:close-on-content-click="false"
|
||||||
|
:nudge-width="200"
|
||||||
|
offset-x
|
||||||
|
>
|
||||||
|
<template v-slot:activator="{ on }">
|
||||||
|
|
||||||
|
<v-icon
|
||||||
|
v-ripple
|
||||||
|
class="toolbar-items"
|
||||||
|
v-on="on"
|
||||||
|
color="tertiary">
|
||||||
|
mdi-account
|
||||||
|
</v-icon>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<v-card>
|
||||||
|
<v-list>
|
||||||
|
<v-list-tile avatar>
|
||||||
|
<v-list-tile-avatar>
|
||||||
|
<img src="https://cdn.vuetifyjs.com/images/john.jpg" alt="John">
|
||||||
|
</v-list-tile-avatar>
|
||||||
|
|
||||||
|
<v-list-tile-content>
|
||||||
|
<v-list-tile-title>{{ name }}</v-list-tile-title>
|
||||||
|
<v-list-tile-sub-title>{{ cell_number }}</v-list-tile-sub-title>
|
||||||
|
</v-list-tile-content>
|
||||||
|
</v-list-tile>
|
||||||
|
</v-list>
|
||||||
|
|
||||||
|
<v-divider></v-divider>
|
||||||
|
|
||||||
|
<v-list>
|
||||||
|
<router-link
|
||||||
|
v-ripple
|
||||||
|
class="toolbar-items"
|
||||||
|
:to="{name: 'MyInfo'}"
|
||||||
|
>
|
||||||
|
<v-list-tile >
|
||||||
|
<v-list-tile-title class="black--text" >My Info</v-list-tile-title>
|
||||||
|
</v-list-tile>
|
||||||
|
</router-link>
|
||||||
|
|
||||||
|
|
||||||
|
<router-link
|
||||||
|
v-ripple
|
||||||
|
class="toolbar-items"
|
||||||
|
:to="{name: 'MyTicket'}"
|
||||||
|
>
|
||||||
|
<v-list-tile >
|
||||||
|
<v-list-tile-title class="black--text" >My Ticket</v-list-tile-title>
|
||||||
|
</v-list-tile>
|
||||||
|
</router-link>
|
||||||
|
</v-list>
|
||||||
|
</v-card>
|
||||||
|
</v-menu>
|
||||||
|
|
||||||
<v-menu
|
<v-menu
|
||||||
bottom
|
bottom
|
||||||
@@ -44,22 +101,6 @@
|
|||||||
content-class="dropdown-menu"
|
content-class="dropdown-menu"
|
||||||
offset-y
|
offset-y
|
||||||
transition="slide-y-transition">
|
transition="slide-y-transition">
|
||||||
<!-- <router-link
|
|
||||||
v-ripple
|
|
||||||
slot="activator"
|
|
||||||
class="toolbar-items"
|
|
||||||
to="/notifications"
|
|
||||||
>
|
|
||||||
<v-badge
|
|
||||||
color="error"
|
|
||||||
overlap
|
|
||||||
>
|
|
||||||
<template slot="badge">
|
|
||||||
{{ notifications.length }}
|
|
||||||
</template>
|
|
||||||
<v-icon color="tertiary">mdi-bell</v-icon>
|
|
||||||
</v-badge>
|
|
||||||
</router-link> -->
|
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-list dense>
|
<v-list dense>
|
||||||
<v-list-tile
|
<v-list-tile
|
||||||
@@ -74,13 +115,7 @@
|
|||||||
</v-list>
|
</v-list>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-menu>
|
</v-menu>
|
||||||
<router-link
|
|
||||||
v-ripple
|
|
||||||
class="toolbar-items"
|
|
||||||
:to="{name: 'MyInfo'}"
|
|
||||||
>
|
|
||||||
<v-icon color="tertiary">mdi-account</v-icon>
|
|
||||||
</router-link>
|
|
||||||
<v-badge v-ripple class="toolbar-items Pointer" @click.native="submitLogout" >
|
<v-badge v-ripple class="toolbar-items Pointer" @click.native="submitLogout" >
|
||||||
<v-icon color="tertiary">input</v-icon>
|
<v-icon color="tertiary">input</v-icon>
|
||||||
</v-badge>
|
</v-badge>
|
||||||
@@ -106,7 +141,9 @@ export default {
|
|||||||
],
|
],
|
||||||
title: null,
|
title: null,
|
||||||
responsive: false,
|
responsive: false,
|
||||||
responsiveInput: false
|
responsiveInput: false,
|
||||||
|
name: '',
|
||||||
|
cell_number: '',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
@@ -116,8 +153,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
this.onResponsiveInverted()
|
this.onResponsiveInverted();
|
||||||
window.addEventListener('resize', this.onResponsiveInverted)
|
window.addEventListener('resize', this.onResponsiveInverted);
|
||||||
|
this.cell_number = this.$store.state.user.cell_number;
|
||||||
|
this.name = this.$store.state.user.name;
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
window.removeEventListener('resize', this.onResponsiveInverted)
|
window.removeEventListener('resize', this.onResponsiveInverted)
|
||||||
|
|||||||
@@ -0,0 +1,96 @@
|
|||||||
|
<template>
|
||||||
|
<div id="">
|
||||||
|
<v-container >
|
||||||
|
<material-card class color="black" title="New Message" text>
|
||||||
|
<!-- <v-card> -->
|
||||||
|
|
||||||
|
<!-- <v-card-title>
|
||||||
|
<span class="headline"></span>
|
||||||
|
</v-card-title> -->
|
||||||
|
<v-layout wrap class="px-4 mb-3">
|
||||||
|
<!-- <v-toolbar-title>Search User</v-toolbar-title> -->
|
||||||
|
<v-flex xs12 sm12 md12>
|
||||||
|
<v-autocomplete
|
||||||
|
v-model="model"
|
||||||
|
:items="items"
|
||||||
|
:loading="loading"
|
||||||
|
:search-input.sync="search"
|
||||||
|
label="Search"
|
||||||
|
persistent-hint
|
||||||
|
prepend-icon="fas fa-search"
|
||||||
|
color="black"
|
||||||
|
>
|
||||||
|
</v-autocomplete>
|
||||||
|
</v-flex>
|
||||||
|
</v-layout>
|
||||||
|
<v-card-text>
|
||||||
|
<v-container grid-list-md>
|
||||||
|
<v-flex xs12 sm12 md12>
|
||||||
|
<v-textarea
|
||||||
|
name="input-7-1"
|
||||||
|
color="black"
|
||||||
|
label="Default style"
|
||||||
|
value="The Woodman set to work at once, and so sharp was his axe that the tree was soon chopped nearly through."
|
||||||
|
hint="Hint text"
|
||||||
|
></v-textarea>
|
||||||
|
</v-flex>
|
||||||
|
</v-container>
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-layout row wrap>
|
||||||
|
<v-btn color="pink" class="WM-ActionButton text-lg-left">
|
||||||
|
<v-icon class="white--text mr-2 caption">fas fa-times</v-icon>
|
||||||
|
<span>Cancel</span>
|
||||||
|
</v-btn>
|
||||||
|
<v-btn color="black" class="mr-2 WM-ActionButton">
|
||||||
|
<v-icon class="white--text mr-2 caption">fas fa-chevron-right</v-icon>
|
||||||
|
<span>Send</span>
|
||||||
|
</v-btn>
|
||||||
|
</v-layout>
|
||||||
|
</v-card-actions>
|
||||||
|
<!-- </v-card> -->
|
||||||
|
</v-layout>
|
||||||
|
</material-card>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
loading: false,
|
||||||
|
items: [],
|
||||||
|
search: null,
|
||||||
|
select: null,
|
||||||
|
states: [
|
||||||
|
'Ali',
|
||||||
|
'Fatemeh',
|
||||||
|
'Mohsen',
|
||||||
|
'Sara',
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
search (val) {
|
||||||
|
val && val !== this.select && this.querySelections(val)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
querySelections (v) {
|
||||||
|
this.loading = true
|
||||||
|
// Simulated ajax query
|
||||||
|
setTimeout(() => {
|
||||||
|
this.items = this.states.filter(e => {
|
||||||
|
return (e || '').toLowerCase().indexOf((v || '').toLowerCase()) > -1
|
||||||
|
})
|
||||||
|
this.loading = false
|
||||||
|
}, 500)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
<template>
|
||||||
|
<div id="">
|
||||||
|
<v-container >
|
||||||
|
<material-card class color="black" title="Show Message" text max-width="600px">
|
||||||
|
<v-layout row wrap>
|
||||||
|
<v-flex xs12>
|
||||||
|
<div class="mx-2 my-3">
|
||||||
|
<span class="Chat White">Listen to your favorite artists and albums.</span>
|
||||||
|
</div>
|
||||||
|
<div class="mx-2 my-3" style="float:right">
|
||||||
|
<span class="Chat Cyan ">Listen to your favorite artists and albums.</span>
|
||||||
|
</div>
|
||||||
|
</v-flex>
|
||||||
|
</v-layout>
|
||||||
|
<v-card-text>
|
||||||
|
<v-container grid-list-md>
|
||||||
|
<h5>Send Message</h5>
|
||||||
|
<v-flex xs12 sm12 md12>
|
||||||
|
<v-textarea
|
||||||
|
name="input-7-1"
|
||||||
|
color="black"
|
||||||
|
label="Default style"
|
||||||
|
value="The Woodman set to work at once, and so sharp was his axe that the tree was soon chopped nearly through."
|
||||||
|
hint="Hint text"
|
||||||
|
></v-textarea>
|
||||||
|
</v-flex>
|
||||||
|
</v-container>
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-layout row wrap>
|
||||||
|
<v-btn color="pink" class="WM-ActionButton text-lg-left">
|
||||||
|
<v-icon class="white--text mr-2 caption">fas fa-times</v-icon>
|
||||||
|
<span>Cancel</span>
|
||||||
|
</v-btn>
|
||||||
|
<v-btn color="black" class="mr-2 WM-ActionButton">
|
||||||
|
<v-icon class="white--text mr-2 caption">fas fa-chevron-right</v-icon>
|
||||||
|
<span>Send</span>
|
||||||
|
</v-btn>
|
||||||
|
</v-layout>
|
||||||
|
</v-card-actions>
|
||||||
|
<!-- </v-card> -->
|
||||||
|
</v-layout>
|
||||||
|
</material-card>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "",
|
||||||
|
data: () => ({
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.Chat {
|
||||||
|
|
||||||
|
padding: 10px 15px;
|
||||||
|
color: white;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
.Chat.Cyan {
|
||||||
|
background: cornflowerblue;
|
||||||
|
box-shadow: 5px 15px 20px rgba(0,0,0,.2)
|
||||||
|
}
|
||||||
|
.Chat.White {
|
||||||
|
background: #fff;
|
||||||
|
color:black;
|
||||||
|
box-shadow: 5px 15px 20px rgba(0,0,0,.2)
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Vendored
+5
@@ -151,4 +151,9 @@ export default [
|
|||||||
name: 'EditPackage',
|
name: 'EditPackage',
|
||||||
view: 'Package/AddEdit'
|
view: 'Package/AddEdit'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/tickets',
|
||||||
|
name: 'Tickets',
|
||||||
|
view: 'Tickets/List'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<!-- <template>
|
||||||
<v-container grid-list-xs>
|
<v-container grid-list-xs>
|
||||||
<material-card color="black">
|
<material-card color="black">
|
||||||
<v-layout row wrap>
|
<v-layout row wrap>
|
||||||
|
|
||||||
</v-layout>
|
</v-layout>
|
||||||
</material-card>
|
</material-card>
|
||||||
</v-container>
|
</v-container>
|
||||||
@@ -16,4 +16,4 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
</style>
|
</style> -->
|
||||||
|
|||||||
@@ -0,0 +1,137 @@
|
|||||||
|
<template>
|
||||||
|
<v-container fluid>
|
||||||
|
<material-card class color="black" title="My Recent ChatList" text>
|
||||||
|
<v-toolbar flat color="white">
|
||||||
|
<v-toolbar-title></v-toolbar-title>
|
||||||
|
<v-divider
|
||||||
|
class="mx-2"
|
||||||
|
inset
|
||||||
|
vertical
|
||||||
|
></v-divider>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-btn color="black" @click="newmessage" class="WM-ActionButton mb-2">
|
||||||
|
<v-icon class="white--text mr-2 caption">fas fa-plus</v-icon>
|
||||||
|
<span>New Message</span>
|
||||||
|
</v-btn>
|
||||||
|
</v-toolbar>
|
||||||
|
<v-layout class="px-4 my-3">
|
||||||
|
<v-divider></v-divider>
|
||||||
|
</v-layout>
|
||||||
|
<v-layout align-center justify-center wrap class="px-5 mt-3">
|
||||||
|
<v-flex md12>
|
||||||
|
<v-data-table :headers="headers" :items="items" hide-actions>
|
||||||
|
<template slot="headerCell" slot-scope="{ header }">
|
||||||
|
<span
|
||||||
|
class="subheading font-weight-light text-white text--darken-3"
|
||||||
|
v-text="header.text"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<template slot="items" slot-scope="{ item }">
|
||||||
|
<td class="headline font-weight-light WM-NoLetterSpacing">{{ item.name }}</td>
|
||||||
|
<td class="title font-weight-light">{{ item.created_at }}</td>
|
||||||
|
<td class="title font-weight-light">{{ item.users_count }} Operator</td>
|
||||||
|
<td class="text-xs-right">
|
||||||
|
<v-btn color="pink" @click="showmessages" class="WM-ActionButton">
|
||||||
|
<v-icon class="white--text mr-2 caption">fas fa-chevron-right</v-icon>
|
||||||
|
<span>Send Message</span>
|
||||||
|
</v-btn>
|
||||||
|
</td>
|
||||||
|
</template>
|
||||||
|
</v-data-table>
|
||||||
|
</v-flex>
|
||||||
|
</v-layout>
|
||||||
|
<v-divider></v-divider>
|
||||||
|
<div class="text-xs-center" v-if="lastPage > 1">
|
||||||
|
<v-pagination v-model="currentPage" :length="lastPage" :total-visible="6"></v-pagination>
|
||||||
|
</div>
|
||||||
|
<v-layout row wrap align-center justify-center class="mt-3">
|
||||||
|
<router-link :to="{name: 'Dashboard'}">
|
||||||
|
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5">
|
||||||
|
<v-icon class="black--text mr-2 caption">fas fa-chevron-left</v-icon>
|
||||||
|
<span class="black--text">Back</span>
|
||||||
|
</v-btn>
|
||||||
|
</router-link>
|
||||||
|
</v-layout>
|
||||||
|
</material-card>
|
||||||
|
</v-container>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { ApiService } from "@/services";
|
||||||
|
import { urls } from "@/config/urls";
|
||||||
|
import { mapMutations } from 'vuex';
|
||||||
|
export default {
|
||||||
|
data: () => ({
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
sortable: false,
|
||||||
|
text: "Hospital Name",
|
||||||
|
value: "name"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sortable: false,
|
||||||
|
text: "Date",
|
||||||
|
value: "date"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sortable: false,
|
||||||
|
text: "Operator",
|
||||||
|
value: "operator"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sortable: false,
|
||||||
|
text: "Action",
|
||||||
|
value: "action",
|
||||||
|
align: "right"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
filter: {
|
||||||
|
name: ''
|
||||||
|
},
|
||||||
|
items: [],
|
||||||
|
currentPage: 1,
|
||||||
|
lastPage: 1
|
||||||
|
}),
|
||||||
|
created() {
|
||||||
|
this.load();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async load(page = 1) {
|
||||||
|
let filter = `?page=${page}&name=${this.filter.name}`;
|
||||||
|
const result = await ApiService.get(urls.listMedicalCenter(filter));
|
||||||
|
this.items = result.data.data.data;
|
||||||
|
this.currentPage = result.data.data.current_page;
|
||||||
|
this.lastPage = result.data.data.last_page;
|
||||||
|
},
|
||||||
|
async remove(id) {
|
||||||
|
const result = await ApiService.delete(urls.deleteMedicalCenter(id));
|
||||||
|
if (result && result.status == 200) {
|
||||||
|
for (const key in this.items) {
|
||||||
|
if (this.items.hasOwnProperty(key) && this.items[key].id == id) {
|
||||||
|
this.items.splice(key, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
...mapMutations('modal',['changeCurrentModal']),
|
||||||
|
newmessage() {
|
||||||
|
this.changeCurrentModal({ modal: "modal-ticket-new-message" });
|
||||||
|
},
|
||||||
|
...mapMutations('modal',['changeCurrentModal']),
|
||||||
|
showmessages() {
|
||||||
|
this.changeCurrentModal({ modal: "modal-ticket-show-messages" });
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
currentPage(page) {
|
||||||
|
this.load(page);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="css" scoped>
|
||||||
|
.WM-ActionButton {
|
||||||
|
padding: 8px 22px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container grid-list-xs fluid>
|
||||||
|
<v-layout align-center justify-center wrap class="px-5 my-3">
|
||||||
|
<v-flex xs12 sm4 md4>
|
||||||
|
<v-card>
|
||||||
|
<v-card-title>salam</v-card-title>
|
||||||
|
<v-card-text>khoobi</v-card-text>
|
||||||
|
</v-card>
|
||||||
|
</v-flex>
|
||||||
|
</v-layout>
|
||||||
|
<v-layout align-center justify-center wrap class="px-5 my-3">
|
||||||
|
<v-flex xs12 sm4 md4>
|
||||||
|
<v-card>
|
||||||
|
<v-card-title>salam</v-card-title>
|
||||||
|
<v-card-text>khoobi</v-card-text>
|
||||||
|
</v-card>
|
||||||
|
</v-flex>
|
||||||
|
</v-layout>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user