none.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div @click="toDetailed()" class="statisticsPage" :style="{width:width}">
  3. <div id="jianCe" :style="{height:height}"/>
  4. </div>
  5. </template>
  6. <script>
  7. import echarts from 'echarts'
  8. export default {
  9. props: {
  10. data: {
  11. type: Object,
  12. },
  13. width:{
  14. type:String,
  15. default:"20%"
  16. },
  17. height:{
  18. type:String,
  19. default: window.screen.height/4+"px"
  20. },
  21. id:{
  22. type:String,
  23. default:"s2manYiDu"
  24. },
  25. click:{
  26. type:String,
  27. default:'true'
  28. },
  29. },
  30. data () {
  31. return {
  32. title:'检测管理',
  33. year:'2021-2022年检测总次数',
  34. initStyle:{ height: window.screen.height/4+"px"}
  35. }
  36. },
  37. mounted(){
  38. this.drawLine();
  39. },
  40. methods: {
  41. /* 跳转统计页面*/
  42. toDetailed(){
  43. console.log('跳转')
  44. },
  45. drawLine(){
  46. }
  47. }
  48. }
  49. </script>
  50. <style scoped>
  51. #jianCe:hover{
  52. transition: all 0.5s;
  53. transform:scale(1.03);
  54. }
  55. .statisticsPage{
  56. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  57. width: 20%;
  58. float: left;
  59. }
  60. </style>