unprocessDetail.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <template>
  2. <view>
  3. <view class="timeBox flex justify-between align-center padding-lr-sm">
  4. <view class="time">2021-01-18 15:16:45</view>
  5. <button class="cu-btn radius bg-red sm">未处理</button>
  6. </view>
  7. <view v-if="type==1">
  8. <view class="basic-info" >
  9. <view class="info-tit margin-left-xs">
  10. <text class="cuIcon-titles margin-right-xs"></text>
  11. 基本信息
  12. </view>
  13. <view class="info-content">
  14. <view class="info-one-info ">
  15. <text>站点名称:</text>
  16. <text>测试站点一</text>
  17. </view>
  18. <view>
  19. <text>线路名称:</text>
  20. <text>进线一</text>
  21. </view>
  22. <view>
  23. <text>警告信息:</text>
  24. <text>母线停电</text>
  25. </view>
  26. <view>
  27. <text>警告状态:</text>
  28. <text>复归</text>
  29. </view>
  30. <view>
  31. <text>采集终端:</text>
  32. <text>DA00012784</text>
  33. </view>
  34. <view>
  35. <text>站点地址:</text>
  36. <text>沪太路8786弄155号<text class="icon iconfont map" @click="mapLocation()">&#xe612;</text></text>
  37. </view>
  38. <view>
  39. <text>联系人:</text>
  40. <text>韩正义</text>
  41. </view>
  42. <view>
  43. <text>联系方式:</text>
  44. <text>
  45. 15122423833
  46. <text class="phone icon iconfont" @click="submit()">&#xe61d;</text>
  47. </text>
  48. </view>
  49. <view>
  50. <text>运行数据:</text>
  51. <text class="checkMore" @tap="goOpeDataDetail">点击查看</text>
  52. </view>
  53. <view>
  54. <text>视频:</text>
  55. <text class="checkMore" @tap="goVideoDetail">点击查看</text>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- 处理状态start -->
  60. <view class="processStatus">
  61. <view class="info-tit margin-left-xs">
  62. <text class="cuIcon-titles margin-right-xs"></text>
  63. 处理内容
  64. </view>
  65. <view class="padding-lr padding-bottom-lg">
  66. <form action="">
  67. <!-- <radio-group class="block" @change="RadioChange">
  68. <view class=" flex align-center ">
  69. <radio class="blue mr-sm margin-right-xs" :class="radio=='A'?'checked':''" :checked="radio=='A'?true:false"
  70. value="A"></radio>
  71. <view class="title">单个处理</view>
  72. <radio class="blue margin-left-lg margin-right-xs" :class="radio=='B'?'checked':''" :checked="radio=='B'?true:false"
  73. value="B"></radio>
  74. <view class="title ">批量处理</view>
  75. </view>
  76. </radio-group> -->
  77. <view class="cu-form-group">
  78. <!-- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="备注信息,最多可输入50个字..."></textarea>-->
  79. <textarea class="JTxtArea lg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
  80. auto-height v-model="reason"></textarea>
  81. </view>
  82. <view class="btn-area">
  83. <!-- <button class="bg-orange round missReport margin-top">误 报 </button> -->
  84. <button class="bg-blue round missReport margin-top ">告警确认 </button>
  85. </view>
  86. </form>
  87. </view>
  88. </view>
  89. <!-- 处理状态end -->
  90. </view>
  91. <view v-else>
  92. <view class="basic-info">
  93. <view class="info-tit margin-left-xs">
  94. <text class="cuIcon-titles margin-right-xs"></text>
  95. 基本信息
  96. </view>
  97. <view class="info-content">
  98. <view class="info-one-info ">
  99. <text>设备名称:</text>
  100. <text>火点侦测摄像机</text>
  101. </view>
  102. <view>
  103. <text>设备地址:</text>
  104. <text>上海市虹口区塘沽路伍继办公室</text>
  105. </view>
  106. <view>
  107. <text>告警信息:</text>
  108. <text>火点/高温检测告警</text>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 报警当前情况截图start -->
  113. <view class="basic-info">
  114. <view class="info-tit margin-left-xs">
  115. <text class="cuIcon-titles margin-right-xs"></text>
  116. 报警当前情况截图
  117. </view>
  118. <view class="info-content padding-lr-lg">
  119. <image src="../../static/video-img.png" style="width:100%"></image>
  120. </view>
  121. </view>
  122. <!-- 报警当前情况截图end -->
  123. <!-- 处理状态start -->
  124. <view class="processStatus">
  125. <view class="info-tit margin-left-xs">
  126. <text class="cuIcon-titles margin-right-xs"></text>
  127. 处理内容
  128. </view>
  129. <view class="padding-lr padding-bottom-lg">
  130. <form action="">
  131. <!-- <radio-group class="block" @change="RadioChange">
  132. <view class=" flex align-center ">
  133. <radio class="blue mr-sm margin-right-xs" :class="radio=='A'?'checked':''" :checked="radio=='A'?true:false"
  134. value="A"></radio>
  135. <view class="title">单个处理</view>
  136. <radio class="blue margin-left-lg margin-right-xs" :class="radio=='B'?'checked':''" :checked="radio=='B'?true:false"
  137. value="B"></radio>
  138. <view class="title ">批量处理</view>
  139. </view>
  140. </radio-group> -->
  141. <view class="cu-form-group">
  142. <!-- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="备注信息,最多可输入50个字..."></textarea>-->
  143. <textarea class="JTxtArea lg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
  144. auto-height v-model="reason"></textarea>
  145. </view>
  146. <view class="btn-area">
  147. <button class="bg-orange round missReport margin-top">误 报 </button>
  148. <button class="bg-blue round missReport margin-top ">告警确认 </button>
  149. </view>
  150. </form>
  151. </view>
  152. </view>
  153. <!-- 处理状态end -->
  154. </view>
  155. </view>
  156. </template>
  157. <script>
  158. export default {
  159. data() {
  160. return {
  161. radio: 'A',
  162. radio: 'B',
  163. modalName: null,
  164. reason: '',
  165. type: '0'
  166. }
  167. },
  168. onLoad: function(option) {
  169. console.log(option.type); //打印出上个页面传递的参数。
  170. this.type = option.type;
  171. },
  172. methods: {
  173. submit() {
  174. uni.makePhoneCall({
  175. phoneNumber: '15122423833' //仅为示例
  176. });
  177. },
  178. mapLocation() {
  179. uni.openLocation({
  180. latitude: 31.469465,
  181. longitude: 121.327514,
  182. success: function() {
  183. console.log('success');
  184. }
  185. });
  186. },
  187. // 页面跳转
  188. goOpeDataDetail() {
  189. uni.navigateTo({
  190. url: '/pages/unprocessDetail/opeDataDetail/opeDataDetail',
  191. success: res => {},
  192. fail: () => {},
  193. complete: () => {}
  194. });
  195. },
  196. goVideoDetail() {
  197. uni.navigateTo({
  198. url: '/pages/unprocessDetail/videoDetail/videoDetail',
  199. success: res => {},
  200. fail: () => {},
  201. complete: () => {}
  202. });
  203. },
  204. RadioChange(e) {
  205. this.radio = e.detail.value
  206. },
  207. textareaAInput(e) {
  208. this.textareaAValue = e.detail.value
  209. },
  210. // textarea
  211. inputReason(e) {
  212. this.reason = e.detail.value;
  213. }
  214. }
  215. }
  216. </script>
  217. <style lang="scss">
  218. /* // 处理内容 */
  219. .cu-form-group {
  220. background: #f5f5f5;
  221. }
  222. .processStatus {
  223. textarea {
  224. background: #F5F5F5;
  225. color: #999999;
  226. }
  227. }
  228. // textarea
  229. .JTxtArea {
  230. position: relative;
  231. &.sm {
  232. min-height: 60rpx;
  233. }
  234. &.lg {
  235. min-height: 100rpx;
  236. }
  237. &:after {
  238. content: attr(data-maxnum);
  239. position: absolute;
  240. right: 10rpx;
  241. bottom: 0px;
  242. }
  243. }
  244. </style>