index.wxml 3.5 KB

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