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 {
metaInfo () {
return {
title: 'Vuetify Material Dashboard by CreativeTim'
title: 'CSSD dashboard'
}
}
}
+1 -2
View File
@@ -43,8 +43,7 @@
<v-flex xs12 md6 sm6>
<div class>
<span class="title CSSD-font">Date Register:</span>
<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>
</v-flex>
+1 -1
View File
@@ -17,7 +17,7 @@
<v-flex xs12 md3 sm3>
<div class="WM-d-flex">
<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>
</v-flex>
<v-flex xs12 md3 sm3>
+1 -1
View File
@@ -76,7 +76,7 @@
<span
class="title font-weight-bold ml-2"
style="letter-spacing:0 !important"
>{{ data.created_at }}</span>
>{{ $d(new Date(data.created_at), 'long') }}</span>
</div>
</v-flex>
<v-flex xs4 md4 sm4>
+1 -1
View File
@@ -18,7 +18,7 @@
<br>
<span class="WM-Font-14">{{ item.cell_number }}</span>
</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">
<span v-for="(role, key) in item.roles" :key="key">{{ role.name }}</span>
</td>
+33 -1
View File
@@ -13,10 +13,42 @@ import messages from '@/lang'
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({
locale: 'en',
fallbackLocale: 'en',
messages
messages,
dateTimeFormats
})
export default i18n
+1 -1
View File
@@ -32,7 +32,7 @@
</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">{{ $d(new Date(item.created_at), 'long') }}</td>
<td class="title font-weight-light">{{ item.users_count }} Operator</td>
<td class="text-xs-right FlexBtn Height-MD-80 Height-SM-48">
<v-tooltip bottom open-on-hover>
+2 -3
View File
@@ -95,8 +95,7 @@
</template>
<template slot="items" slot-scope="{ item }">
<td class="headline font-weight-light">{{ item.id }}</td>
<td class="title font-weight-light">{{ item.test_type ? item.test_type.name : 'Archived
Test' }}</td>
<td class="title font-weight-light">{{ item.test_type ? item.test_type.name : 'Archived Test' }}</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">
@@ -107,7 +106,7 @@
{{ item.result }}
</span>
</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">
<span v-if="item.verified == 'NotVerified'" class="NotVerified">
<v-icon class="caption fa fa-times NotVerified"></v-icon>
+1 -1
View File
@@ -36,7 +36,7 @@
<v-flex xs12 md6 sm6>
<div class>
<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>
</v-flex>
<v-flex xs12 md6 sm6>
+1 -1
View File
@@ -101,7 +101,7 @@
<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.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">
<v-tooltip bottom open-on-hover>
<template v-slot:activator="{ on, attrs }">
+1 -1
View File
@@ -68,7 +68,7 @@
<br>
<span class="WM-Font-14">{{ item.cell_number }}</span>
</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">
<span v-for="(role, key) in item.roles" :key="key">{{ role.name }}</span>
</td>