App.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <div id="app">
  3. <transition name="el-fade-in">
  4. <router-view />
  5. </transition>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. watch: {
  11. $route(to) {
  12. this.$store.commit("setPages", to.path);
  13. this.$store.commit("setDefaultActive", unescape(to.fullPath));
  14. },
  15. },
  16. };
  17. </script>
  18. <style lang="scss">
  19. @import "assets/style";
  20. * {
  21. padding: 0;
  22. margin: 0;
  23. box-sizing: border-box;
  24. font-family: Helvetica Neue, Helvetica, Arial, PingFang SC, Hiragino Sans GB,
  25. WenQuanYi Micro Hei, Microsoft Yahei, sans-serif !important;
  26. }
  27. html,
  28. body,
  29. #app,
  30. .page {
  31. width: 100%;
  32. min-width: 1000px;
  33. height: 100%;
  34. font-family: "Avenir", Helvetica, Arial, sans-serif;
  35. -webkit-font-smoothing: antialiased;
  36. -moz-osx-font-smoothing: grayscale;
  37. }
  38. .page {
  39. background: rgb(229, 235, 242);
  40. position: relative;
  41. z-index: 0;
  42. background-repeat: repeat-y;
  43. }
  44. .el-header {
  45. padding: 0 !important;
  46. }
  47. // .page:after {
  48. // content: '.';
  49. // color: rgba(0, 0, 0, 0);
  50. // position: absolute;
  51. // left: 0;
  52. // top: 0;
  53. // z-index: 1;
  54. // width: 100%;
  55. // height: 308px;
  56. // background: linear-gradient(to right, #107CFF, #1025FF);
  57. // }
  58. .router-page {
  59. height: 100%;
  60. flex-grow: 1;
  61. }
  62. .query-card {
  63. .el-form--inline {
  64. margin-top: -17px;
  65. padding-left: 20px;
  66. padding-right: 20px;
  67. .el-form-item {
  68. padding-top: 17px;
  69. padding-bottom: 0px;
  70. margin-bottom: 0;
  71. margin-right: 40px;
  72. }
  73. }
  74. }
  75. .el-menu {
  76. border: none;
  77. .el-menu-item,
  78. .el-submenu__title {
  79. height: 47px;
  80. line-height: 47px;
  81. font-family: PingFangSC-Regular;
  82. font-size: 14px;
  83. color: #666666;
  84. letter-spacing: 0;
  85. }
  86. .is-active {
  87. color: #107cff;
  88. }
  89. }
  90. .el-button--primary {
  91. background-color: #107cff;
  92. }
  93. .table-card {
  94. margin-top: 9px;
  95. }
  96. .p-table-header-row {
  97. background-color: rgba(16, 124, 255, 0.05) !important;
  98. }
  99. .p-table-header-cell {
  100. background-color: rgba(16, 124, 255, 0.05) !important;
  101. font-family: PingFangSC-Medium;
  102. font-size: 14px;
  103. color: #333333;
  104. text-align: center !important;
  105. }
  106. .p-table-cell {
  107. font-family: PingFangSC-Regular;
  108. font-size: 14px;
  109. color: #666666;
  110. text-align: center !important;
  111. }
  112. .router-page {
  113. display: flex;
  114. flex-direction: column;
  115. .query-card {
  116. flex-grow: 0;
  117. flex-shrink: 0;
  118. }
  119. .table-card {
  120. flex-grow: 1;
  121. flex-shrink: 1;
  122. height: 100%;
  123. overflow-y: auto;
  124. }
  125. }
  126. .el-image-viewer__close {
  127. color: #fff;
  128. }
  129. .el-menu-item {
  130. overflow: hidden;
  131. text-overflow: ellipsis;
  132. white-space: nowrap;
  133. }
  134. </style>