Scan.vue 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <div class="wifiSign">
  3. <div class="other-people">
  4. <div class="image-border image-border1"></div>
  5. <div class="image-border image-border2"></div>
  6. <div class="image-border image-border3"></div>
  7. <div class="image-border image-border4"></div>
  8. <div class="other-people-title">
  9. 0-6G扫描
  10. </div>
  11. <ve-line :data="chartData" width="966px" height="250px" :loading="loading" :legend-visible="false"
  12. :extend="chartExtend"></ve-line>
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. import {Scan} from '../api/getApiRes.js'
  18. let qs = require('qs');
  19. export default {
  20. data() {
  21. return {
  22. days: 13,
  23. loading: true,
  24. chartData: {
  25. columns: ['X', 'Y'],
  26. rows: []
  27. },
  28. chartExtend: {
  29. color: ['#4ad2ff'],
  30. series: {
  31. barMaxWidth: 10
  32. },
  33. axisLine: {
  34. color: "#4ad2ff",
  35. },
  36. yAxis: {
  37. // name : '单位: dB',
  38. splitLine: {
  39. lineStyle: {
  40. // 使用深浅的间隔色
  41. color: ['#08255B']
  42. }
  43. },
  44. axisLine: {
  45. lineStyle: {
  46. color: '#4ad2ff',
  47. width: 1,//这里是为了突出显示加上的
  48. }
  49. }
  50. },
  51. xAxis: {
  52. splitLine: {
  53. lineStyle: {
  54. // 使用深浅的间隔色
  55. color: ['#4ad2ff']
  56. }
  57. },
  58. axisLine: {
  59. lineStyle: {
  60. color: '#4ad2ff',
  61. width: 1,//这里是为了突出显示加上的
  62. }
  63. }
  64. }
  65. }
  66. }
  67. },
  68. props: ['ScanRs'],
  69. watch: {
  70. ScanRs: function (val) {
  71. let that = this;
  72. that.chartData.rows = val.Rs
  73. },
  74. },
  75. }
  76. </script>
  77. <style scoped>
  78. .wifiSign {
  79. overflow: hidden;
  80. display: block;
  81. margin: 0 auto;
  82. }
  83. /deep/ .other-people {
  84. width: 966px;
  85. height: 212px;
  86. margin-left:0;
  87. padding: 0;
  88. padding-right: 5px;
  89. }
  90. </style>