index.wxml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <van-tabs active="{{ active }}" color='#3874F6' tab-class='tab-class' tab-active-class='tab-active-class' bind:change="tabsChange">
  2. <van-tab title="业绩目标" />
  3. <van-tab title="业绩项目目标" />
  4. </van-tabs>
  5. <!-- 过滤 -->
  6. <view class="filtrate">
  7. <view bindtap="openPupop">{{showText}}<text class="iconfont icon-daoruxialajiantou" /></view>
  8. <view catchtap="openActions">
  9. {{actionSheet}}<text class="iconfont icon-daoruxialajiantou" />
  10. </view>
  11. <picker mode="date" value="{{content.year}}" fields='year' bindchange="bindDateChange">
  12. <view class="picker"><text class="iconfont icon-niandu" style="margin-right: 10rpx; color: #999;" />{{content.year}}<text class="iconfont icon-daoruxialajiantou" /></view>
  13. </picker>
  14. </view>
  15. <van-action-sheet show="{{ showActions }}" actions="{{ actions }}" bind:select='select' bind:cancel='cancelActions' cancel-text="取消" />
  16. <van-popup show="{{ popupShow }}" position="bottom" custom-style="height:100%;" round closeable bind:close="onClose">
  17. <view class="header">选择分析对象</view>
  18. <view style="height: 90rpx;" />
  19. <van-tree-select items="{{ hrList }}" content-item-class='content-item-class' content-active-class='content-active-class' height='calc(100% - 170rpx)' main-active-index="{{ mainActiveIndex }}" active-id="{{ activeId }}" bind:click-nav="onClickNav" bind:click-item="onClickItem" />
  20. <view class="footer" style="height: 170rpx;">
  21. <van-button custom-class='but' catchtap="getData">确定</van-button>
  22. </view>
  23. </van-popup>
  24. <view class="box">
  25. <view class="label">
  26. <text class="iconfont icon-a-shouyeshujugaikuangzhanshishuju" />
  27. <text>目标完成情况(金额:万元)</text>
  28. </view>
  29. <view class="content">
  30. <view class="col1">
  31. <view style="margin-top: 62rpx;">年度:</view>
  32. <block wx:if="{{content.year==year}}">
  33. <view>本季:</view>
  34. <view>本月:</view>
  35. </block>
  36. </view>
  37. <view class="col2">
  38. <view class="title">
  39. <view>基本目标</view>
  40. <view>挑战目标</view>
  41. <view>实际完成</view>
  42. </view>
  43. <view class="row">
  44. <view>{{targetYear.yl}}</view>
  45. <view>{{targetYear.yh}}</view>
  46. <view><text>{{targetYear.ya}}</text></view>
  47. </view>
  48. <block wx:if="{{content.year==year}}">
  49. <view class="row">
  50. <view>{{targetSeason.sl}}</view>
  51. <view>{{targetSeason.sh}}</view>
  52. <view><text>{{targetSeason.sa}}</text></view>
  53. </view>
  54. <view class="row">
  55. <view>{{targetMonth.ml}}</view>
  56. <view>{{targetMonth.mh}}</view>
  57. <view><text>{{targetMonth.ma}}</text></view>
  58. </view>
  59. </block>
  60. </view>
  61. </view>
  62. <view style="height:20rpx" />
  63. </view>
  64. <!-- 目标完成情况 -->
  65. <view class="box">
  66. <view class="label">
  67. <text class="iconfont icon-a-shouyeshujugaikuangzhanshishuju" />
  68. <text>目标完成情况(金额:万元)</text>
  69. </view>
  70. <brokenLine id='line' />
  71. </view>
  72. <!-- 目标完成率 -->
  73. <view class="box">
  74. <view class="label">
  75. <text class="iconfont icon-a-shouyeshujugaikuangzhanshishuju" />
  76. <text>目标完成率(实际相对目标的完成率)</text>
  77. </view>
  78. <histogram id='histogram' />
  79. </view>
  80. <view style="height: 130rpx;" />
  81. <view class="footer">
  82. <van-button custom-class='but' bindtap="toDetail">{{active=='业绩目标'?'我的业绩目标':'我的项目目标'}}</van-button>
  83. </view>