fix : page title and date show

This commit is contained in:
zeinab.ashrafi
2025-03-10 14:37:19 +03:30
parent 1c9a0d71a8
commit 37da47deff
11 changed files with 44 additions and 14 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
export default { export default {
metaInfo () { metaInfo () {
return { return {
title: 'Vuetify Material Dashboard by CreativeTim' title: 'CSSD dashboard'
} }
} }
} }
+1 -2
View File
@@ -43,8 +43,7 @@
<v-flex xs12 md6 sm6> <v-flex xs12 md6 sm6>
<div class> <div class>
<span class="title CSSD-font">Date Register:</span> <span class="title CSSD-font">Date Register:</span>
<span class="headline ml-2 CSSD-font" style="letter-spacing:0 !important">{{ data.created_at <span class="headline ml-2 CSSD-font" style="letter-spacing:0 !important">{{ $d(new Date(data.created_at), 'long') }}</span>
}}</span>
</div> </div>
</v-flex> </v-flex>
+1 -1
View File
@@ -17,7 +17,7 @@
<v-flex xs12 md3 sm3> <v-flex xs12 md3 sm3>
<div class="WM-d-flex"> <div class="WM-d-flex">
<v-icon class="WMi-Industry"></v-icon> <v-icon class="WMi-Industry"></v-icon>
<span class="headline ml-2 CSSD-font" style="letter-spacing:0 !important">{{ data.created_at }}</span> <span class="headline ml-2 CSSD-font" style="letter-spacing:0 !important">{{ $d(new Date(data.created_at), 'long') }}</span>
</div> </div>
</v-flex> </v-flex>
<v-flex xs12 md3 sm3> <v-flex xs12 md3 sm3>
+1 -1
View File
@@ -76,7 +76,7 @@
<span <span
class="title font-weight-bold ml-2" class="title font-weight-bold ml-2"
style="letter-spacing:0 !important" style="letter-spacing:0 !important"
>{{ data.created_at }}</span> >{{ $d(new Date(data.created_at), 'long') }}</span>
</div> </div>
</v-flex> </v-flex>
<v-flex xs4 md4 sm4> <v-flex xs4 md4 sm4>
+1 -1
View File
@@ -18,7 +18,7 @@
<br> <br>
<span class="WM-Font-14">{{ item.cell_number }}</span> <span class="WM-Font-14">{{ item.cell_number }}</span>
</td> </td>
<td class="title font-weight-light">{{ item.created_at }}</td> <td class="title font-weight-light">{{ $d(new Date(item.created_at), 'long') }}</td>
<td class="title font-weight-light"> <td class="title font-weight-light">
<span v-for="(role, key) in item.roles" :key="key">{{ role.name }}</span> <span v-for="(role, key) in item.roles" :key="key">{{ role.name }}</span>
</td> </td>
+33 -1
View File
@@ -13,10 +13,42 @@ import messages from '@/lang'
Vue.use(VueI18n) Vue.use(VueI18n)
const dateTimeFormats = {
en: {
long: {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit'
},
short: {
year: '2-digit',
month: 'short',
day: '2-digit'
}
},
fa: {
long: {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit'
},
short: {
year: '2-digit',
month: 'short',
day: '2-digit'
}
}
}
const i18n = new VueI18n({ const i18n = new VueI18n({
locale: 'en', locale: 'en',
fallbackLocale: 'en', fallbackLocale: 'en',
messages messages,
dateTimeFormats
}) })
export default i18n export default i18n
+1 -1
View File
@@ -32,7 +32,7 @@
</template> </template>
<template slot="items" slot-scope="{ item }"> <template slot="items" slot-scope="{ item }">
<td class="headline font-weight-light WM-NoLetterSpacing">{{ item.name }}</td> <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">{{ $d(new Date(item.created_at), 'long') }}</td>
<td class="title font-weight-light">{{ item.users_count }} Operator</td> <td class="title font-weight-light">{{ item.users_count }} Operator</td>
<td class="text-xs-right FlexBtn Height-MD-80 Height-SM-48"> <td class="text-xs-right FlexBtn Height-MD-80 Height-SM-48">
<v-tooltip bottom open-on-hover> <v-tooltip bottom open-on-hover>
+2 -3
View File
@@ -95,8 +95,7 @@
</template> </template>
<template slot="items" slot-scope="{ item }"> <template slot="items" slot-scope="{ item }">
<td class="headline font-weight-light">{{ item.id }}</td> <td class="headline font-weight-light">{{ item.id }}</td>
<td class="title font-weight-light">{{ item.test_type ? item.test_type.name : 'Archived <td class="title font-weight-light">{{ item.test_type ? item.test_type.name : 'Archived Test' }}</td>
Test' }}</td>
<td class="title font-weight-light">{{ item.user.medical_center.name }}</td> <td class="title font-weight-light">{{ item.user.medical_center.name }}</td>
<td class="title font-weight-light">{{ item.user.name }}</td> <td class="title font-weight-light">{{ item.user.name }}</td>
<td class="title font-weight-light"> <td class="title font-weight-light">
@@ -107,7 +106,7 @@
{{ item.result }} {{ item.result }}
</span> </span>
</td> </td>
<td class="title font-weight-light">{{ item.created_at }}</td> <td class="title font-weight-light">{{ $d(new Date(item.created_at), 'long') }}</td>
<td class="title font-weight-light"> <td class="title font-weight-light">
<span v-if="item.verified == 'NotVerified'" class="NotVerified"> <span v-if="item.verified == 'NotVerified'" class="NotVerified">
<v-icon class="caption fa fa-times NotVerified"></v-icon> <v-icon class="caption fa fa-times NotVerified"></v-icon>
+1 -1
View File
@@ -36,7 +36,7 @@
<v-flex xs12 md6 sm6> <v-flex xs12 md6 sm6>
<div class> <div class>
<span class="title">Date :</span> <span class="title">Date :</span>
<span class="headline SCCD-font ml-2" style="letter-spacing:0 !important">{{ data.created_at }}</span> <span class="headline SCCD-font ml-2" style="letter-spacing:0 !important">{{ $d(new Date(data.created_at), 'long') }}</span>
</div> </div>
</v-flex> </v-flex>
<v-flex xs12 md6 sm6> <v-flex xs12 md6 sm6>
+1 -1
View File
@@ -101,7 +101,7 @@
<td class="headline font-weight-light">{{ item.name }}</td> <td class="headline font-weight-light">{{ item.name }}</td>
<td class="title font-weight-light">{{ item.unique_code }}</td> <td class="title font-weight-light">{{ item.unique_code }}</td>
<td class="title font-weight-light">{{ item.user.name }}</td> <td class="title font-weight-light">{{ item.user.name }}</td>
<td class="title font-weight-light">{{ item.created_at }}</td> <td class="title font-weight-light">{{ $d(new Date(item.created_at), 'long') }}</td>
<td class="text-xs-right FlexBtn"> <td class="text-xs-right FlexBtn">
<v-tooltip bottom open-on-hover> <v-tooltip bottom open-on-hover>
<template v-slot:activator="{ on, attrs }"> <template v-slot:activator="{ on, attrs }">
+1 -1
View File
@@ -68,7 +68,7 @@
<br> <br>
<span class="WM-Font-14">{{ item.cell_number }}</span> <span class="WM-Font-14">{{ item.cell_number }}</span>
</td> </td>
<td class="title font-weight-light">{{ item.created_at }}</td> <td class="title font-weight-light">{{ $d(new Date(item.created_at), 'long') }}</td>
<td class="title font-weight-light"> <td class="title font-weight-light">
<span v-for="(role, key) in item.roles" :key="key">{{ role.name }}</span> <span v-for="(role, key) in item.roles" :key="key">{{ role.name }}</span>
</td> </td>