index.axml 6.5 KB

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