File tree Expand file tree Collapse file tree 5 files changed +11
-15
lines changed
layout/components/Message/src Expand file tree Collapse file tree 5 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import dayjs from ' dayjs '
2
+ import { parseTime } from ' @/utils/formatTime '
3
3
import * as NotifyMessageApi from ' @/api/system/notify/message'
4
4
5
5
const { push } = useRouter ()
@@ -57,7 +57,7 @@ onMounted(() => {
57
57
{{ item.templateNickname }}:{{ item.templateContent }}
58
58
</span >
59
59
<span class =" message-date" >
60
- {{ dayjs (item.createTime).format('YYYY-MM-DD HH:mm:ss' ) }}
60
+ {{ parseTime (item.createTime) }}
61
61
</span >
62
62
</div >
63
63
</div >
Original file line number Diff line number Diff line change 34
34
</li >
35
35
<li class =" list-group-item" >
36
36
<Icon icon =" ep:calendar" class =" mr-5px" />{{ t('profile.user.createTime') }}
37
- <div class =" pull-right" >{{ dayjs (userInfo?.createTime).format('YYYY-MM-DD' ) }}</div >
37
+ <div class =" pull-right" >{{ parseTime (userInfo?.createTime) }}</div >
38
38
</li >
39
39
</ul >
40
40
</div >
41
41
</template >
42
42
<script setup lang="ts">
43
- import dayjs from ' dayjs '
43
+ import { parseTime } from ' @/utils/formatTime '
44
44
import UserAvatar from ' ./UserAvatar.vue'
45
45
46
46
import { getUserProfileApi , ProfileVO } from ' @/api/system/user/profile'
Original file line number Diff line number Diff line change 112
112
</label >
113
113
<label style =" font-weight : normal " v-if =" item.createTime" >创建时间:</label >
114
114
<label style =" color : #8a909c ; font-weight : normal " >
115
- {{ dayjs (item?.createTime).format('YYYY-MM-DD HH:mm:ss' ) }}
115
+ {{ parseTime (item?.createTime) }}
116
116
</label >
117
117
<label v-if =" item.endTime" style =" margin-left : 30px ; font-weight : normal " >
118
118
审批时间:
119
119
</label >
120
120
<label v-if =" item.endTime" style =" color : #8a909c ; font-weight : normal " >
121
- {{ dayjs (item?.endTime).format('YYYY-MM-DD HH:mm:ss' ) }}
121
+ {{ parseTime (item?.endTime) }}
122
122
</label >
123
123
<label v-if =" item.durationInMillis" style =" margin-left : 30px ; font-weight : normal " >
124
124
耗时:
192
192
</ContentWrap >
193
193
</template >
194
194
<script setup lang="ts">
195
- import dayjs from ' dayjs '
195
+ import { parseTime } from ' @/utils/formatTime '
196
196
import * as UserApi from ' @/api/system/user'
197
197
import * as ProcessInstanceApi from ' @/api/bpm/processInstance'
198
198
import * as DefinitionApi from ' @/api/bpm/definition'
Original file line number Diff line number Diff line change 12
12
/>
13
13
</template >
14
14
<template #beginTime_default =" { row } " >
15
- <span >{{
16
- dayjs(row.beginTime).format('YYYY-MM-DD HH:mm:ss') +
17
- ' ~ ' +
18
- dayjs(row.endTime).format('YYYY-MM-DD HH:mm:ss')
19
- }}</span >
15
+ <span >{{ parseTime(row.beginTime) + ' ~ ' + parseTime(row.endTime) }}</span >
20
16
</template >
21
17
<template #duration_default =" { row } " >
22
18
<span >{{ row.duration + ' 毫秒' }}</span >
48
44
</XModal >
49
45
</template >
50
46
<script setup lang="ts" name="JobLog">
51
- import dayjs from ' dayjs '
47
+ import { parseTime } from ' @/utils/formatTime '
52
48
53
49
import * as JobLogApi from ' @/api/infra/jobLog'
54
50
import { allSchemas } from ' ./jobLog.data'
Original file line number Diff line number Diff line change 44
44
<li v-for =" item in getList" class =" mt-2" :key =" item.time" >
45
45
<div class =" flex items-center" >
46
46
<span class =" mr-2 text-primary font-medium" >收到消息:</span >
47
- <span >{{ dayjs (item.time).format('YYYY-MM-DD HH:mm:ss' ) }}</span >
47
+ <span >{{ parseTime (item.time) }}</span >
48
48
</div >
49
49
<div >
50
50
{{ item.res }}
56
56
</div >
57
57
</template >
58
58
<script setup lang="ts">
59
- import dayjs from ' dayjs '
59
+ import { parseTime } from ' @/utils/formatTime '
60
60
import { useUserStore } from ' @/store/modules/user'
61
61
import { useWebSocket } from ' @vueuse/core'
62
62
You can’t perform that action at this time.
0 commit comments