detail.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <view>
  3. <view class="top">
  4. <view class="icon">
  5. <image src="./icon/icon.png" mode=""></image>
  6. </view>
  7. <view class="title">网格化管理</view>
  8. <view class="time">{{detail.create_date}}</view>
  9. </view>
  10. <view class="section">
  11. <view class="text">检查记录</view>
  12. </view>
  13. <view class="content">
  14. <view class="inner">
  15. <view class="label">网格编号:</view>
  16. <view class="text">{{detail.number_name}}</view>
  17. </view>
  18. <view class="inner">
  19. <view class="label">网格范围:</view>
  20. <view class="text">{{detail.range_name}}</view>
  21. </view>
  22. <view class="inner">
  23. <view class="label">网格区域:</view>
  24. <view class="text">{{detail.region_name}}</view>
  25. </view>
  26. <view class="inner">
  27. <view class="label">巡检人员:</view>
  28. <view class="text">{{detail.owner_name}}</view>
  29. </view>
  30. <view class="inner">
  31. <view class="label">巡检日期:</view>
  32. <view class="text">{{detail.inspection_date}}</view>
  33. </view>
  34. <view class="inner">
  35. <view class="label">现场照片:</view>
  36. <view class="img">
  37. <image :src="detail.img_url" mode=""></image>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. detail:{}
  48. };
  49. },
  50. onLoad(option) {
  51. this.get_trouble_grid_check_detail(option.id)
  52. },
  53. methods:{
  54. get_trouble_grid_check_detail(id) {
  55. uni.showLoading({
  56. mask:true
  57. })
  58. this.$api.trouble_grid_check_detail({
  59. id: id
  60. }).then((res)=>{
  61. uni.hideLoading()
  62. console.log(res.data.data)
  63. this.detail = res.data.data
  64. })
  65. },
  66. }
  67. }
  68. </script>
  69. <style lang="scss">
  70. .top{
  71. text-align: center;
  72. box-sizing: border-box;
  73. padding: 25rpx;
  74. .icon{
  75. image{
  76. width: 91rpx;
  77. height: 106rpx;
  78. }
  79. }
  80. .title{
  81. line-height: 60rpx;
  82. }
  83. .time{
  84. font-size: 28rpx;
  85. color: #999999;
  86. }
  87. }
  88. .section{
  89. box-sizing: border-box;
  90. padding: 15rpx 25rpx;
  91. background-color: #ECF0F1;;
  92. .text{
  93. line-height: 50rpx;
  94. color: #009FE8;
  95. border-left: 6rpx solid #009FE8;
  96. padding-left: 20rpx;
  97. }
  98. }
  99. .content{
  100. box-sizing: border-box;
  101. padding: 0 25rpx;
  102. .inner {
  103. padding-top: 40rpx;
  104. width: 700rpx;
  105. display: flex;
  106. font-size: 32rpx;
  107. .label {
  108. width: 200rpx;
  109. }
  110. .text {
  111. width: 500rpx;
  112. }
  113. .img{
  114. image{
  115. width: 300rpx;
  116. height: 300rpx;
  117. }
  118. }
  119. }
  120. }
  121. </style>