unprocessDetail.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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 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>站点名称:</text>
  15. <text>测试站点一</text>
  16. </view>
  17. <view>
  18. <text>线路名称:</text>
  19. <text>进线一</text>
  20. </view>
  21. <view>
  22. <text>警告信息:</text>
  23. <text>母线停电</text>
  24. </view>
  25. <view>
  26. <text>警告状态:</text>
  27. <text>复归</text>
  28. </view>
  29. <view>
  30. <text>采集终端:</text>
  31. <text>DA00012784</text>
  32. </view>
  33. <view>
  34. <text>站点地址:</text>
  35. <text>沪太路8786弄155号<text class="icon iconfont map" @click="mapLocation()">&#xe612;</text></text>
  36. </view>
  37. <view>
  38. <text>联系人:</text>
  39. <text>韩正义</text>
  40. </view>
  41. <view>
  42. <text>联系方式:</text>
  43. <text>
  44. 15122423833
  45. <text class="phone icon iconfont" @click="submit()">&#xe61d;</text>
  46. </text>
  47. </view>
  48. <view>
  49. <text>运行数据:</text>
  50. <text class="checkMore" @tap="goOpeDataDetail">点击查看</text>
  51. </view>
  52. <view>
  53. <text>视频:</text>
  54. <text class="checkMore" @tap="goVideoDetail">点击查看</text>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 处理状态start -->
  59. <view class="processStatus">
  60. <view class="info-tit margin-left-xs">
  61. <text class="cuIcon-titles margin-right-xs"></text>
  62. 处理状态
  63. </view>
  64. <view class="padding-lr padding-bottom-lg">
  65. <form action="">
  66. <radio-group class="block" @change="RadioChange">
  67. <view class=" flex align-center ">
  68. <radio class="blue mr-sm margin-right-xs" :class="radio=='A'?'checked':''" :checked="radio=='A'?true:false"
  69. value="A"></radio>
  70. <view class="title">单个处理</view>
  71. <radio class="blue margin-left-lg margin-right-xs" :class="radio=='B'?'checked':''" :checked="radio=='B'?true:false"
  72. value="B"></radio>
  73. <view class="title ">批量处理</view>
  74. </view>
  75. </radio-group>
  76. <view class="cu-form-group margin-top">
  77. <!-- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="备注信息,最多可输入50个字..."></textarea>-->
  78. <textarea class="JTxtArea lg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
  79. auto-height v-model="reason"></textarea>
  80. </view>
  81. <view class="btn-area">
  82. <button class="bg-orange round missReport margin-top">误 报 </button>
  83. <button class="bg-blue round missReport margin-top ">非 误 报 </button>
  84. </view>
  85. </form>
  86. </view>
  87. </view>
  88. <!-- 处理状态end -->
  89. </view>
  90. </template>
  91. <script>
  92. export default {
  93. data() {
  94. return {
  95. radio: 'A',
  96. radio: 'B',
  97. modalName: null,
  98. reason: '',
  99. }
  100. },
  101. methods: {
  102. submit() {
  103. uni.makePhoneCall({
  104. phoneNumber: '15122423833' //仅为示例
  105. });
  106. },
  107. mapLocation(){
  108. uni.getLocation({
  109. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  110. success: function (res) {
  111. const latitude =31.469465;
  112. const longitude = 121.327514;
  113. console.log(latitude);
  114. uni.openLocation({
  115. latitude: latitude,
  116. longitude: longitude,
  117. success: function () {
  118. console.log('success');
  119. }
  120. });
  121. }
  122. });
  123. },
  124. // 页面跳转
  125. goOpeDataDetail() {
  126. uni.navigateTo({
  127. url: '/pages/unprocessDetail/opeDataDetail/opeDataDetail',
  128. success: res => {},
  129. fail: () => {},
  130. complete: () => {}
  131. });
  132. },
  133. goVideoDetail() {
  134. uni.navigateTo({
  135. url: '/pages/unprocessDetail/videoDetail/videoDetail',
  136. success: res => {},
  137. fail: () => {},
  138. complete: () => {}
  139. });
  140. },
  141. RadioChange(e) {
  142. this.radio = e.detail.value
  143. },
  144. textareaAInput(e) {
  145. this.textareaAValue = e.detail.value
  146. },
  147. // textarea
  148. inputReason(e) {
  149. this.reason = e.detail.value;
  150. }
  151. }
  152. }
  153. </script>
  154. <style lang="scss">
  155. /* // 处理内容 */
  156. .cu-form-group {
  157. background: #f5f5f5;
  158. }
  159. .processStatus {
  160. radio {
  161. transform: scale(0.77)
  162. }
  163. textarea {
  164. background: #F5F5F5;
  165. color: #999999;
  166. }
  167. }
  168. // textarea
  169. .JTxtArea {
  170. position: relative;
  171. &.sm {
  172. min-height: 60rpx;
  173. }
  174. &.lg {
  175. min-height: 100rpx;
  176. }
  177. &:after {
  178. content: attr(data-maxnum);
  179. position: absolute;
  180. right: 10rpx;
  181. bottom: 0px;
  182. }
  183. }
  184. </style>