todayCheck.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <view class="todayCheckPage">
  3. <view class="content" v-for="item in list">
  4. <view class="contTitle">
  5. <text class="contTitleLeft">{{item.situationName}}</text>
  6. <text class="contTitleRight">{{item.checkPlan}}</text>
  7. </view>
  8. <view class="contCon">
  9. <view v-for="items in item.planDepListReps" class="conEveryCon" @click="goToPonitDetails(items)">
  10. <view class="title">
  11. <view class="name">{{items.deptName}}</view>
  12. <view class="buMen">
  13. <image src="../../static/icon-map-dis.png" mode="" class="img"></image>
  14. <view class="keshi">{{items.deptClassName}}</view>
  15. </view>
  16. </view>
  17. <view class="status" >
  18. <image :src="items.completeDes == '完成'?'../../static/top-img.png':items.completeDes == '查核中'?'../../static/hight-bg.png':'../../static/disabled-bg.png'" mode="" class="bgImg"></image>
  19. <text class="statusType">{{items.completeDes}}</text>
  20. </view>
  21. <view class="points">{{items.decs}}</view>
  22. <view class="pointsGK">要点概括:{{items.checkPointNames}}</view>
  23. <view>
  24. <view class="checkName">{{items.empName}}</view>
  25. <view class="checkTime">{{items.startDate}}~{{items.endDate}}</view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. list:[],
  37. date:'',
  38. }
  39. },
  40. mounted() {
  41. this.getList();
  42. },
  43. methods:{
  44. getList(){
  45. this.$store.dispatch({
  46. type: "todayCheck/commActions",
  47. payload: {
  48. key: "specificCheckTaskList",
  49. data: {
  50. specificDate:this.date
  51. },
  52. },
  53. }).then((res)=>{
  54. if(res){
  55. this.list =res;
  56. }
  57. })
  58. },
  59. goToPonitDetails(data){
  60. // console.log(data)
  61. // uni.navigateTo({
  62. // url: `/pages/messages/messages?id=${data.checkId}`,
  63. // });
  64. }
  65. },
  66. onLoad({ date }){
  67. this.date = date;
  68. },
  69. }
  70. </script>
  71. <style lang="less">
  72. .todayCheckPage{
  73. padding:0rpx 25rpx;
  74. height: 100%;
  75. width: 100%;
  76. .content{
  77. width: 100%;
  78. .contTitle{
  79. font-size: 22.5rpx;
  80. color: #666F80;
  81. height: 22.5rpx;
  82. line-height: 22.5rpx;
  83. margin: 25rpx 0rpx 15rpx;
  84. .contTitleLeft{
  85. display: inline-block;
  86. width: 50%;
  87. text-align: left;
  88. }
  89. .contTitleRight{
  90. display: inline-block;
  91. width: 50%;
  92. text-align: right;
  93. }
  94. }
  95. .contCon{
  96. .conEveryCon{
  97. margin-bottom: 25rpx;
  98. padding:25rpx 25rpx 0rpx;
  99. background-color: #fff;
  100. height: 225rpx;
  101. border-radius: 5rpx;
  102. position: relative;
  103. .title{
  104. margin-bottom: 10rpx;
  105. color: #292C33;
  106. // vertical-align: top;
  107. .name{
  108. height: 35rpx;
  109. display: inline-block;
  110. font-size: 35rpx;
  111. font-weight: 400;
  112. }
  113. .buMen{
  114. margin-left: 20rpx;
  115. display: inline-block;
  116. // width: 117.5rpx;
  117. height: 35rpx;
  118. background-color: #EDF2FA;
  119. border-radius: 17.5rpx;
  120. line-height: 82.5rpx;
  121. vertical-align: top;
  122. .img{
  123. vertical-align: top;
  124. width: 35rpx;
  125. height: 35rpx;
  126. }
  127. .keshi{
  128. margin-left: 10rpx;
  129. margin-right: 20rpx;
  130. display: inline-block;
  131. vertical-align: top;
  132. font-size: 17.5rpx;
  133. line-height: 35rpx;
  134. }
  135. }
  136. }
  137. .status{
  138. width: 100rpx;
  139. height: 35rpx;
  140. position: absolute;
  141. top: 0rpx;
  142. right: 0rpx;
  143. .bgImg{
  144. width: 100rpx;
  145. height: 35rpx;
  146. }
  147. .statusType{
  148. position: absolute;
  149. top:8.75rpx;
  150. right:18.75rpx;
  151. font-size: 17.5rpx;
  152. line-height: 17.5rpx;
  153. color: #fff;
  154. }
  155. }
  156. .points{
  157. font-size: 20rpx;
  158. color: #292C33;
  159. line-height: 50rpx;
  160. font-weight: bold;
  161. }
  162. .pointsGK{
  163. padding-bottom: 25rpx;
  164. border-bottom: 0.62rpx solid #DADEE6;
  165. font-size: 20rpx;
  166. color: #666F80;
  167. }
  168. .checkName{
  169. width: 50%;
  170. display: inline-block;
  171. color: #666E80;
  172. text-align: left;
  173. line-height: 57.5rpx;
  174. font-size: 17.5rpx;
  175. }
  176. .checkTime{
  177. width: 50%;
  178. display: inline-block;
  179. color: #666E80;
  180. text-align: right;
  181. line-height: 57.5rpx;
  182. font-size: 17.5rpx;
  183. }
  184. }
  185. }
  186. }
  187. }
  188. </style>