planDetailList.vue 2.5 KB

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