App.vue 2.5 KB

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