mission-details.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <view class="btn-group" v-if="i === list.length-1">
  34. <tm-button type="pramary" btnText="重新发送" />
  35. <tm-button btnText="指派改善任务" @btnClick="clickRightBtn" />
  36. </view>
  37. </template>
  38. </view>
  39. </view>
  40. </scroll-view>
  41. </view>
  42. </template>
  43. <script>
  44. // 改善任务
  45. import listItem from '../mission/components/mission-list/list-item.vue';
  46. export default {
  47. data() {
  48. return {
  49. list: [
  50. {title: '查核人:王晓雪', subTitle: '发送改善通知,查核结果:主要缺失', date: '2020-11-22 15:30:22'},
  51. {title: '单位负责人', subTitle: '发送改善通知,查核结果:主要缺失', date: '2020-11-22 15:30:22'}
  52. ]
  53. }
  54. },
  55. methods: {
  56. // 点击右侧按钮
  57. clickRightBtn() {
  58. uni.navigateTo({
  59. url: '/pages/mission-action/mission-action'
  60. })
  61. }
  62. },
  63. components: {
  64. listItem,
  65. }
  66. }
  67. </script>
  68. <style lang="less">
  69. .mission-details-page {
  70. height: 100%;
  71. padding-top: 15rpx;
  72. .scroll-y {
  73. height: 100%;
  74. .mission-plan {
  75. .label {
  76. margin-top: 25rpx;
  77. margin-bottom: 15rpx;
  78. height: 20rpx;
  79. line-height: 20rpx;
  80. padding-left: 25rpx;
  81. text {
  82. font-size: 20rpx;
  83. color: #666F80;
  84. }
  85. }
  86. .plan-box {
  87. padding: 25rpx;
  88. background-color: #fff;
  89. .row {
  90. display: flex;
  91. .col {
  92. .title {
  93. display: flex;
  94. align-items: center;
  95. margin-bottom: 15rpx;
  96. height: 25rpx;
  97. >text {
  98. font-size: 22.5rpx;
  99. color: #292C33;
  100. }
  101. }
  102. .sub-box {
  103. display: flex;
  104. flex-direction: column;
  105. .sub-title {
  106. display: flex;
  107. align-items: center;
  108. margin-bottom: 15rpx;
  109. height: 20rpx;
  110. &:last-child {
  111. margin-bottom: 34.37rpx;
  112. }
  113. >text {
  114. font-size: 20rpx;
  115. color: #666E80;
  116. }
  117. }
  118. }
  119. &:first-child {
  120. display: flex;
  121. flex-direction: column;
  122. align-items: center;
  123. margin-right: 15rpx;
  124. width: 25rpx;
  125. .plan-icon {
  126. margin-bottom: 17.5rpx;
  127. width: 25rpx;
  128. height: 25rpx;
  129. }
  130. .line {
  131. width: 5rpx;
  132. height: 75rpx;
  133. background-color: #E6EAF2;
  134. }
  135. }
  136. }
  137. }
  138. .btn-group {
  139. display: flex;
  140. justify-content: space-between;
  141. padding: 0 25rpx;
  142. }
  143. }
  144. }
  145. }
  146. }
  147. </style>