processedDetail.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view>
  3. <view class="timeBox flex justify-between align-center padding-lr-sm">
  4. <view class="time">{{getData.time}}</view>
  5. <button class="cu-btn radius bg-green sm">已处理</button>
  6. </view>
  7. <view>
  8. <!-- 基本信息start -->
  9. <view class="basic-info">
  10. <view class="info-tit margin-left-xs">
  11. <text class="cuIcon-titles margin-right-xs"></text>
  12. 基本信息
  13. </view>
  14. <view class="info-content">
  15. <view class="info-one-info ">
  16. <text>设备名称:</text>
  17. <text>{{getData.device_name}}</text>
  18. </view>
  19. <view>
  20. <text>设备地址:</text>
  21. <text>{{getData.unitinfo}}</text>
  22. </view>
  23. <view>
  24. <text>告警信息:</text>
  25. <text>{{getData.alarm_information}}</text>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- 基本信息end -->
  30. <!-- 处理信息start -->
  31. <view class="processStatus">
  32. <view class="info-tit margin-left-xs">
  33. <text class="cuIcon-titles margin-right-xs"></text>
  34. 处理信息
  35. </view>
  36. <view class="info-content">
  37. <view class="info-one-info ">
  38. <text>是否误报:</text>
  39. <text>{{getData.clwb!='0'?'是':'否'}}</text>
  40. </view>
  41. <view>
  42. <text>处理人:</text>
  43. <text>{{getData.clr}}</text>
  44. </view>
  45. <view>
  46. <text>处理时间:</text>
  47. <text>{{getData.clsj}}</text>
  48. </view>
  49. <view>
  50. <text>处理内容:</text>
  51. <text>{{getData.clnr}}</text>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 处理状态end -->
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. type: 1,
  64. getData: {}
  65. }
  66. },
  67. onLoad: function(option) {
  68. this.type=option.type;
  69. this.getDetailData({
  70. "type": option.type,
  71. "id": option.id
  72. })
  73. },
  74. methods: {
  75. async getDetailData(params = {}) {
  76. const res = await this.$myRequest({
  77. url: 'ComprehensiveAlarm/getAlarmDetails',
  78. data: params,
  79. showLoading: true
  80. })
  81. this.getData = res.data.data[0];
  82. console.log(this.getData)
  83. },
  84. RadioChange(e) {
  85. this.radio = e.detail.value
  86. },
  87. textareaAInput(e) {
  88. this.textareaAValue = e.detail.value
  89. },
  90. }
  91. }
  92. </script>
  93. <style lang="scss">
  94. .timeBox {
  95. height: 88rpx;
  96. background: #EFF4FF;
  97. line-height: 88rpx;
  98. .time {
  99. color: #333
  100. }
  101. }
  102. .info-tit {
  103. color: #4074E7;
  104. line-height: 90rpx;
  105. height: 90rpx;
  106. }
  107. // 基本信息
  108. .info-content>view {
  109. margin-left: 24rpx;
  110. border-bottom: 1px solid #EDEDED;
  111. line-height: 92rpx;
  112. color: #666;
  113. }
  114. .info-content view text:first-child {
  115. width: 160rpx;
  116. display: inline-block
  117. }
  118. </style>