rectify.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <view class="task-page">
  3. <div class="title">{{item.hdangerTitle}}</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 >
  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. },
  35. flow:{
  36. status:"",
  37. time:"",
  38. desc:"",
  39. attachList:[]
  40. }
  41. }
  42. },
  43. onLoad() {
  44. this.getTask()
  45. },
  46. methods: {
  47. parseTime,
  48. init(){
  49. this.flow={
  50. status:-1,
  51. time:new Date(),
  52. desc:"处置过程描述处置过程描述处置过程描述处置过程描述处置过程描述处置过程描述处置过程描述",
  53. attachList:[
  54. {url:"/static/preview/1.png"},
  55. {url:"/static/preview/2.png"},
  56. {url:"/static/preview/3.png"},
  57. {url:"/static/preview/2.png"}
  58. ]
  59. }
  60. },
  61. getTask(){
  62. this.item=uni.getStorageSync('danger-info')
  63. },
  64. onSubmit(){
  65. uni.navigateTo({
  66. url:'/pages/risk/rectify/form/form'
  67. })
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. .task-page{
  74. background-color: #F3F5FB;
  75. .title{
  76. font-family: 'Source Han Sans CN';
  77. font-style: normal;
  78. font-weight: 700;
  79. font-size: 36rpx;
  80. line-height: 54rpx;
  81. color: #212121;
  82. padding:0 32rpx;
  83. }
  84. .info{
  85. padding: 0 32rpx;
  86. margin: 40rpx 0;
  87. background: #FFFFFF;
  88. border-radius: 32rpx 32rpx 0px 0px;
  89. .item{
  90. border-bottom: 1rpx solid #EFF1F3;
  91. padding: 40rpx 32rpx;
  92. .name{
  93. font-size: 28rpx;
  94. color: #999999;
  95. line-height: 1;
  96. }
  97. .cont{
  98. font-size: 30rpx;
  99. color: #212121;
  100. line-height: 1.5;
  101. padding-top: 12rpx;
  102. }
  103. &:last-child{
  104. border-bottom:none;
  105. }
  106. }
  107. }
  108. .status{
  109. background: #FFFFFF;
  110. border-radius: 32rpx 32rpx 0px 0px;
  111. padding: 48rpx 32rpx;
  112. .head{
  113. color: #212121;
  114. font-size: 34rpx;
  115. line-height:1;
  116. font-weight: 700;
  117. }
  118. .icon-empty{
  119. display: block;
  120. width: 160rpx;
  121. margin: 64rpx auto 0;
  122. }
  123. p{
  124. font-size: 24rpx;
  125. line-height: 28rpx;
  126. color: #D5D5D5;
  127. text-align: center;
  128. }
  129. .flow-head{
  130. display: flex;
  131. justify-content: space-between;
  132. align-items: center;
  133. font-family: 'Abhaya Libre';
  134. font-style: normal;
  135. font-weight: 400;
  136. font-size: 24rpx;
  137. line-height: 48rpx;
  138. padding: 30rpx 0 24rpx 0;
  139. .flow-status{
  140. color: #27DFA8;
  141. &.error{
  142. color: #F54545;
  143. }
  144. }
  145. .flow-time{
  146. color: #999999;
  147. }
  148. }
  149. .desc{
  150. font-family: 'SF Pro Text';
  151. font-style: normal;
  152. font-weight: 500;
  153. font-size: 30rpx;
  154. line-height: 42rpx;
  155. color: #434343;
  156. padding-bottom: 24rpx;
  157. }
  158. .attach{
  159. display: flex;
  160. flex-wrap: wrap;
  161. .attach-item{
  162. width: 224rpx;
  163. overflow: hidden;
  164. margin-right: 7rpx;
  165. margin-bottom: 20rpx;
  166. &:nth-child(3n){
  167. margin-right: 0;
  168. }
  169. .image{
  170. display: block;
  171. width: 224rpx;
  172. border-radius: 8px;
  173. }
  174. }
  175. }
  176. }
  177. .footer{
  178. width: 100%;
  179. height: 136upx;
  180. background: #FFFFFF;
  181. border-radius: 16upx 16upx 0px 0px;
  182. position: fixed;
  183. left: 0;
  184. bottom: 0;
  185. text-align: center;
  186. color: #168DEC;
  187. font-size: 32upx;
  188. padding-top: 20upx;
  189. letter-spacing: 2px;
  190. }
  191. }
  192. </style>