You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

DataAnalysis.vue 4.4 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <div style="height:100%">
  3. <el-tabs tab-position="left" v-model="activeName" style="height:100%" @tab-click="handleClick" >
  4. <el-tab-pane label="概览" name="first" >
  5. <span slot="label">
  6. <el-image style="width: 13px; height: 13px" src="/img/overview_rgb.svg">
  7. </el-image>
  8. 概览
  9. </span>
  10. <div >暂无内容.......</div>
  11. </el-tab-pane>
  12. <el-tab-pane label="项目分析" name="second" id="second" >
  13. <ProAnalysis ref='ProAnalysis'id="pro" v-if="isRouterAlive"></ProAnalysis>
  14. <span slot="label">
  15. <el-image style="width: 13px; height: 13px" src="/img/pro_rgb.svg">
  16. </el-image>
  17. 项目分析
  18. </span>
  19. </el-tab-pane>
  20. <el-tab-pane name="third" id='third' >
  21. <span slot='label'>
  22. <el-image style="width: 13px; height: 13px" src="/img/user_rgb.svg">
  23. </el-image>
  24. 用户分析
  25. </span>
  26. <UserAnalysis ref='UserAnalysis' v-if="isRouterAlive1" id ="usr"></UserAnalysis>
  27. </el-tab-pane>
  28. <el-tab-pane name="four" id='four' >
  29. <BrainAnalysis ref='BrainAnalysis'id="brain" v-if="isRouterAlive"></BrainAnalysis>
  30. <span slot="label">
  31. <el-image style="width: 13px; height: 13px" src="/img/pro_rgb.svg">
  32. </el-image>
  33. 云脑分析
  34. </span>
  35. </el-tab-pane>
  36. </el-tabs>
  37. </div>
  38. </template>
  39. <script>
  40. import ProAnalysis from './ProAnalysis.vue'
  41. import UserAnalysis from './UserAnalysis.vue'
  42. import BrainAnalysis from './BrainAnalysis.vue'
  43. export default {
  44. components:{
  45. 'ProAnalysis':ProAnalysis,
  46. 'UserAnalysis':UserAnalysis,
  47. 'BrainAnalysis':BrainAnalysis,
  48. },
  49. data() {
  50. return {
  51. activeName:"second",
  52. loading:true,
  53. loading1:true,
  54. isRouterAlive: true,
  55. isRouterAlive1: true,
  56. isSecond:true,
  57. isThird:false,
  58. }
  59. },
  60. methods:{
  61. handleClick(tab, event){
  62. if(tab.name=="second"){
  63. this.reload()
  64. this.isSecond = true
  65. this.isThird = false
  66. this.$refs.ProAnalysis.getAllProList("all",7)
  67. }
  68. if(tab.name=="third"){
  69. this.reload1()
  70. this.isSecond = false
  71. this.isThird = true
  72. this.$refs.UserAnalysis.getUpdateTime()
  73. this.$refs.UserAnalysis.getUserList("all_usr",7)
  74. }
  75. },
  76. reload () {
  77. this.isRouterAlive = false
  78. this.$nextTick(() => (this.isRouterAlive = true))
  79. },
  80. reload1 () {
  81. this.isRouterAlive1 = false
  82. this.$nextTick(() => (this.isRouterAlive1 = true))
  83. }
  84. },
  85. }
  86. </script>
  87. <style scoped>
  88. /deep/ .is-active{
  89. color: #238BFC ;
  90. background-color: #FFFF ;
  91. }
  92. /deep/ .ui-container{
  93. background-color: #FFFF;
  94. }
  95. /deep/ .el-tabs--left .el-tabs__header.is-left{
  96. background-color:#F5F5F6;
  97. width: 12.43%;
  98. }
  99. .el-tabs--left .el-tabs__header.is-left
  100. html,
  101. body,
  102. /deep/ .el-container {
  103. padding: 0px;
  104. margin: 0px;
  105. height: 100%;
  106. }
  107. /deep/ .el-tabs--left .el-tabs__item.is-left {
  108. text-align: left;
  109. }
  110. /deep/ .el-tabs__item {
  111. padding: 0px 20px 0px 20px;
  112. }
  113. /deep/ .el-tabs__item.is-active .el-image{
  114. filter:none
  115. }
  116. /deep/ .el-tabs__item:hover .el-image{
  117. filter:none
  118. }
  119. /deep/ .el-image{
  120. filter:grayscale(100%)
  121. }
  122. </style>