Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

305 rader
8.6 KiB

  1. <template>
  2. <view class="box">
  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 style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  18. <view class="Piabodata-box">
  19. <view class="Piabodata" @click="toTrendAnalysis()">
  20. <view class="Piabodata-img">
  21. <image class="Piabodata-img1" src="../../../static/images/qushi.png" mode=""></image>
  22. </view>
  23. <view class="Piabodata-text">趋势分析</view>
  24. </view>
  25. <view class="Piabodata" @click="toStaffAnalysis()">
  26. <view class="Piabodata-img">
  27. <image class="Piabodata-img1" src="../../../static/images/yuangong.png" mode=""></image>
  28. </view>
  29. <view class="Piabodata-text">员工分析</view>
  30. </view>
  31. <view class="Piabodata" @click="toUserinsightinto()">
  32. <view class="Piabodata-img">
  33. <image class="Piabodata-img1" src="../../../static/images/yinghu.png" mode=""></image>
  34. </view>
  35. <view class="Piabodata-text">用户洞察</view>
  36. </view>
  37. <view class="Piabodata" @click="Theteamcompared()">
  38. <view class="Piabodata-img">
  39. <image class="Piabodata-img1" src="../../../static/images/tuandui.png" mode=""></image>
  40. </view>
  41. <view class="Piabodata-text">团队对比</view>
  42. </view>
  43. <view class="Piabodata" @click="Groupcontrast()">
  44. <view class="Piabodata-img">
  45. <image class="Piabodata-img1" src="../../../static/images/jituan.png" mode=""></image>
  46. </view>
  47. <view class="Piabodata-text">集团对比</view>
  48. </view>
  49. </view>
  50. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  51. <view class="boxzonglan">
  52. <view class="zonglantit">简报</view>
  53. <view class="zonglanbox">
  54. <view class="grid" v-for="(item,index) in numlist" :key="index">
  55. <view class="audonum">{{item.name}}</text></view>
  56. <view class="num">{{item.num}}</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  61. <view class="single">
  62. <view class="title">
  63. <view class="title1">接待趋势</view>
  64. </view>
  65. <view class="swiper-box">
  66. <u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="bocindex" @change="tapspagek2"
  67. inactive-color="#b1b1b1" active-color="#008ef2" :list="newlistoj" :is-scroll="true">
  68. </u-tabs-swiper>
  69. </view>
  70. <view class="hejibox">
  71. <view class="heji">合计:50</view>
  72. <view class="heji">均值:25</view>
  73. </view>
  74. <view class="danwei">来访(人)</view>
  75. <view class="uchaserbox">
  76. <qiun-data-charts
  77. type="line"
  78. :chartData="lineOptsect"
  79. background="none"
  80. :ontouch="true"
  81. canvasId="wangxiaohuaerlingeryilingwuyiba1"
  82. :canvas2d="true"
  83. />
  84. </view>
  85. </view>
  86. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  87. <view class="single">
  88. <view class="title">
  89. <view class="title1">团队接待趋势</view>
  90. <view class="title2">
  91. <view class="title2-che">毛丫丫
  92. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  93. </view>
  94. <view class="title2-che">执行率
  95. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="hejibox">
  100. <view class="heji">合计:50</view>
  101. <view class="heji">均值:25</view>
  102. </view>
  103. <view class="danwei">来访(人)</view>
  104. <view class="uchaserbox">
  105. <qiun-data-charts
  106. type="line"
  107. :chartData="lineOptsect"
  108. background="none"
  109. :ontouch="true"
  110. canvasId="wangxiaohuaerlingeryilingwuyibao"
  111. :canvas2d="true"
  112. />
  113. </view>
  114. </view>
  115. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  116. <view class="single">
  117. <view class="title">
  118. <view class="title1">销讲维度执行率</view>
  119. <view class="title3">
  120. <view class="title3-box">
  121. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">执行率</view>
  122. </view>
  123. <view class="title3-box">
  124. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 1 }">得分</view>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="hejibox">
  129. <view class="heji">合计:50</view>
  130. <view class="heji">均值:25</view>
  131. </view>
  132. <view class="jindu">
  133. <view class="jindu-box" v-for="(item,index) in newlisttabinfo" :key="index">
  134. <view class="jindu-boxche">
  135. <view class="jindu-name">{{item.name.substring(0, 4)}}</view>
  136. <view style="width: 440rpx;margin-left: 10rpx;">
  137. <u-line-progress height="24" :show-percent="false" active-color="#4FC78F" :percent="item.zxl"></u-line-progress>
  138. </view>
  139. <view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  145. <view class="single">
  146. <view class="title">
  147. <view class="title1">销讲指标执行率</view>
  148. </view>
  149. <view class="swiper-box">
  150. <u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="bocindex" @change="tapspagek2"
  151. inactive-color="#b1b1b1" active-color="#008ef2" :list="newlistoj" :is-scroll="true">
  152. </u-tabs-swiper>
  153. </view>
  154. <view class="hejibox">
  155. <view class="heji">合计:50</view>
  156. <view class="heji">均值:25</view>
  157. </view>
  158. <view class="jindu">
  159. <view class="jindu-box" v-for="(item,index) in newlisttabinfo" :key="index">
  160. <view class="jindu-boxche">
  161. <view class="jindu-name">{{item.name.substring(0, 4)}}</view>
  162. <view style="width: 440rpx;margin-left: 10rpx;">
  163. <u-line-progress height="24" :show-percent="false" active-color="#4FC78F" :percent="item.zxl"></u-line-progress>
  164. </view>
  165. <view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. </template>
  172. <script>
  173. var app = getApp();
  174. var util = require("../../../utils/util.js");
  175. var config = require("../../../config");
  176. export default {
  177. data() {
  178. return {
  179. activeTotal: 2,
  180. activeTotal2: 0,
  181. timeobj:{
  182. statDateStart:'',
  183. statDateEnd:''
  184. },
  185. totalTimeShow: false,
  186. activeTab: 0,
  187. numlist:[
  188. {name:'接待量',num:'10'},
  189. {name:'平均执行率',num:'10'},
  190. {name:'接待客户',num:'10'},
  191. ],
  192. lineOptsect:{
  193. "categories": ["2016","2017","2018","2019","2020","2021"],
  194. "series": [
  195. {
  196. "name": "成交量",
  197. "data": [35,8,25,37,4,20]
  198. }
  199. ]
  200. },
  201. newlistoj:[
  202. {name:"接待量",id:1},
  203. {name:"平均执行率",id:2},
  204. {name:"接待客户",id:3},
  205. {name:"接待",id:4},
  206. {name:"接待量",id:5},
  207. {name:"接待",id:6},
  208. ],
  209. bocindex:0,
  210. newlisttabinfo:[
  211. {name:'接待量',zxl:'10'},
  212. {name:'平均执行率',zxl:'50'},
  213. {name:'接待客户',zxl:'80'},
  214. ],
  215. };
  216. },
  217. onLoad() {
  218. },
  219. methods: {
  220. //指标执行率分析tab
  221. tapspagek2(index) {
  222. this.bocindex = index;
  223. },
  224. //集团对比
  225. Groupcontrast(){
  226. uni.navigateTo({
  227. url: '/pages/center/Piabodata/Groupcontrast'
  228. });
  229. },
  230. //团队对比
  231. Theteamcompared(){
  232. uni.navigateTo({
  233. url: '/pages/center/Piabodata/Theteamcompared'
  234. });
  235. },
  236. //用户洞察
  237. toUserinsightinto(){
  238. uni.navigateTo({
  239. url: '/pages/center/Piabodata/Userinsightinto'
  240. });
  241. },
  242. //趋势分析
  243. toTrendAnalysis(){
  244. uni.navigateTo({
  245. url: '/pages/center/Piabodata/TrendAnalysis'
  246. });
  247. },
  248. //员工分析
  249. toStaffAnalysis(){
  250. uni.navigateTo({
  251. url: '/pages/center/Piabodata/StaffAnalysis'
  252. });
  253. }
  254. }
  255. };
  256. </script>
  257. <style lang="scss" scoped>
  258. .box {
  259. width: 100%;
  260. height: 100%;
  261. background: #FAFAFA;
  262. padding-bottom: 60rpx;
  263. }
  264. .Piabodata-box{
  265. width: 100%;
  266. background: #FFFFFF;
  267. display: flex;
  268. flex-wrap: wrap;
  269. padding-bottom: 30rpx;
  270. .Piabodata{
  271. width: 33.3%;
  272. .Piabodata-img{
  273. width: 100%;
  274. text-align: center;
  275. .Piabodata-img1{
  276. width: 134rpx;
  277. height: 134rpx;
  278. }
  279. }
  280. .Piabodata-text{
  281. width: 100%;
  282. text-align: center;
  283. font-size: 24rpx;
  284. font-weight: 400;
  285. color: #333333;
  286. margin-top: -10rpx;
  287. }
  288. }
  289. }
  290. </style>