index.axml 5.8 KB

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