Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM
# Conflicts:
# PAMapp/pages/agentInfo/_agentNo.vue
| | |
| | | '~/plugins/element-ui.js', |
| | | { src: '~/plugins/vue-awesome-swiper.js', mode: 'client' }, |
| | | '~/plugins/service.ts', |
| | | '~/plugins/vue-scroll-picker' |
| | | '~/plugins/vue-scroll-picker', |
| | | '~/plugins/filters/date.filter.ts' |
| | | ], |
| | | |
| | | // Auto import components: https://go.nuxtjs.dev/config-components |
| | |
| | | } |
| | | |
| | | </style> |
| | | |
| | | function getConsultantDetail() { |
| | | throw new Error('Function not implemented.'); |
| | | } |
| | | |
| | | function getConsultantDetail() { |
| | | throw new Error('Function not implemented.'); |
| | | } |
¤ñ¹ï·sÀÉ®× |
| | |
| | | import Vue from 'vue' |
| | | |
| | | Vue.filter('formatDate', (value: string): string => { |
| | | const date = new Date(value); |
| | | const today = new Date(); |
| | | |
| | | const isToday = (compareDate: Date): boolean => { |
| | | return compareDate.getFullYear() === today.getFullYear() |
| | | && compareDate.getMonth() === today.getMonth() |
| | | && compareDate.getDate() === today.getDate(); |
| | | }; |
| | | |
| | | const isThisYear = (compareDate: Date): boolean => { |
| | | return compareDate.getFullYear() === today.getFullYear(); |
| | | } |
| | | |
| | | if (isThisYear(date)) { |
| | | return isToday(date) |
| | | ? `ä»å¤© ${date.getHours()}:${date.getMinutes()}` |
| | | : `${date.getMonth() + 1}æ${date.getDate()}æ¥ ${date.getHours()}:${date.getMinutes()}`; |
| | | } else { |
| | | return `${date.getFullYear()}å¹´${date.getMonth() + 1}æ${date.getDate()}æ¥ ${date.getHours()}:${date.getMinutes()}`; |
| | | } |
| | | |
| | | }) |