processedDetail.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view>
  3. <view class="timeBox flex justify-between align-center padding-lr-sm">
  4. <view class="time">{{getData.clsj}}</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?'是':'否'}}</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. radio: 'A',
  64. radio: 'B',
  65. modalName: null,
  66. type: '0',
  67. detailMessage: {},
  68. detailMessage2: {},
  69. getData: {}
  70. }
  71. },
  72. onLoad: function(option) {
  73. this.getDetailData({
  74. "type": option.type,
  75. "id": option.id
  76. })
  77. },
  78. methods: {
  79. async getDetailData(params = {}) {
  80. const res = await this.$myRequest({
  81. url: 'ComprehensiveAlarm/getAlarmDetails',
  82. data: params,
  83. showLoading: true
  84. })
  85. this.getData = res.data.data[0];
  86. console.log(this.getData)
  87. },
  88. submit() {
  89. uni.makePhoneCall({
  90. phoneNumber: '15122423833' //仅为示例
  91. });
  92. },
  93. RadioChange(e) {
  94. this.radio = e.detail.value
  95. },
  96. textareaAInput(e) {
  97. this.textareaAValue = e.detail.value
  98. },
  99. }
  100. }
  101. </script>
  102. <style lang="scss">
  103. .timeBox {
  104. height: 88rpx;
  105. background: #EFF4FF;
  106. line-height: 88rpx;
  107. .time {
  108. color: #333
  109. }
  110. }
  111. .info-tit {
  112. color: #4074E7;
  113. line-height: 90rpx;
  114. height: 90rpx;
  115. }
  116. // 基本信息
  117. .info-content>view {
  118. margin-left: 24rpx;
  119. border-bottom: 1px solid #EDEDED;
  120. line-height: 92rpx;
  121. color: #666;
  122. }
  123. .info-content view text:first-child {
  124. width: 160rpx;
  125. display: inline-block
  126. }
  127. </style>