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.

DataAnalysis1.vue 4.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. <el-col :span="21" style="float: right;padding-left:10px">
  38. <ProAnalysis></ProAnalysis>
  39. </el-col>
  40. <!-- </div> -->
  41. </template>
  42. <script>
  43. import ProAnalysis from './ProAnalysis.vue'
  44. export default {
  45. components:{
  46. 'ProAnalysis':ProAnalysis,
  47. },
  48. }
  49. </script>
  50. <!--
  51. <script>
  52. import ProAnalysis from './ProAnalysis.vue'
  53. import UserAnalysis from './UserAnalysis.vue'
  54. import BrainAnalysis from './BrainAnalysis.vue'
  55. export default {
  56. components:{
  57. 'ProAnalysis':ProAnalysis,
  58. 'UserAnalysis':UserAnalysis,
  59. 'BrainAnalysis':BrainAnalysis,
  60. },
  61. data() {
  62. return {
  63. activeName:"second",
  64. loading:true,
  65. loading1:true,
  66. isRouterAlive: true,
  67. isRouterAlive1: true,
  68. isSecond:true,
  69. isThird:false,
  70. }
  71. },
  72. methods:{
  73. handleClick(tab, event){
  74. if(tab.name=="second"){
  75. this.reload()
  76. this.isSecond = true
  77. this.isThird = false
  78. this.$refs.ProAnalysis.getAllProList("all",7)
  79. }
  80. if(tab.name=="third"){
  81. this.reload1()
  82. this.isSecond = false
  83. this.isThird = true
  84. this.$refs.UserAnalysis.getUpdateTime()
  85. this.$refs.UserAnalysis.getUserList("all_usr",7)
  86. }
  87. },
  88. reload () {
  89. this.isRouterAlive = false
  90. this.$nextTick(() => (this.isRouterAlive = true))
  91. },
  92. reload1 () {
  93. this.isRouterAlive1 = false
  94. this.$nextTick(() => (this.isRouterAlive1 = true))
  95. }
  96. },
  97. }
  98. </script>
  99. <style scoped>
  100. /deep/ .is-active{
  101. color: #238BFC ;
  102. background-color: #FFFF ;
  103. }
  104. /deep/ .ui-container{
  105. background-color: #FFFF;
  106. }
  107. /deep/ .el-tabs--left .el-tabs__header.is-left{
  108. background-color:#F5F5F6;
  109. width: 12.43%;
  110. }
  111. .el-tabs--left .el-tabs__header.is-left
  112. html,
  113. body,
  114. /deep/ .el-container {
  115. padding: 0px;
  116. margin: 0px;
  117. height: 100%;
  118. }
  119. /deep/ .el-tabs--left .el-tabs__item.is-left {
  120. text-align: left;
  121. }
  122. /deep/ .el-tabs__item {
  123. padding: 0px 20px 0px 20px;
  124. }
  125. /deep/ .el-tabs__item.is-active .el-image{
  126. filter:none
  127. }
  128. /deep/ .el-tabs__item:hover .el-image{
  129. filter:none
  130. }
  131. /deep/ .el-image{
  132. filter:grayscale(100%)
  133. }
  134. </style> -->