App.vue 3.0 KB

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