index.axml 6.9 KB

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