ViolationRecords.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div class="violation-records-container">
  3. <div class="container-title">
  4. <span class="line"></span>
  5. <span class="title">本月车辆违规记录</span>
  6. <span class="more" @click="handleClickMore"
  7. >查看全部<el-icon><ArrowRight /></el-icon
  8. ></span>
  9. </div>
  10. <div class="table-container"></div>
  11. </div>
  12. </template>
  13. <script setup lang="ts">
  14. import { ElIcon } from 'element-plus';
  15. import { ArrowRight } from '@element-plus/icons-vue';
  16. const handleClickMore = () => {
  17. // TODO: 点击跳转“管理规定与通知”菜单
  18. console.log('1111111111111111111111');
  19. };
  20. </script>
  21. <style scoped lang="scss">
  22. .container-title {
  23. height: 24px;
  24. display: flex;
  25. align-items: center;
  26. font-weight: 500;
  27. font-size: 16px;
  28. color: #000000;
  29. .line {
  30. width: 3px;
  31. height: 16px;
  32. background: #1777ff;
  33. margin-right: 10px;
  34. }
  35. .title {
  36. margin-right: 12px;
  37. }
  38. .more {
  39. margin-left: auto;
  40. margin-right: 17px;
  41. font-weight: 400;
  42. font-size: 16px;
  43. color: #1777ff;
  44. display: flex;
  45. align-items: center;
  46. cursor: pointer;
  47. }
  48. .more:hover {
  49. background-color: #1777ff;
  50. color: #fff;
  51. border-radius: 4px;
  52. padding: 2px 4px 2px 6px;
  53. }
  54. }
  55. .violation-records-container {
  56. width: 100%;
  57. height: 100%;
  58. padding: 14px 0;
  59. .table-container {
  60. width: 100%;
  61. height: calc(100% - 24px - 18px);
  62. margin-top: 18px;
  63. padding: 0 16px;
  64. overflow: auto;
  65. }
  66. }
  67. </style>