xm-performance-track.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div :class="$style.wrapbackground">
  3. <a-layout-header :class="$style.header">
  4. <div :class="$style.logo" />
  5. <div :class="$style.title">关键用户使用体验监测</div>
  6. </a-layout-header>
  7. <div v-show="response" :class="$style.model">
  8. <response-times :class="$style.border" @fullresponse="fullresponse"></response-times>
  9. </div>
  10. <div v-if="compare" :class="$style.model">
  11. <time-compare :isfull="true" @fullcompare="fullcompare"></time-compare>
  12. </div>
  13. <div v-show="fenbu" :class="$style.model">
  14. <open-fenbu :isfull="true" @fullfenbu="fullfenbu"></open-fenbu>
  15. </div>
  16. <div :class="$style.allwrap">
  17. <a-row :gutter="[0, 0]">
  18. <a-col :span="8"><response-times @fullresponse="fullresponse"></response-times></a-col>
  19. <a-col :span="8"><over-view></over-view></a-col>
  20. <a-col :span="8"
  21. ><time-compare
  22. v-if="!compare"
  23. :fullradio="fullradio"
  24. @fullcompare="fullcompare"
  25. @radiochange="radiochange"
  26. ></time-compare
  27. ></a-col>
  28. </a-row>
  29. <a-row :gutter="[0, 0]">
  30. <a-col :span="12"><open-fenbu @fullfenbu="fullfenbu"></open-fenbu></a-col>
  31. <a-col :span="12" :class="$style.customwrap"><user-todolist></user-todolist></a-col>
  32. </a-row>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. import components from './_import-components/xm-performance-track-import'
  38. import ResponseTimes from './xm-response-times.vue'
  39. import OverView from './xm-over-view.vue'
  40. import TimeCompare from './xm-time-compare.vue'
  41. import OpenFenbu from './xm-open-fenbu.vue'
  42. import UserTodolist from './xm-user-todolist.vue'
  43. const key = new Date().toString()
  44. export default {
  45. name: 'XmPerformanceTrack',
  46. metaInfo: {
  47. title: '关键用户监测',
  48. },
  49. components: {
  50. ...components,
  51. 'response-times': ResponseTimes,
  52. 'over-view': OverView,
  53. 'time-compare': TimeCompare,
  54. 'open-fenbu': OpenFenbu,
  55. 'user-todolist': UserTodolist,
  56. },
  57. data() {
  58. return {
  59. response: false,
  60. compare: false,
  61. fenbu: false,
  62. key: key,
  63. fullradio: 1,
  64. }
  65. },
  66. methods: {
  67. fullresponse(e) {
  68. this.response = e
  69. },
  70. fullcompare(e) {
  71. this.compare = e
  72. },
  73. fullfenbu(e) {
  74. this.fenbu = e
  75. },
  76. radiochange(e) {
  77. this.fullradio = e
  78. },
  79. },
  80. }
  81. </script>
  82. <style module lang="scss">
  83. @use '@/common/design' as *;
  84. .logo {
  85. float: left;
  86. width: 256px;
  87. height: 100%;
  88. background: url('~@custom/images/logo.png') no-repeat center;
  89. }
  90. .title {
  91. display: inline-block;
  92. float: left;
  93. height: 100%;
  94. font-size: $heading-4-size;
  95. }
  96. .header {
  97. &:global(.ant-layout-header) {
  98. padding: 0 20px 0 0;
  99. color: $text-color-inverse;
  100. background: $primary-10;
  101. }
  102. :global(.ant-btn-link) {
  103. color: $white;
  104. &:hover {
  105. color: $primary-2;
  106. }
  107. &:active {
  108. background-color: $disabled-color-dark;
  109. }
  110. }
  111. }
  112. :global(.ant-row) {
  113. height: 50%;
  114. }
  115. :global(.ant-col-12) {
  116. height: 94%;
  117. }
  118. :global(.ant-col-8) {
  119. height: 98%;
  120. }
  121. .wrapbackground {
  122. height: 100%;
  123. background: #01267b;
  124. }
  125. .customwrap {
  126. position: relative;
  127. padding-right: 5px;
  128. }
  129. body {
  130. background: #01267b;
  131. -ms-overflow-style: none;
  132. }
  133. .model {
  134. position: absolute;
  135. z-index: 200;
  136. width: 100%;
  137. height: calc(100% - 64px);
  138. background: rgba(1, 38, 123, 0.2);
  139. }
  140. .space {
  141. width: 1px;
  142. height: 15px;
  143. }
  144. .allwrap {
  145. width: 100%;
  146. height: calc(100% - 64px);
  147. }
  148. </style>