mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-23 20:44:58 +08:00
30 lines
665 B
Vue
30 lines
665 B
Vue
<template>
|
|
<el-timeline>
|
|
<el-timeline-item v-for="(item, index) in activities" :key="index" :timestamp="item.createTime">
|
|
{{ item.title + '-' + item.remoteAddr }}
|
|
</el-timeline-item>
|
|
</el-timeline>
|
|
</template>
|
|
|
|
<script lang='ts' setup>
|
|
import {onMounted, ref} from 'vue'
|
|
import * as logManageApi from "@/api/log-manage";
|
|
|
|
const activities = ref([] as any);
|
|
|
|
onMounted(function () {
|
|
getLogList();
|
|
});
|
|
|
|
function getLogList() {
|
|
logManageApi.getPage(0, 100).then((res: any) => {
|
|
if (res.code == 0) {
|
|
activities.value = res.data.records;
|
|
console.log(activities.value)
|
|
}
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<style lang='scss' scoped></style>
|