oplog.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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: 'operation'
  27. }
  28. },
  29. created() {},
  30. methods: {
  31. // 查询按钮权限
  32. checkBtnRole(value) {
  33. // let btnRole = this.$route.meta.roles;
  34. // if(!btnRole) {return true}
  35. // let index = btnRole.indexOf(value);
  36. // return index >= 0 ? true : false;
  37. return true
  38. }
  39. }
  40. }
  41. </script>
  42. <style scoped lang="scss"></style>
  43. <style>
  44. .demo-table-expand {
  45. font-size: 0;
  46. }
  47. .demo-table-expand label {
  48. width: 80px;
  49. color: #99a9bf;
  50. }
  51. .demo-table-expand .el-form-item {
  52. margin-right: 0;
  53. margin-bottom: 0;
  54. width: 100%;
  55. }
  56. </style>