Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

212 rindas
5.4 KiB

  1. <template>
  2. <view>
  3. <view class="boxtittab">
  4. <view class="tabbox">
  5. <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">今日</view>
  6. </view>
  7. <view class="tabbox">
  8. <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">昨日</view>
  9. </view>
  10. <view class="tabbox">
  11. <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">近一周</view>
  12. </view>
  13. <view class="tabbox">
  14. <view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view>
  15. </view>
  16. </view>
  17. <view class="timepick">
  18. <view class="timepicktime">
  19. <view>毛丫丫</view>
  20. <view>
  21. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  22. </view>
  23. </view>
  24. <view class="timepickpick">
  25. <view @click="checkboxChange()" style="width: 40rpx;height:40rpx;border: 1rpx solid #E0E0E0;">
  26. <image v-if="timepickpickisshow" style="width: 40rpx;height: 40rpx;" src="../../../static/images/xuanzhong.png" mode=""></image>
  27. </view>
  28. <view style="font-size:26rpx;text-indent: 12rpx;">对比</view>
  29. </view>
  30. <view class="timepicktime" v-if="timepickpickisshow">
  31. <view>毛丫丫2</view>
  32. <view>
  33. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  34. </view>
  35. </view>
  36. </view>
  37. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  38. <view class="single">
  39. <view class="title">
  40. <view class="title1" style="flex: 1;">接待量</view>
  41. </view>
  42. <view class="hejibox">
  43. <view class="heji">合计:50</view>
  44. <view class="heji">均值:25</view>
  45. </view>
  46. <view class="danwei">来访(人)</view>
  47. <view class="uchaserbox">
  48. <qiun-data-charts
  49. type="line"
  50. :chartData="lineOptsect"
  51. background="none"
  52. :ontouch="true"
  53. canvasId="wangxiaohuaerlingeryilingwuyibbb"
  54. :canvas2d="true"
  55. />
  56. </view>
  57. </view>
  58. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  59. <view class="single">
  60. <view class="title">
  61. <view class="title1" style="flex: 1;">接待客户</view>
  62. <view class="title3" style="flex: 1;">
  63. <view class="title3-box" style="width: 40%;">
  64. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">有效录音</view>
  65. </view>
  66. <view class="title3-box" style="width: 40%;">
  67. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 1 }">录音时长</view>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="hejibox">
  72. <view class="heji">合计:50</view>
  73. <view class="heji">均值:25</view>
  74. </view>
  75. <view class="danwei">来访(人)</view>
  76. <view class="uchaserbox">
  77. <qiun-data-charts
  78. type="line"
  79. :chartData="lineOptsect"
  80. background="none"
  81. :ontouch="true"
  82. canvasId="wangxiaohuaerlingeryilingwuyibhh"
  83. :canvas2d="true"
  84. />
  85. </view>
  86. </view>
  87. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  88. <view class="single">
  89. <view class="title" style="padding-right: 30rpx;">
  90. <view class="title1" style="flex: 1;">销讲能力</view>
  91. </view>
  92. <view class="uchaserbox">
  93. <qiun-data-charts
  94. type="radar"
  95. :chartData="chartData"
  96. :canvas2d="true"
  97. canvasId="wangxiaohuaerlingeryilingwuycsdx"
  98. background="none"
  99. />
  100. </view>
  101. </view>
  102. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  103. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  104. </view>
  105. </template>
  106. <script>
  107. export default {
  108. data() {
  109. return {
  110. timepickpickisshow:false,
  111. totalTimeShow: false,
  112. activeTotal:0,
  113. activeTotal2:0,
  114. lineOptsect:{
  115. "categories": ["2016","2017","2018","2019","2020","2021"],
  116. "series": [
  117. {
  118. "name": "成交量1",
  119. "data": [35,8,25,37,4,20]
  120. },
  121. {
  122. "name": "成交量2",
  123. "data": [40,18,45,44,10,60]
  124. }
  125. ]
  126. },
  127. chartData:{
  128. "categories": ["维度1","维度2","维度3","维度4","维度5","维度6"],
  129. "series": [
  130. {
  131. "name": "成交量",
  132. "data": [90,110,165,195,187,172]
  133. }
  134. ]
  135. }
  136. };
  137. },
  138. onLoad: function(options) { },
  139. methods: {
  140. //是否对比
  141. checkboxChange(){
  142. this.timepickpickisshow=!this.timepickpickisshow;
  143. },
  144. tabtimetap(index){
  145. // console.log(idx)
  146. // this.activeTotal=idx
  147. if (index == 3) {
  148. this.totalTimeShow = true;
  149. } else {
  150. this.activeTotal = index;
  151. }
  152. },
  153. //自定义时间
  154. totalTimeChange(e) {
  155. console.log(e.startDate, e.endDate)
  156. this.activeTotal=3;
  157. },
  158. },
  159. }
  160. </script>
  161. <style lang="scss" scoped>
  162. // 对比时间切换
  163. .timepick{
  164. width: 100%;
  165. height: 90rpx;
  166. display: flex;
  167. align-items: center;
  168. background: #FAFAFA;
  169. }
  170. .timepicktime{
  171. width: 260rpx;
  172. height: 50rpx;
  173. border: 1rpx solid #E0E0E0;
  174. margin-left: 30rpx;
  175. display: flex;
  176. background: #FFFFFF;
  177. }
  178. .timepicktime>view:nth-of-type(1){
  179. width: 210rpx;
  180. height: 100%;
  181. line-height: 50rpx;
  182. font-size: 26rpx;
  183. font-weight: 400;
  184. text-align: center;
  185. }
  186. .timepicktime>view:nth-of-type(2){
  187. width: 50rpx;
  188. height: 100%;
  189. border-left: 1px solid #E0E0E0;
  190. }
  191. .timepickpick{
  192. width: 110rpx;
  193. height: 50rpx;
  194. margin-left: 30rpx;
  195. display: flex;
  196. align-items: center;
  197. }
  198. .Underimg{
  199. width: 50rpx;
  200. height:50rpx;
  201. margin-top: -2rpx;
  202. }
  203. </style>