processedDetail.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. // console.log(res.data)
  88. },
  89. submit() {
  90. uni.makePhoneCall({
  91. phoneNumber: '15122423833' //仅为示例
  92. });
  93. },
  94. RadioChange(e) {
  95. this.radio = e.detail.value
  96. },
  97. textareaAInput(e) {
  98. this.textareaAValue = e.detail.value
  99. },
  100. }
  101. }
  102. </script>
  103. <style lang="scss">
  104. .timeBox {
  105. height: 88rpx;
  106. background: #EFF4FF;
  107. line-height: 88rpx;
  108. .time {
  109. color: #333
  110. }
  111. }
  112. .info-tit {
  113. color: #4074E7;
  114. line-height: 90rpx;
  115. height: 90rpx;
  116. }
  117. // 基本信息
  118. .info-content>view {
  119. margin-left: 24rpx;
  120. border-bottom: 1px solid #EDEDED;
  121. line-height: 92rpx;
  122. color: #666;
  123. }
  124. .info-content view text:first-child {
  125. width: 160rpx;
  126. display: inline-block
  127. }
  128. </style>