planDetailList.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!-- 自查督查小计划列表 -->
  2. <template>
  3. <view class="planDetailList">
  4. <view class="list" v-for="item in list" @click="toCheckItemList(item)">
  5. <text class="name">{{item.departmentName}}</text>
  6. <view class="row">
  7. <text class="left">得分</text>
  8. <text class="right">{{item.selfScore}}</text>
  9. </view>
  10. <view class="row">
  11. <text class="left">改善</text>
  12. <text class="right">{{item.improveStatus}}</text>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. list:[]
  22. };
  23. },
  24. onLoad({
  25. situationId,
  26. num,
  27. planType,
  28. entry,//点击进来的入口
  29. }) {
  30. this.situationId = situationId;
  31. this.num = num;
  32. this.entry = entry;
  33. this.planType = planType;
  34. this.getData(situationId,num,planType);
  35. },
  36. methods:{
  37. getData(situationId,num,planType){
  38. this.$store.dispatch({
  39. type: 'planDetailList/commActions',
  40. payload: {
  41. key: 'getPlanList',
  42. data: {
  43. situationId: situationId,
  44. num:num,
  45. planType:planType,
  46. entry:this.entry
  47. }
  48. }
  49. }).then((data)=>{
  50. this.list = data;
  51. })
  52. },
  53. toCheckItemList(item){
  54. uni.navigateTo({
  55. url: `/pages/checkMainPoints/checkMainPoints?situationType=${1}&functionId=${item.functionId}&isZichaDucha=${true}&departmentId=${item.departmentId}`
  56. });
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="less">
  62. .planDetailList {
  63. display: flex;
  64. flex-direction: row;
  65. flex-wrap: wrap;
  66. padding: 25rpx;
  67. .list {
  68. width: 337.5rpx;
  69. height: 175rpx;
  70. margin-right: 25rpx;
  71. background: #FFFFFF;
  72. box-shadow: 0px 3.75rpx 12.5rpx 0px rgba(0,13,51,0.1);
  73. border-radius: 5rpx;
  74. padding: 25rpx;
  75. margin-bottom: 25rpx;
  76. .name {
  77. display: inline-block;
  78. font-size: 30rpx;
  79. font-family: SourceHanSansCN-Light, SourceHanSansCN;
  80. font-weight: 300;
  81. color: #292C33;
  82. margin-bottom: 25rpx;
  83. }
  84. .row {
  85. display: flex;
  86. flex-direction: row;
  87. justify-content: space-between;
  88. align-items: center;
  89. margin-bottom: 20rpx;
  90. .left {
  91. font-size: 25rpx;
  92. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  93. font-weight: 400;
  94. color: #666F80;
  95. }
  96. .right {
  97. font-size: 25rpx;
  98. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  99. font-weight: 500;
  100. color: #292C33;
  101. }
  102. &:last-child {
  103. margin-bottom: 0;
  104. .right {
  105. color: #3377FF;
  106. }
  107. }
  108. }
  109. &:nth-child(2n){
  110. margin-right: 0;
  111. }
  112. }
  113. }
  114. </style>