mission-details.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="mission-details-page">
  3. <scroll-view class="scroll-y" scroll-y="true">
  4. <list-item :isClose="true" />
  5. <view class="mission-plan">
  6. <view class="label">
  7. <text>改善进度</text>
  8. </view>
  9. <view class="plan-box">
  10. <template v-for="(item, i) in list">
  11. <view class="row" :key="i">
  12. <view class="col">
  13. <image
  14. class="plan-icon"
  15. :src="`/static/${i === list.length - 1 ? 'check-radio' : 'check-no'}.png`">
  16. </image>
  17. <view class="line" v-show="i != list.length -1"></view>
  18. </view>
  19. <view class="col">
  20. <view class="title">
  21. <text>{{ item.title }}</text>
  22. </view>
  23. <view class="sub-box">
  24. <view class="sub-title">
  25. <text>{{ item.subTitle }}</text>
  26. </view>
  27. <view class="sub-title">
  28. <text>{{ item.date }}</text>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <view class="btn-group">
  35. <tm-button />
  36. </view>
  37. </view>
  38. </view>
  39. </scroll-view>
  40. </view>
  41. </template>
  42. <script>
  43. // 改善任务
  44. import listItem from '../mission/components/mission-list/list-item.vue';
  45. export default {
  46. data() {
  47. return {
  48. list: [
  49. {title: '查核人:王晓雪', subTitle: '发送改善通知,查核结果:主要缺失', date: '2020-11-22 15:30:22'},
  50. {title: '单位负责人', subTitle: '发送改善通知,查核结果:主要缺失', date: '2020-11-22 15:30:22'}
  51. ]
  52. }
  53. },
  54. methods: {
  55. },
  56. components: {
  57. listItem,
  58. }
  59. }
  60. </script>
  61. <style lang="less">
  62. .mission-details-page {
  63. height: 100%;
  64. padding-top: 15rpx;
  65. background-color: #F5F6FA;
  66. .scroll-y {
  67. height: 100%;
  68. .mission-plan {
  69. .label {
  70. margin-top: 25rpx;
  71. margin-bottom: 15rpx;
  72. height: 20rpx;
  73. line-height: 20rpx;
  74. padding-left: 25rpx;
  75. text {
  76. font-size: 20rpx;
  77. color: #666F80;
  78. }
  79. }
  80. .plan-box {
  81. padding: 25rpx;
  82. background-color: #fff;
  83. .row {
  84. display: flex;
  85. .col {
  86. .title {
  87. display: flex;
  88. align-items: center;
  89. margin-bottom: 15rpx;
  90. height: 25rpx;
  91. >text {
  92. font-size: 22.5rpx;
  93. color: #292C33;
  94. }
  95. }
  96. .sub-box {
  97. display: flex;
  98. flex-direction: column;
  99. .sub-title {
  100. display: flex;
  101. align-items: center;
  102. margin-bottom: 15rpx;
  103. height: 20rpx;
  104. &:last-child {
  105. margin-bottom: 34.37rpx;
  106. }
  107. >text {
  108. font-size: 20rpx;
  109. color: #666E80;
  110. }
  111. }
  112. }
  113. &:first-child {
  114. display: flex;
  115. flex-direction: column;
  116. align-items: center;
  117. margin-right: 15rpx;
  118. width: 25rpx;
  119. .plan-icon {
  120. margin-bottom: 17.5rpx;
  121. width: 25rpx;
  122. height: 25rpx;
  123. }
  124. .line {
  125. width: 5rpx;
  126. height: 75rpx;
  127. background-color: #E6EAF2;
  128. }
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. </style>