line-picture.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="page-body">
  3. <page-header :name="pageName" :bg="'#1560e0'" :showLeft="true" @goBack="goBack()"></page-header>
  4. <view class="scroll-wrap">
  5. <view class="basic-info-wrap">
  6. <electron-chart></electron-chart>
  7. <view class="radius-wrap"></view>
  8. </view>
  9. <view class="detail-info-wrap">
  10. <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'引自35KV变5211变电箱信息'">
  11. <template v-slot:content>
  12. <simple-table class="card-table" :tableHead="tableHead" :list="list"></simple-table>
  13. </template>
  14. </page-card>
  15. <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'引自35KV变5110变电箱信息'">
  16. <template v-slot:content>
  17. <simple-table class="card-table" :tableHead="tableHead" :list="list"></simple-table>
  18. </template>
  19. </page-card>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. tableHead: ['名称', 'Q:kVar', 'p:kw', 'Uab:V', 'cos', 'Ia:A'], // 表头名称
  29. pageName: '',
  30. list: [{ // 列表数据
  31. name: 5401,
  32. params: [0, 0, 0, 0, 0]
  33. }, {
  34. name: 5402,
  35. params: [0, 0, 0, 0, 0]
  36. }, {
  37. name: 5403,
  38. params: [0, 0, 0, 0, 0]
  39. }, {
  40. name: 5404,
  41. params: [0, 0, 0, 0, 0]
  42. }, {
  43. name: 5405,
  44. params: [0, 0, 0, 0, 0]
  45. }, {
  46. name: 5406,
  47. params: [0, 0, 0, 0, 0]
  48. }, {
  49. name: 5407,
  50. params: [124.8, 124.8, 124.8, 124.8, 124.8]
  51. }, {
  52. name: 5408,
  53. params: [0, 0, 0, 0, 0]
  54. }, {
  55. name: 5409,
  56. params: [0, 0, 0, 0, 0]
  57. }, {
  58. name: 5410,
  59. params: [0, 0, 0, 0, 0]
  60. }, {
  61. name: 5411,
  62. params: [0, 0, 0, 0, 0]
  63. }, {
  64. name: 5412,
  65. params: [0, 0, 0, 0, 0]
  66. }, {
  67. name: 500,
  68. params: [0, 0, 0, 0, 0]
  69. }]
  70. }
  71. },
  72. onLoad(option) {
  73. this.pageName = JSON.parse(option.data).name
  74. },
  75. methods: {
  76. goBack() { // 返回上一頁面
  77. uni.navigateBack()
  78. }
  79. }
  80. }
  81. </script>
  82. <style scoped lang="scss">
  83. .page-body {
  84. .scroll-wrap {
  85. height: calc(100vh - 85rpx);
  86. overflow: scroll;
  87. .basic-info-wrap {
  88. position: relative;
  89. height: 1195rpx;
  90. padding: 50rpx 0 0 49rpx;
  91. background: url(../../../../static/page_bg.png);
  92. background-size: 175%;
  93. .radius-wrap {
  94. position: absolute;
  95. left: 0;
  96. bottom: 0;
  97. width: 100vw;
  98. height: 30rpx;
  99. background-color: #fff;
  100. border-radius: 35rpx 35rpx 0 0;
  101. }
  102. }
  103. .detail-info-wrap {
  104. padding: 40rpx 35rpx;
  105. .card-table {
  106. /deep/ .table-head {
  107. .th {
  108. color: #1966E2;
  109. }
  110. }
  111. }
  112. /deep/ .card-wrap:last-child {
  113. margin-bottom: 0 !important;
  114. }
  115. }
  116. }
  117. }
  118. </style>