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 3.9 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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-tabs>
  29. </div>
  30. </template>
  31. <script>
  32. import ProAnalysis from './ProAnalysis.vue'
  33. import UserAnalysis from './UserAnalysis.vue'
  34. export default {
  35. components:{
  36. 'ProAnalysis':ProAnalysis,
  37. 'UserAnalysis':UserAnalysis,
  38. },
  39. data() {
  40. return {
  41. activeName:"second",
  42. loading:true,
  43. loading1:true,
  44. isRouterAlive: true,
  45. isRouterAlive1: true,
  46. isSecond:true,
  47. isThird:false,
  48. }
  49. },
  50. methods:{
  51. handleClick(tab, event){
  52. if(tab.name=="second"){
  53. this.reload()
  54. this.isSecond = true
  55. this.isThird = false
  56. this.$refs.ProAnalysis.getAllProList("all",7)
  57. }
  58. if(tab.name=="third"){
  59. this.reload1()
  60. this.isSecond = false
  61. this.isThird = true
  62. this.$refs.UserAnalysis.getUpdateTime()
  63. this.$refs.UserAnalysis.getUserList("all_usr",7)
  64. }
  65. },
  66. reload () {
  67. this.isRouterAlive = false
  68. this.$nextTick(() => (this.isRouterAlive = true))
  69. },
  70. reload1 () {
  71. this.isRouterAlive1 = false
  72. this.$nextTick(() => (this.isRouterAlive1 = true))
  73. }
  74. },
  75. }
  76. </script>
  77. <style scoped>
  78. /deep/ .is-active{
  79. color: #238BFC ;
  80. background-color: #FFFF ;
  81. }
  82. /deep/ .ui-container{
  83. background-color: #FFFF;
  84. }
  85. /deep/ .el-tabs--left .el-tabs__header.is-left{
  86. background-color:#F5F5F6;
  87. width: 12.43%;
  88. }
  89. .el-tabs--left .el-tabs__header.is-left
  90. html,
  91. body,
  92. /deep/ .el-container {
  93. padding: 0px;
  94. margin: 0px;
  95. height: 100%;
  96. }
  97. /deep/ .el-tabs--left .el-tabs__item.is-left {
  98. text-align: left;
  99. }
  100. /deep/ .el-tabs__item {
  101. padding: 0px 20px 0px 20px;
  102. }
  103. /deep/ .el-tabs__item.is-active .el-image{
  104. filter:none
  105. }
  106. /deep/ .el-tabs__item:hover .el-image{
  107. filter:none
  108. }
  109. /deep/ .el-image{
  110. filter:grayscale(100%)
  111. }
  112. </style>