index.axml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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" a:if="{{!getRole_four}}">
  10. <view>{{headDayBs.b}}</view>
  11. <view>今日B分</view>
  12. </view>
  13. <view class="flex-1" data-index="1" onTap="openView">
  14. <view>{{headDayBs.b_month}}</view>
  15. <view>本月B分</view>
  16. </view>
  17. <view class="flex-1" data-index="2" onTap="openView">
  18. <view>{{headDayBs.a_month}}</view>
  19. <view>本月A分</view>
  20. </view>
  21. </view>
  22. <view class="headed margin-bottom">
  23. <view class="top"></view>
  24. <view class="menuList flex-box flex-d-wrap">
  25. <view a:for="{{menuList}}" class="menu-item" data-url="{{item.url}}" onTap="openUrl">
  26. <image mode="scaleToFill" src="{{item.imgUrl}}"></image>
  27. <view>{{item.name}}</view>
  28. <text a:if="{{item.name=='审批'&&total}}" class="menuNum font-flex-word">{{total}}</text>
  29. <text a:if="{{item.name=='任务'&&workTotal}}" class="menuNum font-flex-word">{{workTotal}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 使用指南 -->
  34. <view class="zn margin-bottom" a:if="{{isShowYy&&isShowAn}}">
  35. <view class="zn-title flex-box-ce">
  36. <text class="flex-1">快速使用指南</text>
  37. <view catchTap="closeAn">
  38. <image mode="scaleToFill" style="width:34rpx;height:34rpx;position: relative;top: 8rpx;" src="../../../image/close.png" class="img-right"></image>
  39. </view>
  40. </view>
  41. <view class="flex-box-ce" style="padding:24rpx 0;overflow-x: scroll;margin:0 24rpx;">
  42. <view class="zn-item" a:for="{{announcementList}}" data-index="{{index}}" a:for-index="index" onTap="openaN">
  43. <text class="clamp2">{{item.title}}</text>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="flex-box-ce margin-bottom" style="background:#fff;padding:24rpx 32rpx" a:if="{{noticeTitle}}" onTap="openUrl2">
  48. <image mode="scaleToFill" src="../../../image/lb.png" style="width:30rpx;height:30rpx;position:relative;top:-2px"></image>
  49. <view style="padding:0 20rpx;" class="flex-1 font-flex-word">{{noticeTitle}}</view>
  50. <image mode="scaleToFill" src="../../../image/right.png" class="img-right"></image>
  51. </view>
  52. <view class="main margin-bottom">
  53. <view class="main-title flex-box flex-v-ce">
  54. <text class="flex-1" style="font-size:32rpx">排行榜</text>
  55. <text class="fontColorB" style="font-size:28rpx" onTap="openView" data-index="10">更多排名 <image mode="scaleToFill" src="../../../image/right.png" class="img-right"></image></text>
  56. </view>
  57. <view class="flex-box-ce" style="padding:24rpx 0;overflow-x: scroll;margin:0 24rpx; border-bottom: 1px solid #f1f1f1;">
  58. <view class="zn-item2 {{item.group_name==selectPlItem.group_name? 'active-pl':''}}" a:for="{{rankingList}}" data-item="{{item}}" onTap="tabPositions">
  59. <text class="font-flex-word" >{{item.group_name}}</text>
  60. </view>
  61. </view>
  62. <view a:if="{{index<4}}" a:for="{{rankingListDetails}}" onTap="openViewRanking" style="padding:0.24rem 0.28rem; border-bottom: 1px solid #f1f1f1;position:relative" class="flex-box-ce {{index==0? 'border-bottom':''}}">
  63. <view class="flex-1 flex-box flex-v-ce">
  64. <img-box name="{{item.employee_name}}" a:if="{{item.employee_id}}" imgUrl="{{item.employee_img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  65. <view class="name">{{item.employee_name}}</view>
  66. </view>
  67. <view a:if="{{item.rank==1}}" class="index"><image mode="scaleToFill" src="../../../image/paiming-1.png"></image></view>
  68. <view a:elif="{{item.rank==2}}" class="index"><image mode="scaleToFill" src="../../../image/paiming-2.png"></image></view>
  69. <view a:elif="{{item.rank==3}}" class="index"><image mode="scaleToFill" src="../../../image/paiming-3.png"></image></view>
  70. <view a:else class="index" >
  71. <text style="font-weight:400;font-size:0.24rem" a:if="{{item.rank!='--'}}">NO.</text> {{item.rank}}
  72. </view>
  73. <view a:if="{{index==0}}" style="font-size:24rpx;position:absolute;bottom:0.1rem;right:0.5rem;" class="fontColorD">我的排名</view>
  74. </view>
  75. <view class="rankingLists" onTap="openViewRanking">
  76. <text>查看排名详情</text>
  77. <image mode="scaleToFill" src="../../../image/right.png" class="img-right2" ></image>
  78. </view>
  79. <!-- <view a:for="{{rankingList}}" class="flex-box flex-v-ce" style="padding:0.28rem; border-bottom: 1px solid #f1f1f1; "
  80. data-item="{{item}}" onTap="openViewRanking">
  81. <view class="flex-box flex-v-ce flex-1">
  82. <view class="ranking_name font-flex-word">{{ item.group_name.slice(0,2)}}</view>
  83. <view class="ranking_num flex-1">
  84. <view>{{ item.group_name }}</view>
  85. <block a:if="{{item.rank}}">
  86. <text a:if="{{getRole_four}}" class="fontColorB">第 {{ item.rank }} 名:{{item.employee_name}}</text>
  87. <text a:else class="fontColorB">第 {{ item.rank }} 名</text>
  88. </block>
  89. <text a:else class="fontColorB">不参与排名</text>
  90. </view>
  91. <image mode="scaleToFill" src="../../../image/right.png" class="img-right"></image>
  92. </view>
  93. </view> -->
  94. <!-- <view class="rankingLists" onTap="openView" data-index="10">
  95. <text>查看所有排行榜</text>
  96. <image mode="scaleToFill" src="../../../image/right.png" class="img-right2"></image>
  97. </view> -->
  98. </view>
  99. <!-- 奖扣展示 -->
  100. <view a:if="{{userData.task&&isAdministrator}}" class="main margin-bottom">
  101. <view class="main-title flex-box flex-v-ce">
  102. <text style="font-size:32rpx">本月B分奖扣</text>
  103. <text class="text2" catchTap="showText">?</text>
  104. </view>
  105. <view class="main-main flex-box flex-center-center" data-index="7" catchTap="openView">
  106. <view class="flex-1">
  107. <view>{{userData.task.reward.point}}</view>
  108. <view class="fontColorB" style="font-size:28rpx">奖分</view>
  109. <view class="font-flex-word numPoint">目标{{userData.task.reward.target}}</view>
  110. </view>
  111. <view class="flex-1">
  112. <view>{{userData.task.deduction.point}}</view>
  113. <view class="fontColorB" style="font-size:28rpx">扣分</view>
  114. <view class="font-flex-word numPoint">目标{{userData.task.deduction.target}}</view>
  115. </view>
  116. <view class="flex-1">
  117. <view>{{userData.ratio.ratio}}</view>
  118. <view class="fontColorB" style="font-size:28rpx">奖扣比例</view>
  119. <view class="font-flex-word numPoint">目标{{userData.ratio.target_ratio}}</view>
  120. </view>
  121. <view class="flex-1">
  122. <view>{{userData.task.exec.count}}</view>
  123. <view class="fontColorB" style="font-size:28rpx">奖扣人次</view>
  124. <view class="font-flex-word numPoint">目标{{userData.task.exec.target}}</view>
  125. </view>
  126. </view>
  127. <view a:if="{{pieTotal>0}}" class="rankingLists" onTap="openView" style="border-top:1px solid #f1f1f1" data-index="11">
  128. <text>查看所有管理者奖扣</text>
  129. <image mode="scaleToFill" src="../../../image/right.png" class="img-right2"></image>
  130. </view>
  131. </view>
  132. <!-- 管理者奖扣 -->
  133. <!-- <view a:if="{{isAdministrator}}" class="bottom margin-bottom">
  134. <view class="flex-box flex-v-ce bottom-title">
  135. <view class="flex-1">管理者奖扣</view>
  136. <view class="chart-legend__wrap">
  137. <text class="chart-legend__pink">奖分</text>
  138. <text class="chart-legend__green">扣分</text>
  139. </view>
  140. </view>
  141. <view a:if="{{pieTotal>0}}" class="f2-chart">
  142. <f2 onInit="onInitChart3"></f2>
  143. </view>
  144. <no-data a:if="{{pieTotal==0}}" content="无数据"></no-data>
  145. <view a:if="{{pieTotal>0}}" class="rankingLists" onTap="openView" style="border-top:1px solid #f1f1f1" data-index="11">
  146. <text>查看所有管理者奖扣</text>
  147. <image mode="scaleToFill" src="../../../image/right.png" class="img-right2"></image>
  148. </view>
  149. </view> -->
  150. <view class="bottom margin-bottom">
  151. <view class="bottom-title">近30天B分趋势</view>
  152. <view class="f2-chart">
  153. <f2 onInit="onInitChart"></f2>
  154. </view>
  155. </view>
  156. <view class="bottom">
  157. <view class="bottom-title">积分事件</view>
  158. <view a:for="{{incidentLsit}}" class="flex-box bottom-time" data-item="{{item}}" data-index="8" onTap="openView">
  159. <img-box name="{{item.employee_name}}" imgUrl="{{item.employee_img_url}}"></img-box>
  160. <view class="flex-1 bottom-right">
  161. <view class="flex-box">
  162. <text class="flex-1 name">{{item.employee_name}}</text>
  163. <text a:if="{{item.point>0}}" class="num">+{{item.point}} {{item.ptObj.name}}</text>
  164. <text a:else class="num green">{{item.point}} {{item.ptObj.name}}</text>
  165. </view>
  166. <view class="text">{{item.remark}}</view>
  167. <view class="date">{{item.event_time}}</view>
  168. </view>
  169. </view>
  170. <no-data a:if="{{incidentLsit.length==0}}"></no-data>
  171. </view>
  172. <view a:if="{{incidentLsitTotal>5}}" data-index="9" onTap="openView" class="more">查看更多</view>
  173. <view a:if="{{isBh}}" class="windows" content="还没有积分事件">
  174. <view class="windows-box">
  175. <view class="windows-title">温馨提示</view>
  176. <view class="windows-content">作为管理者,管理执行力是关键,每月按要求完成奖分和扣分任务</view>
  177. <view class="windows-btn flex-box flex-v-ce">
  178. <view class="flex-1" catchTap="showText">我知道了</view>
  179. </view>
  180. </view>
  181. </view>
  182. <view a:if="{{isUpdate}}" class="windows">
  183. <view class="windows-box">
  184. <view class="title font-flex-word">{{title}}</view>
  185. <view class="windows-content2">
  186. <!--<view class="title">{{title}}</view> -->
  187. <template is="aParse" data="{{aParseData:article.nodes}}"></template>
  188. </view>
  189. <view class="btns flex-box flex-v-ce">
  190. <view class="flex-1" catchTap="colseText">我知道了</view>
  191. <view class="flex-1" catchTap="openText">查看详情</view>
  192. </view>
  193. </view>
  194. </view>
  195. <view class="windows" a:if="{{isGz}}">
  196. <view class="windows-box">
  197. <image class="kfBj" mode="widthFix" src="../../../image/tc.jpg" />
  198. <view class="textNr">
  199. <view style="color:#fff;padding:0 0.5rem;line-height:50rpx;color:#222;margin-bottom:1rem">为了更好地体验,我们将自动为你导入【工作绩效】【企业文化】【规章制度】三大类积分制度</view>
  200. <view class="btnBox flex-box-end" style="margin-bottom:0.4rem">
  201. <button type="primary" catchTap="openWs2" class="btn2">自行设置</button>
  202. <button type="primary" catchTap="openWs">使用推荐制度</button>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. </view>