App.vue 2.5 KB

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