Taskdetails.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <view class="OutermostLayer">
  3. <view class="tasktime">
  4. 任务需在5月15号之前完成,当前剩余49天
  5. </view>
  6. <u-divider text="分割线" :dot="true"></u-divider>
  7. <view class="tasktop">
  8. <view class="tasktop1">
  9. <view class="taskdetals1">
  10. <u-icon name="man-add-fill" color="#2979ff" size="35"></u-icon>
  11. </view>
  12. <view class="taskdetals2">
  13. 发布人:李伟
  14. </view>
  15. </view>
  16. <view class="tasktop1">
  17. <view class="taskdetals1">
  18. <u-icon name="calendar-fill" color="#2979ff" size="35"></u-icon>
  19. </view>
  20. <view class="taskdetals2">
  21. 办结日期:2023-05-15
  22. </view>
  23. </view>
  24. <view class="tasktop1">
  25. <view class="taskdetals1">
  26. <u-icon name="bell-fill" color="#2979ff" size="35"></u-icon>
  27. </view>
  28. <view class="taskdetals2">
  29. 紧急程度:一般
  30. </view>
  31. </view>
  32. <view class="tasktop1">
  33. <view class="taskdetals1">
  34. <u-icon name="tags-fill" color="#2979ff" size="35"></u-icon>
  35. </view>
  36. <view class="taskdetals2">
  37. 任务类型:日常性工作
  38. </view>
  39. </view>
  40. </view>
  41. <view class="description">
  42. <view class="taskdetals1">
  43. <u-icon name="file-text-fill" color="#2979ff" size="35"></u-icon>
  44. </view>
  45. <view class="taskdetals2">
  46. 请在5月15号之前,把B栋所有楼层的灯光设备检查完毕,并详细记录每层楼道的灯光寿命情况,把损坏的灯泡上报维修部。
  47. </view>
  48. </view>
  49. <u-divider text="分割线" :dot="true"></u-divider>
  50. <u--textarea v-model="opinion" placeholder="请详细描述反馈" count></u--textarea>
  51. <view class="guidang">
  52. <view class="queding">
  53. <u-button type="primary" text="归档" @click="guidang"></u-button>
  54. </view>
  55. <view class="queding">
  56. <u-button type="primary" :plain="true" text="转办" @click="zhuanban"></u-button>
  57. </view>
  58. </view>
  59. <u-picker :show="show" title='转办人' @cancel='closezb' @confirm="confirm" :columns="columns" keyName="label">
  60. </u-picker>
  61. </view>
  62. </template>
  63. <script>
  64. export default {
  65. data() {
  66. return {
  67. opinion: '',
  68. show: false,
  69. columns: [
  70. [{
  71. label: '李伟',
  72. id: 2021
  73. }, {
  74. label: '杨刚',
  75. id: 804
  76. }]
  77. ],
  78. }
  79. },
  80. onLoad() {},
  81. //监听页面初次渲染完成。注意如果渲染速度快,会在页面进入动画完成前触发
  82. onReady() {},
  83. methods: {
  84. zhuanban() {
  85. this.show = true;
  86. },
  87. closezb() {
  88. this.show = false;
  89. },
  90. confirm(e) {
  91. console.log('confirm', e)
  92. this.show = false;
  93. uni.navigateBack({
  94. delta: 1
  95. });
  96. },
  97. guidang() {
  98. uni.navigateBack({
  99. delta: 1,
  100. });
  101. },
  102. }
  103. }
  104. </script>
  105. <style>
  106. .guidang {
  107. display: flex;
  108. justify-content: space-between;
  109. align-items: center;
  110. margin-top: 40rpx;
  111. }
  112. .queding {
  113. width: 40%;
  114. }
  115. .tasktime {
  116. font-size: 20rpx;
  117. color: #407CF7;
  118. }
  119. .tasktop {
  120. display: flex;
  121. justify-content: space-between;
  122. align-items: center;
  123. flex-wrap: wrap;
  124. }
  125. .tasktop1 {
  126. width: 50%;
  127. height: 50rpx;
  128. display: flex;
  129. align-items: center;
  130. }
  131. .description {
  132. display: flex;
  133. align-items: center;
  134. width: 100%;
  135. margin-top: 10rpx;
  136. }
  137. .taskdetals1 {}
  138. .taskdetals2 {
  139. font-size: 25rpx;
  140. padding-left: 15rpx;
  141. }
  142. .description {
  143. font-size: 25rpx;
  144. }
  145. </style>