Saber/src/page/index/top/top-logs.vue
2019-02-14 11:38:09 +08:00

44 lines
800 B
Vue

<template>
<span @click="logsFlag?'':handleOpen()">
<el-badge :value="logsFlag?'':logsLen"
:max="99">
<i class="icon-rizhi1"></i>
</el-badge>
<el-dialog title="日志"
fullscreen
:visible.sync="box"
width="100%"
append-to-body>
<logs></logs>
</el-dialog>
</span>
</template>
<script>
import { mapGetters } from "vuex";
import logs from "@/page/logs/index";
export default {
name: "top-logs",
components: { logs },
data() {
return {
box: false
};
},
created() {},
mounted() {},
computed: {
...mapGetters(["logsFlag", "logsLen"])
},
props: [],
methods: {
handleOpen() {
this.box = true;
}
}
};
</script>
<style lang="scss" scoped>
</style>