| | |
| | | |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictLabel, getDictObj } from '@vben/hooks'; |
| | | import { formatDateTime } from '@vben/utils'; |
| | | import { formatDate } from '@vben/utils'; |
| | | |
| | | import { Tag, Timeline } from 'ant-design-vue'; |
| | | |
| | |
| | | |
| | | withDefaults(defineProps<OperateLogProps>(), { |
| | | logList: () => [], |
| | | dateFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }); |
| | | |
| | | /** 获得 userType 颜色 */ |
| | |
| | | </template> |
| | | <div class="ml-2 flex flex-wrap items-center gap-2 leading-[22px]"> |
| | | <span class="w-[140px] shrink-0 text-[13px] text-gray-400"> |
| | | {{ formatDateTime(log.createTime) }} |
| | | {{ formatDate(log.createTime, dateFormat) }} |
| | | </span> |
| | | <Tag color="success" class="!mr-0">{{ log.userName }}</Tag> |
| | | <span>{{ log.action }}</span> |