|
@@ -39,6 +39,7 @@
|
|
|
<script>
|
|
|
import { formatTime } from '@/utils/format.js'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
+import moment from 'moment'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -51,16 +52,19 @@ export default {
|
|
|
{ name: '其他事项', state: false, route: 'other' }, //其他
|
|
|
{ name: '分析 | 报表', state: false, route: 'analysis' }
|
|
|
],
|
|
|
- times: `${new Date().getFullYear()}.${formatTime(new Date().getMonth() + 1)}.${formatTime(new Date().getDate())} ${formatTime(
|
|
|
- new Date().getHours()
|
|
|
- )}:${formatTime(new Date().getMinutes())}`,
|
|
|
+ // times: `${new Date().getFullYear()}.${formatTime(new Date().getMonth() + 1)}.${formatTime(new Date().getDate())} ${formatTime(
|
|
|
+ // new Date().getHours()
|
|
|
+ // )}:${formatTime(new Date().getMinutes())}`,
|
|
|
+ times: moment().format('YYYY.MM.DD HH:mm'),
|
|
|
value: 190
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['plazas', 'plazaId'])
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ console.log(this.times)
|
|
|
+ },
|
|
|
mounted() {
|
|
|
let val = ''
|
|
|
if (location.pathname.split('/')[3] == 'first') {
|