index.axml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <view>
  2. <view class="head flex-box flex-center-center">
  3. <view class="flex-1" data-index="1" onTap="openView">
  4. <view>{{userData.b.month_point}}</view>
  5. <view>本月B分</view>
  6. </view>
  7. <view class="flex-1" data-index="2" onTap="openView">
  8. <view>{{userData.a.month_point}}</view>
  9. <view>本月A分</view>
  10. </view>
  11. </view>
  12. <view class="headed margin-bottom">
  13. <view class="top"></view>
  14. <view class="headed-box">
  15. <view a:if="{{isAdministrator}}" class="flex-box headed-box-item">
  16. <view class="flex-box flex-center-center flex-1 left" data-index="3" onTap="openView">
  17. <image mode="scaleToFill" src="../../../image/jkbf.png"></image>
  18. <text>奖扣B分</text>
  19. </view>
  20. <view class="flex-box flex-center-center flex-1" data-index="4" onTap="openView">
  21. <image mode="scaleToFill" src="../../../image/jkaf.png"></image>
  22. <text>奖扣A分</text>
  23. </view>
  24. </view>
  25. <view class="flex-box headed-box-item">
  26. <view class="flex-box flex-center-center flex-1 left" data-index="5" onTap="openView">
  27. <image mode="scaleToFill" src="../../../image/sqjf.png"></image>
  28. <text>申请积分</text>
  29. </view>
  30. <view class="flex-box flex-center-center flex-1" data-index="6" onTap="openView">
  31. <image mode="scaleToFill" src="../../../image/sp.png"></image>
  32. <text>
  33. 审批
  34. <text class="red">({{total}})</text>
  35. </text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="main margin-bottom">
  41. <view class="main-title flex-box flex-v-ce" onTap="openView" data-index="10">
  42. <text class="flex-1" style="font-size:32rpx">排行榜</text>
  43. <text class="fontColorF" style="font-size:28rpx">每小时更新一下</text>
  44. </view>
  45. <view class="flex-box flex-v-ce" style="padding:0.28rem; border-bottom: 1px solid #f1f1f1; " a:for="{{rankingList}}" data-item="{{item}}" onTap="openViewRanking">
  46. <view class="flex-box flex-v-ce flex-1">
  47. <view class="ranking_name font-flex-word"> {{ item.group_name.slice(0,2)}}</view>
  48. <view class="ranking_num flex-1">
  49. <view>{{ item.group_name }}</view>
  50. <text class="fontColorF" a:if="{{getRole_four}}">第 {{ item.rank }} 名:{{item.employee_name}}</text>
  51. <text class="fontColorF" a:else>第 {{ item.rank }} 名</text>
  52. </view>
  53. <image mode="scaleToFill" src="../../../image/right.png" class="img-right"></image>
  54. </view>
  55. </view>
  56. <view a:if="{{rankingTotal > 5}}" class="rankingLists" onTap="openView" data-index="10">
  57. <text>查看所有排行榜</text>
  58. <image mode="scaleToFill" src="../../../image/right.png" class="img-right"></image>
  59. </view>
  60. </view>
  61. <!-- 奖扣展示 -->
  62. <view a:if="{{userData.task&&isAdministrator}}" class="main margin-bottom">
  63. <view class="main-title flex-box flex-v-ce">
  64. <text style="font-size:32rpx">本月B分奖扣</text>
  65. <text class="text2" catchTap="showText">?</text>
  66. </view>
  67. <view class="main-main flex-box flex-center-center" data-index="7" catchTap="openView">
  68. <view class="flex-1">
  69. <view>{{userData.task.reward.point}}</view>
  70. <view class="fontColorF" style="font-size:28rpx">奖分</view>
  71. <view class="font-flex-word numPoint">目标{{userData.task.reward.target_point}}</view>
  72. </view>
  73. <view class="flex-1">
  74. <view>{{userData.task.deduction.point}}</view>
  75. <view class="fontColorF" style="font-size:28rpx">扣分</view>
  76. <view class="font-flex-word numPoint">目标{{userData.task.deduction.target_point}}</view>
  77. </view>
  78. <view class="flex-1">
  79. <view>{{userData.ratio.ratio}}</view>
  80. <view class="fontColorF" style="font-size:28rpx">奖扣比例</view>
  81. <view class="font-flex-word numPoint">目标{{userData.ratio.target_ratio}}</view>
  82. </view>
  83. <view class="flex-1">
  84. <view>{{userData.task.exec.count}}</view>
  85. <view class="fontColorF" style="font-size:28rpx">奖扣人次</view>
  86. <view class="font-flex-word numPoint">目标{{userData.task.exec.target_count}}</view>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 管理者奖扣 -->
  91. <view class="bottom margin-bottom" a:if="{{isAdministrator}}">
  92. <view class="flex-box flex-v-ce bottom-title">
  93. <view class="flex-1">管理者奖扣</view>
  94. <view class="chart-legend__wrap">
  95. <text class="chart-legend__pink">奖分</text>
  96. <text class="chart-legend__green">扣分</text>
  97. </view>
  98. </view>
  99. <view class="f2-chart" a:if="{{pieTotal>0}}">
  100. <f2 onInit="onInitChart3"></f2>
  101. </view>
  102. <no-data a:if="{{pieTotal==0}}" content="无数据"></no-data>
  103. </view>
  104. <view class="bottom margin-bottom">
  105. <view class="bottom-title">近30天B分趋势</view>
  106. <view class="f2-chart">
  107. <f2 onInit="onInitChart"></f2>
  108. </view>
  109. </view>
  110. <!-- <view class="bottom margin-bottom">
  111. <view class="bottom-title">本月B分积分构成</view>
  112. <view a:if="{{pieData.length>0}}" class="f2-chart">
  113. <f2 onInit="onInitChart2"></f2>
  114. </view>
  115. <no-data a:if="{{pieData.length==0}}" content="无数据"></no-data>
  116. </view> -->
  117. <view class="bottom">
  118. <view class="bottom-title">积分事件</view>
  119. <view a:for="{{incidentLsit}}" class="flex-box bottom-time" data-item="{{item}}" data-index="8" onTap="openView">
  120. <img-box name="{{item.employee_name}}" imgUrl="{{item.employee_img_url}}"></img-box>
  121. <view class="flex-1 bottom-right">
  122. <view class="flex-box">
  123. <text class="flex-1 name">{{item.employee_name}}</text>
  124. <text a:if="{{item.point>0}}" class="num">+{{item.point}} {{item.ptObj.name}}</text>
  125. <text a:else class="num green">{{item.point}} {{item.ptObj.name}}</text>
  126. </view>
  127. <view class="text">{{item.remark}}</view>
  128. <view class="date">{{item.event_time}}</view>
  129. </view>
  130. </view>
  131. <no-data a:if="{{incidentLsit.length==0}}"></no-data>
  132. </view>
  133. <view a:if="{{incidentLsitTotal>5}}" data-index="9" onTap="openView" class="more">查看更多</view>
  134. <view a:if="{{isBh}}" class="windows" content="还没有积分事件">
  135. <view class="windows-box">
  136. <view class="windows-title">温馨提示</view>
  137. <view class="windows-content">作为管理者,管理执行力是关键,每月按要求完成奖分和扣分任务</view>
  138. <view class="windows-btn flex-box flex-v-ce">
  139. <view class="flex-1" catchTap="showText">我知道了</view>
  140. </view>
  141. </view>
  142. </view>
  143. </view>