oplog.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <div class="app-container">
  3. <el-radio-group v-model="logType" size="small">
  4. <el-radio-button label="login">登录日志</el-radio-button>
  5. <el-radio-button label="operation">操作日志</el-radio-button>
  6. <el-radio-button label="examine">审批日志</el-radio-button>
  7. </el-radio-group>
  8. <el-divider></el-divider>
  9. <LoginLog v-if="logType === 'login'" />
  10. <OperationLog v-if="logType === 'operation'" />
  11. <ExamineLog v-if="logType === 'examine'" />
  12. </div>
  13. </template>
  14. <script>
  15. import LoginLog from "@/views/setting/components/log-login";
  16. import OperationLog from "@/views/setting/components/log-operation";
  17. import ExamineLog from "@/views/setting/components/log-examine";
  18. export default {
  19. components: {
  20. LoginLog,
  21. OperationLog,
  22. ExamineLog,
  23. },
  24. data() {
  25. return {
  26. logType: 'login',
  27. }
  28. },
  29. created() {
  30. },
  31. methods: {
  32. // 查询按钮权限
  33. checkBtnRole(value) {
  34. // let btnRole = this.$route.meta.roles;
  35. // if(!btnRole) {return true}
  36. // let index = btnRole.indexOf(value);
  37. // return index >= 0 ? true : false;
  38. return true;
  39. },
  40. }
  41. }
  42. </script>
  43. <style scoped lang="scss">
  44. </style>
  45. <style>
  46. .demo-table-expand {
  47. font-size: 0;
  48. }
  49. .demo-table-expand label {
  50. width: 80px;
  51. color: #99a9bf;
  52. }
  53. .demo-table-expand .el-form-item {
  54. margin-right: 0;
  55. margin-bottom: 0;
  56. width: 100%;
  57. }
  58. </style>