rectify.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <template>
  2. <view class="task-page">
  3. <div class="title">{{item.title}}</div>
  4. <div class="info">
  5. <div class="item">
  6. <view class="name">执行人</view>
  7. <view class="cont">执行人</view>
  8. </div>
  9. <div class="item">
  10. <view class="name">执行部门</view>
  11. <view class="cont">执行部门</view>
  12. </div>
  13. <div class="item">
  14. <view class="name">上报时间</view>
  15. <view class="cont">{{parseTime(new Date())}}</view>
  16. </div>
  17. </div>
  18. <div class="status">
  19. <div class="head">整改过程</div>
  20. <template v-if="flow.status===-1">
  21. <image class="icon-empty" src="/static/icon/empty.png" mode="widthFix"></image>
  22. <p>暂无处置信息</p>
  23. <view class="footer" @click="onSubmit">整改</view>
  24. </template>
  25. </div>
  26. </view>
  27. </template>
  28. <script>
  29. import {parseTime} from '@/libs/index.js'
  30. export default {
  31. data() {
  32. return {
  33. item:{
  34. title:"水位预{2号-770-32002}:采空区封堵完好,无渗水情况。"
  35. },
  36. flow:{
  37. status:"",
  38. time:"",
  39. desc:"",
  40. attachList:[]
  41. }
  42. }
  43. },
  44. onLoad() {
  45. this.init()
  46. },
  47. methods: {
  48. parseTime,
  49. init(){
  50. this.flow={
  51. status:-1,
  52. time:new Date(),
  53. desc:"处置过程描述处置过程描述处置过程描述处置过程描述处置过程描述处置过程描述处置过程描述",
  54. attachList:[
  55. {url:"/static/preview/1.png"},
  56. {url:"/static/preview/2.png"},
  57. {url:"/static/preview/3.png"},
  58. {url:"/static/preview/2.png"}
  59. ]
  60. }
  61. },
  62. getTask(){
  63. this.item=uni.getStorageSync('task-item')
  64. },
  65. onSubmit(){
  66. uni.navigateTo({
  67. url:'/pages/risk/rectify/form/form'
  68. })
  69. }
  70. },
  71. destroyed() {
  72. uni.removeStorageSync('task-item')
  73. }
  74. }
  75. </script>
  76. <style lang="scss" scoped>
  77. .task-page{
  78. background-color: #F3F5FB;
  79. .title{
  80. font-family: 'Source Han Sans CN';
  81. font-style: normal;
  82. font-weight: 700;
  83. font-size: 36rpx;
  84. line-height: 54rpx;
  85. color: #212121;
  86. padding:0 32rpx;
  87. }
  88. .info{
  89. padding: 0 32rpx;
  90. margin: 40rpx 0;
  91. background: #FFFFFF;
  92. border-radius: 32rpx 32rpx 0px 0px;
  93. .item{
  94. border-bottom: 1rpx solid #EFF1F3;
  95. padding: 40rpx 32rpx;
  96. .name{
  97. font-size: 28rpx;
  98. color: #999999;
  99. line-height: 1;
  100. }
  101. .cont{
  102. font-size: 30rpx;
  103. color: #212121;
  104. line-height: 1.5;
  105. padding-top: 12rpx;
  106. }
  107. &:last-child{
  108. border-bottom:none;
  109. }
  110. }
  111. }
  112. .status{
  113. background: #FFFFFF;
  114. border-radius: 32rpx 32rpx 0px 0px;
  115. padding: 48rpx 32rpx;
  116. .head{
  117. color: #212121;
  118. font-size: 34rpx;
  119. line-height:1;
  120. font-weight: 700;
  121. }
  122. .icon-empty{
  123. display: block;
  124. width: 160rpx;
  125. margin: 64rpx auto 0;
  126. }
  127. p{
  128. font-size: 24rpx;
  129. line-height: 28rpx;
  130. color: #D5D5D5;
  131. text-align: center;
  132. }
  133. .flow-head{
  134. display: flex;
  135. justify-content: space-between;
  136. align-items: center;
  137. font-family: 'Abhaya Libre';
  138. font-style: normal;
  139. font-weight: 400;
  140. font-size: 24rpx;
  141. line-height: 48rpx;
  142. padding: 30rpx 0 24rpx 0;
  143. .flow-status{
  144. color: #27DFA8;
  145. &.error{
  146. color: #F54545;
  147. }
  148. }
  149. .flow-time{
  150. color: #999999;
  151. }
  152. }
  153. .desc{
  154. font-family: 'SF Pro Text';
  155. font-style: normal;
  156. font-weight: 500;
  157. font-size: 30rpx;
  158. line-height: 42rpx;
  159. color: #434343;
  160. padding-bottom: 24rpx;
  161. }
  162. .attach{
  163. display: flex;
  164. flex-wrap: wrap;
  165. .attach-item{
  166. width: 224rpx;
  167. overflow: hidden;
  168. margin-right: 7rpx;
  169. margin-bottom: 20rpx;
  170. &:nth-child(3n){
  171. margin-right: 0;
  172. }
  173. .image{
  174. display: block;
  175. width: 224rpx;
  176. border-radius: 8px;
  177. }
  178. }
  179. }
  180. }
  181. .footer{
  182. width: 100%;
  183. height: 136upx;
  184. background: #FFFFFF;
  185. border-radius: 16upx 16upx 0px 0px;
  186. position: fixed;
  187. left: 0;
  188. bottom: 0;
  189. text-align: center;
  190. color: #168DEC;
  191. font-size: 32upx;
  192. padding-top: 20upx;
  193. letter-spacing: 2px;
  194. }
  195. }
  196. </style>