opeDataDetail.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view>
  3. <view class="timeBox flex justify-between align-center padding-lr-sm">
  4. <view class="time">进线一</view>
  5. <button class="cu-btn bg-green sm">在线</button>
  6. </view>
  7. <view class="basic-info">
  8. <view class="info-tit margin-left-xs">
  9. <text class="cuIcon-titles margin-right-xs"></text>
  10. 数据状态
  11. </view>
  12. <view class="info-content">
  13. <view class="info-one-info ">
  14. <text>Uab:</text>
  15. <text>{{opeData.Uab}}V</text>
  16. </view>
  17. <view>
  18. <text>Ubc:</text>
  19. <text>{{opeData.Ubc}}V</text>
  20. </view>
  21. <view>
  22. <text>Uca:</text>
  23. <text>{{opeData.Uca}}V</text>
  24. </view>
  25. <view>
  26. <text>la:</text>
  27. <text>{{opeData.Ia}}A</text>
  28. </view>
  29. <view>
  30. <text>lb:</text>
  31. <text>{{opeData.Ib}}A</text>
  32. </view>
  33. <view>
  34. <text>lc:</text>
  35. <text>{{opeData.Ic}}A</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. opeData:{}
  46. }
  47. },
  48. onLoad(option) {
  49. this.getOpeData({"companyCode":option.companyCode,"deviceCode":option.deviceCode,"deviceType":option.deviceType})
  50. },
  51. methods: {
  52. async getOpeData(ming={}) {
  53. const res= await this.$myRequest({
  54. url:'OperationMonitoring/getMonitoringScreen',
  55. data:ming
  56. })
  57. console.log(res.data.data[0]);
  58. this.opeData=res.data.data[0]
  59. },
  60. }
  61. }
  62. </script>
  63. <style>
  64. .info-content uni-view uni-text:first-child{
  65. width:90rpx;
  66. }
  67. </style>