You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1577 lines
42 KiB

  1. <template>
  2. <view>
  3. <view class="timetabct">
  4. <view class="timetabctview">
  5. <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">7天</view>
  6. </view>
  7. <view class="timetabctview">
  8. <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">15天</view>
  9. </view>
  10. <view class="timetabctview">
  11. <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">30天</view>
  12. </view>
  13. </view>
  14. <view class="timepick">
  15. <view class="timepicktime">
  16. <view @click="tabtimetap(3)">{{sheartime1}}</view>
  17. <view>
  18. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  19. </view>
  20. </view>
  21. <view class="timepickpick">
  22. <view @click="checkboxChange()" style="width: 40rpx;height:40rpx;border: 1rpx solid #E0E0E0;">
  23. <image v-if="timepickpickisshow" style="width: 40rpx;height: 40rpx;"
  24. src="../../../static/images/xuanzhong.png" mode=""></image>
  25. </view>
  26. <view style="font-size:26rpx;text-indent: 12rpx;">对比</view>
  27. </view>
  28. <view class="timepicktime" v-if="timepickpickisshow">
  29. <view @click="tabtimetap(4)">{{sheartime2}}</view>
  30. <view>
  31. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="timeduibi">
  36. <view class="timeshow">数据起始时间:<text style="color: #333333;">{{kanbanlist.kaishitime}}</text></view>
  37. <view class="timeshow" v-if="kanbanlist.duibitime.length!=0">
  38. 数据对比时间:
  39. <text style="color: #333333;">{{kanbanlist.duibitime}}</text>
  40. </view>
  41. </view>
  42. <!-- 简报 -->
  43. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  44. <view class="boxzonglan" style="min-height: 100rpx;">
  45. <view class="zonglantit">简报</view>
  46. <view class="zonglanbox">
  47. <view class="grid" v-for="(item,index) in numlist" :key="index"
  48. style="height: auto;padding-bottom: 20rpx;">
  49. <view class="audonum" v-if="item.name=='接待时长'">{{item.name}}/分</view>
  50. <view class="audonum" v-else>{{item.name}}</view>
  51. <view class="num">
  52. <view v-if="index==1" style="width: 35%;">
  53. {{item.num>100?100:item.num}}%
  54. </view>
  55. <view v-else style="width: 35%;">
  56. {{item.num||0}}
  57. </view>
  58. <view class="comparesize" v-if="compareFlag&&timepickpickisshow">
  59. <text style="margin-right: 10rpx;">对比:{{index==1?item.num1+'%':item.num1}} </text>
  60. <template v-if="item.num2*1 != 0">
  61. <text :style="{color:item.num2*1>0?'red':'green'}">
  62. {{item.num2}}{{ item.name == '平均执行率' ? "%" : "" }}{{item.num2*1 > 0 ? '↑':'↓'}}</text>
  63. </template>
  64. <template v-else>
  65. <text
  66. :style="{color:item.num2*1>0?'red':'green'}">{{item.num2}}{{ item.name == '平均执行率' ? "%" : "" }}</text>
  67. </template>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  74. <view class="boxtittab" style="border: none;height: 82rpx;">
  75. <view class="tabbox">
  76. <view :class="{ activecllasscet2: newactiveTotal == 0 }" @click="tabxuanxiangtap(0)">项目</view>
  77. </view>
  78. <view class="tabbox">
  79. <view :class="{ activecllasscet2: newactiveTotal == 1 }" @click="tabxuanxiangtap(1)">顾问</view>
  80. </view>
  81. <view class="tabbox">
  82. <view :class="{ activecllasscet2: newactiveTotal == 2 }" @click="tabxuanxiangtap(2)">团队</view>
  83. </view>
  84. <view class="tabbox">
  85. <view :class="{ activecllasscet2: newactiveTotal == 3 }" @click="tabxuanxiangtap(3)">销讲一级</view>
  86. </view>
  87. <view class="tabbox">
  88. <view :class="{ activecllasscet2: newactiveTotal == 4 }" @click="tabxuanxiangtap(4)">销讲二级</view>
  89. </view>
  90. </view>
  91. <view class="chart">
  92. <view style="display: flex;padding: 0 0 40rpx 0;justify-content: center;">
  93. <view class="marketingBusiness">
  94. <view class="marketingBusinesstext" style="min-width: 50rpx;" @click="showMarketingBusiness = true">
  95. {{ marketingBusinessText }}
  96. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  97. </view>
  98. </view>
  99. <view
  100. style="margin: 0 20rpx 0 0;flex-shrink: 0;display: flex;align-items: center;justify-content: center;position: relative;z-index: 999999;"
  101. v-if="Selecttuandui&&Selecttuanduiobj.name" @click="oninputtap4()">
  102. <view class="title2-che" style="width: 220rpx;">
  103. {{Selecttuanduiobj.name}}
  104. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  105. </view>
  106. </view>
  107. <view
  108. style="display: flex;justify-content:center;padding-left: 30rpx;padding-right: 30rpx;"
  109. v-if="lopanobj.name" @click="oninputtap()">
  110. <view class="title2-che" style="width: 220rpx;">{{lopanobj.name}}
  111. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  112. </view>
  113. </view>
  114. </view>
  115. <view style="padding: 30rpx;padding-bottom: 20rpx;align-items: center;" v-if="Selectlevel">
  116. <view style="display: flex;align-items: center;border-bottom: 1px solid #C9C9C9;height: 80rpx;">
  117. <view>选择一级:</view>
  118. <view style="width:75%;">
  119. <input @click="oninputtap2()" v-model="Selectlevelobj.name" type="text" disabled="true"
  120. :border="border" placeholder="请选择" />
  121. </view>
  122. <view>
  123. <image src="https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/qf/more.png"
  124. style="width:12rpx;height:23rpx;margin-left: 16rpx;">
  125. </view>
  126. </view>
  127. <view style="display: flex;align-items: center;border-bottom: 1px solid #C9C9C9;height: 80rpx;">
  128. <view>选择二级:</view>
  129. <view style="width:75%;">
  130. <input @click="oninputtap3()" v-model="erSelectlevelobj.name" type="text" disabled="true"
  131. :border="border" placeholder="请选择" />
  132. </view>
  133. <view>
  134. <image src="https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/qf/more.png"
  135. style="width:12rpx;height:23rpx;margin-left: 16rpx;">
  136. </view>
  137. </view>
  138. </view>
  139. <view class="single">
  140. <view class="uchaserbox" :class="{ uchaserboxs : newactiveTotal == 1 || newactiveTotal == 3 }"
  141. v-if="lineOptsect.series.length!=0">
  142. <qiun-data-charts :style="!showCanvas?'display:none':''" :type="linetype" :chartData="lineOptsect"
  143. background="none" :ontouch="true" canvasId="wangxiaohuaerlingeryilingwuyibao" :opts="opts"
  144. :canvas2d="true" />
  145. </view>
  146. <view v-else style="width: 100%;">
  147. <view style="width: 100%;text-align: center;">
  148. <image style="width: 200rpx;height: 200rpx;"
  149. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  150. </view>
  151. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  152. </view>
  153. </view>
  154. </view>
  155. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  156. <view class="single" v-if="timepickpickisshow">
  157. <view class="title">
  158. <view class="title1">对比报表</view>
  159. </view>
  160. <view class="table" v-if="!guwenFlag">
  161. <view v-for="(item,index) in tableDate" :key="index">
  162. <view class="tr">
  163. <view v-for="(item1,index1) in item" :key="index" style="width: 100%;">
  164. <view v-if="index1<item.length-1||index==0" class="td"
  165. style="border-right:1px solid #E0E0E0;">{{item1}}</view>
  166. <view v-if="index>0 && index1==item.length-1" class="td"
  167. style="border-right:1px solid #E0E0E0;" :style="{color:item1*1>0?'red':'green'}">
  168. {{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <view class="table" v-if="guwenFlag" style="width: 100%;">
  175. <scroll-view scroll-x="true" style="white-space: nowrap;">
  176. <view v-for="(item,index) in tableDate" :key="index"
  177. :style="{display:index==0?'inline-block':'block'}">
  178. <view class="tr" style="display: inline-block;">
  179. <view v-for="(item1,index1) in item" :key="index1" class="trd"
  180. style="display: inline-block;">
  181. <view v-if="index==1&&index1>0" class="td" :style="{color:item1*1>0?'red':'green'}"
  182. style="border-right:1px solid #E0E0E0;">
  183. {{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
  184. </view>
  185. <view v-else-if="index>1&&index1>0" class="td" style="border-right:1px solid #E0E0E0;">
  186. {{item1+'%'}}
  187. </view>
  188. <view v-else class="td" style="border-right:1px solid #E0E0E0;">{{item1}}</view>
  189. </view>
  190. </view>
  191. </view>
  192. </scroll-view>
  193. </view>
  194. </view>
  195. <view style="width: 100%;height: 60rpx;"></view>
  196. <u-select v-model="Showhiddenunits" mode="single-column" :list="selectlist" @confirm="confirm"
  197. :default-value="selindexList">
  198. </u-select>
  199. <u-select v-model="Showhiddenunits2" mode="single-column" :list="selectlist2" @confirm="confirm2"
  200. :default-value="selindex">
  201. </u-select>
  202. <u-select v-model="Showhiddenunits3" mode="single-column" :list="selectlist3" @confirm="confirm3"
  203. :default-value="selindex">
  204. </u-select>
  205. <u-select v-model="Showhiddenunits4" mode="single-column" :list="selectlist4" @confirm="confirm4"
  206. :default-value="selindexList4">
  207. </u-select>
  208. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  209. <newcalendar v-model="totalTimeShow2" :planNum='intervaltime' mode="date" @change="totalTimeChange2">
  210. </newcalendar>
  211. <!-- 接待时间 -到访时间-->
  212. <u-popup v-model="timeshow" mode="bottom">
  213. <view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }"
  214. @click="tabtimetap(5, '接待时间')">
  215. 全部</view>
  216. <view class="timeview" :style="{ color: activeTotal == 0 ? '#2B6EFF' : '#333333' }"
  217. @click="tabtimetap(0, '今天')">
  218. 今天</view>
  219. <view class="timeview" :style="{ color: activeTotal == 1 ? '#2B6EFF' : '#333333' }"
  220. @click="tabtimetap(1, '昨天')">
  221. 昨天</view>
  222. <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }"
  223. @click="tabtimetap(2, '近7天')">
  224. 近7天</view>
  225. <view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }"
  226. @click="tabtimetap(3, '近30天')">
  227. 近30天</view>
  228. <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }"
  229. @click="tabtimetap(4, '')">
  230. 自定义</view>
  231. </u-popup>
  232. <!-- 顾问 -->
  233. <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
  234. <!-- 全部话术 -->
  235. <u-select v-model="huashushow" :list="huashuList" @confirm="actionSelectCallback1"></u-select>
  236. <u-select v-model="showMarketingBusiness" mode="single-column" :list="showMarketingList"
  237. label-name="templateName" value-name="id" @confirm="selectMarketingBusiness"></u-select>
  238. <!-- 加载组件 -->
  239. <loading v-model="LOADING"></loading>
  240. </view>
  241. </template>
  242. <script>
  243. import newcalendar from '@/components/newcalendar/newcalendar.vue';
  244. import loading from "@/components/loading/index.vue"
  245. export default {
  246. components: {
  247. newcalendar,
  248. loading
  249. },
  250. data() {
  251. return {
  252. time: '接待时间',
  253. team: '部门',
  254. guwen: '顾问',
  255. huashu: '全部话术',
  256. huashuList: false,
  257. huashuShow: false,
  258. freeList: [], //顾问
  259. selindexList: [0], // 默认选中第一项
  260. selindexList4: [0], // 默认选中第一项
  261. compareFlag: false,
  262. numlist: [{
  263. name: '接待量',
  264. num: '10',
  265. num1: '0',
  266. num2: '0'
  267. },
  268. {
  269. name: '平均执行率',
  270. num: '10',
  271. num1: '0',
  272. num2: '0'
  273. },
  274. {
  275. name: '接待时长',
  276. num: '10',
  277. num1: '0',
  278. num2: '0'
  279. },
  280. ],
  281. activeTotal: 0, //时间下标
  282. newactiveTotal: 0, //tab下标
  283. totalTimeShow: false,
  284. totalTimeShow2: false,
  285. totalTimeShow3: false,
  286. cWidth: uni.upx2px(690),
  287. cHeight: uni.upx2px(453),
  288. AcHeight: uni.upx2px(500),
  289. kanbanlist: { //录音和测评的数据
  290. kaishitime: '',
  291. duibitime: '',
  292. audonum: '',
  293. audotime: "",
  294. avgDuration: '',
  295. fraction: ''
  296. },
  297. pamect: { //接口参数
  298. houseId: '',
  299. timeType: "4",
  300. firstStartDate: '', //第一次开始时间
  301. firstEndDate: '', //第一次结束时间
  302. lastStartDate: '',
  303. lastEndDate: '',
  304. accountId: '', //顾问ids
  305. marketingId: '', //二级销讲id
  306. deptId: "", //部门id
  307. showStatus: 0
  308. },
  309. linetype: "line",
  310. lineOptsect: {}, //图表数据
  311. Showhiddenunits: false,
  312. selectlist: [],
  313. lopanobj: {
  314. id: '',
  315. name: ''
  316. },
  317. //二级相关
  318. Selectlevel: false,
  319. Selectlevelobj: {
  320. id: '',
  321. name: ''
  322. },
  323. erSelectlevelobj: {
  324. id: '',
  325. name: ''
  326. },
  327. Showhiddenunits2: false,
  328. Showhiddenunits3: false,
  329. selectlist2: [],
  330. selectlist3: [],
  331. //团队相关
  332. Selecttuandui: false,
  333. selectlist4: [],
  334. Selecttuanduiobj: {
  335. id: '',
  336. name: ''
  337. },
  338. Showhiddenunits4: false,
  339. showCanvas: true,
  340. timepickpickisshow: false,
  341. sheartime1: "",
  342. sheartime2: "",
  343. intervaltime: 0,
  344. tableDate: [],
  345. guwenFlag: false,
  346. opts: {}, // 配置项为空
  347. marketingBusinessText: '请选择销讲业务',
  348. showMarketingBusiness: false, // 展示可选择的销讲业务
  349. showMarketingList: [], // 销讲业务列表
  350. marketingBusiness: '', // 销讲业务
  351. };
  352. },
  353. onLoad(option) {
  354. this.LOADING = true
  355. this.pamect.houseId = uni.getStorageSync('buildingID').id;
  356. this.getFreeList()
  357. this.getMarketingBusiness()
  358. if (option.type == 1) {
  359. this.timepickpickisshow = true
  360. this.pamect.firstStartDate = option.staTime
  361. this.pamect.firstEndDate = option.endtime
  362. this.pamect.lastStartDate = option.staTime1
  363. this.pamect.lastEndDate = option.endtime1
  364. this.pamect.timeType = ''
  365. this.sheartime1 =
  366. `${this.fomatDate(this.pamect.firstStartDate)}-${this.fomatDate(this.pamect.firstEndDate)}`
  367. this.sheartime2 = `${this.fomatDate(this.pamect.lastStartDate)}-${this.fomatDate(this.pamect.lastEndDate)}`
  368. this.tabxuanxiangtap(3)
  369. this.$forceUpdate()
  370. } else {
  371. this.init()
  372. }
  373. },
  374. onPullDownRefresh() {
  375. this.init()
  376. setTimeout(function() {
  377. uni.stopPullDownRefresh();
  378. }, 1000);
  379. },
  380. watch: {
  381. Showhiddenunits(newValue, oldValue) {
  382. this.showCanvas = !newValue
  383. },
  384. Showhiddenunits2(newValue, oldValue) {
  385. this.showCanvas = !newValue
  386. },
  387. Showhiddenunits3(newValue, oldValue) {
  388. this.showCanvas = !newValue
  389. },
  390. Showhiddenunits4(newValue, oldValue) {
  391. this.showCanvas = !newValue
  392. },
  393. totalTimeShow(newValue, oldValue) {
  394. this.showCanvas = !newValue
  395. },
  396. totalTimeShow2(newValue, oldValue) {
  397. this.showCanvas = !newValue
  398. },
  399. totalTimeShow3(newValue, oldValue) {
  400. this.showCanvas = !newValue
  401. },
  402. },
  403. methods: {
  404. // 顾问
  405. actionSelectCallback(e) {
  406. // this.screen.agentId = e[0].value;
  407. // this.counselorName = e[0].label;
  408. },
  409. // 话术
  410. actionSelectCallback1(e) {
  411. // this.screen.agentId = e[0].value;
  412. // this.counselorName = e[0].label;
  413. },
  414. // 获取销讲业务模板
  415. getMarketingBusiness() {
  416. this.$u.get("/customer/marketingBusiness", {
  417. houseId: this.pamect.houseId
  418. }).then(res => {
  419. console.log(res)
  420. if (res) {
  421. this.showMarketingList = res
  422. }
  423. })
  424. },
  425. // 选择趋势分析
  426. selectMarketingBusiness(e) {
  427. this.marketingBusinessText = e[0].label
  428. this.marketingBusiness = e[0].value
  429. this.init()
  430. },
  431. // 获取一级
  432. getAllYiJi() {
  433. this.speakingLevel()
  434. },
  435. // 获取二级
  436. getAllErJi() {
  437. if (this.pamect.marketingId == '') {
  438. this.getonsyiji()
  439. } else {
  440. this.aboutEecondary()
  441. }
  442. },
  443. //获取顾问列表
  444. getFreeList() {
  445. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  446. houseId: this.pamect.houseId
  447. }).then(res => {
  448. this.freeList = res;
  449. this.huashuList = res;
  450. if (this.freeList.length) {
  451. this.freeList.forEach(item => {
  452. item.label = item.name;
  453. item.value = item.accountId
  454. })
  455. }
  456. })
  457. },
  458. // 时间格式转换
  459. fomatDate(date) {
  460. if (!date) return '--'
  461. let arr = date.split(' ')
  462. let str = arr[0]
  463. let result = str.split('-')
  464. return `${result[1]}-${result[2]}`
  465. },
  466. //是否对比
  467. checkboxChange() {
  468. if (this.newactiveTotal == 3) {
  469. uni.showToast({
  470. title: '销讲一级无对比',
  471. duration: 2000
  472. });
  473. return
  474. }
  475. if (this.newactiveTotal == 2) {
  476. if (this.Selecttuanduiobj.id == '') {
  477. uni.showToast({
  478. title: '全部团队无对比',
  479. duration: 2000
  480. });
  481. return
  482. }
  483. }
  484. if (this.timepickpickisshow == true) {
  485. this.timepickpickisshow = false;
  486. this.pamect.showStatus = 0;
  487. this.init()
  488. } else {
  489. this.timepickpickisshow = true;
  490. this.pamect.showStatus = 1;
  491. }
  492. this.activeTotal = 8;
  493. },
  494. init() {
  495. this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => {
  496. this.pamect.lastStartDate = data.lastStartDate;
  497. this.pamect.lastEndDate = data.lastEndDate;
  498. this.numlist[0].num = data.startSumCustomer || 0
  499. this.numlist[1].num = data.startFraction || 0
  500. this.numlist[2].num = Math.floor(data.startSumDuration / 60) || 0;
  501. if (data.endSumDuration != null) {
  502. this.compareFlag = true
  503. this.numlist[0].num1 = data.endSumCustomer || 0
  504. this.numlist[1].num1 = data.endFraction || 0
  505. this.numlist[2].num1 = Math.floor(data.endSumDuration / 60) || 0;
  506. this.numlist[0].num2 = data.contrastSumCustomer
  507. this.numlist[1].num2 = data.contrastFraction || 0
  508. this.numlist[2].num2 = data.contrastSumDuration
  509. } else {
  510. this.compareFlag = false
  511. }
  512. this.sheartime1 = data.lastStartDate.substring(5, 10) + "--" + data.lastEndDate.substring(5,
  513. 10);
  514. this.sheartime2 = '请选择';
  515. this.kanbanlist.duibitime = '';
  516. var kaishi = this.DateDiff(data.lastStartDate, data.lastEndDate);
  517. this.kanbanlist.kaishitime = data.lastStartDate + "至" + data.lastEndDate + "(" + kaishi + "天)";
  518. if (this.pamect.showStatus == 1) {
  519. this.sheartime2 = data.firstStartDate.substring(5, 10) + "--" + data.firstEndDate
  520. .substring(5, 10);
  521. var jeishu = this.DateDiff(data.firstStartDate, data.firstEndDate);
  522. this.kanbanlist.duibitime = data.firstStartDate + "至" + data.firstEndDate + "(" + jeishu +
  523. "天)";
  524. }
  525. this.kanbanlist.audonum = data.sumCustomer;
  526. this.kanbanlist.audotime = data.avgDuration;
  527. this.kanbanlist.avgDuration = data.fraction;
  528. this.kanbanlist.fraction = data.fraction;
  529. if (this.newactiveTotal == 0) {
  530. this.ProjectDimension()
  531. } else if (this.newactiveTotal == 1) {
  532. console.log(this.pamect.accountId)
  533. if (this.pamect.accountId == "") {
  534. this.getguwenlist()
  535. } else {
  536. this.ConsultantDimension()
  537. }
  538. } else if (this.newactiveTotal == 2) {
  539. if (this.pamect.deptId == "") {
  540. this.getuanduilist()
  541. } else {
  542. this.TeamCompared()
  543. }
  544. } else if (this.newactiveTotal == 3) {
  545. this.speakingLevel()
  546. } else {
  547. if (this.pamect.marketingId == '') {
  548. this.getonsyiji()
  549. } else {
  550. this.aboutEecondary()
  551. }
  552. }
  553. setTimeout(() => {
  554. this.$forceUpdate()
  555. this.LOADING = false
  556. }, 1500)
  557. }).catch(e => {
  558. this.LOADING = false
  559. })
  560. },
  561. //起始时间
  562. totalTimeChange(e) {
  563. this.pamect.lastStartDate = e.startDate;
  564. this.pamect.lastEndDate = e.endDate;
  565. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  566. this.kanbanlist.kaishitime = this.pamect.lastStartDate + "至" + this.pamect.lastEndDate + "(" + kaishi +
  567. "天)";
  568. if (this.pamect.showStatus == 0) {
  569. this.init()
  570. this.totalTimeShow = false;
  571. } else {
  572. if (this.pamect.firstStartDate.length == 0) {
  573. uni.showToast({
  574. title: '请选择对比时间',
  575. duration: 2000
  576. });
  577. } else {
  578. var jshu = this.DateDiff(this.pamect.firstStartDate, this.pamect.firstEndDate)
  579. if (kaishi == jshu) {
  580. this.init()
  581. } else {
  582. uni.showToast({
  583. title: '请选择相同天数',
  584. duration: 2000
  585. });
  586. }
  587. }
  588. this.totalTimeShow = false;
  589. }
  590. },
  591. //对比时间
  592. totalTimeChange2(e) {
  593. console.log(e)
  594. var d = new Date(e.result.replace(/\-/g, '/'));
  595. d.setDate(d.getDate() + this.intervaltime);
  596. var year = d.getFullYear();
  597. var month = d.getMonth() + 1;
  598. if (month < 10) month = '0' + month;
  599. var day = d.getDate();
  600. if (day < 10) day = '0' + day;
  601. this.pamect.firstStartDate = e.result;
  602. this.pamect.firstEndDate = year + '-' + month + '-' + day;
  603. console.log(this.pamect.firstStartDate)
  604. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  605. var jeishu = this.DateDiff(this.pamect.firstStartDate, this.pamect.firstEndDate)
  606. this.kanbanlist.duibitime = this.pamect.firstStartDate + "至" + this.pamect.firstEndDate + "(" + jeishu +
  607. "天)";
  608. console.log(this.pamect.lastStartDate, this.pamect.lastEndDate, kaishi, jeishu)
  609. if (kaishi == jeishu) {
  610. this.init()
  611. } else {
  612. uni.showToast({
  613. title: '请选择相同天数',
  614. duration: 2000
  615. });
  616. }
  617. this.totalTimeShow2 = false;
  618. },
  619. //自定义时间
  620. totalTimeChange3(e) {
  621. this.pamect.firstStartDate = "";
  622. this.pamect.firstEndDate = "";
  623. this.pamect.lastStartDate = e.startDate;
  624. this.pamect.lastEndDate = e.endDate;
  625. this.init()
  626. this.totalTimeShow3 = false;
  627. },
  628. //时间切换
  629. tabtimetap(index) {
  630. if (index == 0) {
  631. this.pamect.timeType = "4";
  632. this.pamect.firstStartDate = '';
  633. this.pamect.firstEndDate = '';
  634. this.pamect.lastStartDate = '';
  635. this.pamect.lastEndDate = '';
  636. this.init()
  637. } else if (index == 1) {
  638. this.pamect.timeType = "5";
  639. this.pamect.firstStartDate = '';
  640. this.pamect.firstEndDate = '';
  641. this.pamect.lastStartDate = '';
  642. this.pamect.lastEndDate = '';
  643. this.init()
  644. } else if (index == 2) {
  645. this.pamect.timeType = "6";
  646. this.pamect.firstStartDate = '';
  647. this.pamect.firstEndDate = '';
  648. this.pamect.lastStartDate = '';
  649. this.pamect.lastEndDate = '';
  650. this.init()
  651. } else if (index == 3) {
  652. this.pamect.timeType = "";
  653. this.totalTimeShow = true;
  654. } else if (index == 4) {
  655. this.pamect.timeType = "";
  656. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  657. console.log(kaishi)
  658. this.intervaltime = kaishi - 1;
  659. this.totalTimeShow2 = true;
  660. } else {
  661. this.pamect.timeType = "";
  662. this.totalTimeShow3 = true;
  663. }
  664. this.activeTotal = index;
  665. },
  666. //tab切换
  667. tabxuanxiangtap(index) {
  668. if (index == 1 || index == 3 || index == 4) {
  669. this.marketingBusinessText = this.showMarketingList[0].templateName
  670. this.marketingBusiness = this.showMarketingList[0].id
  671. }
  672. this.newactiveTotal = index;
  673. this.Selectlevel = false;
  674. this.Selecttuandui = false;
  675. this.timepickpickisshow = false;
  676. this.init()
  677. },
  678. //项目维度
  679. ProjectDimension() {
  680. const that = this;
  681. that.lineOptsect = {
  682. categories: [],
  683. series: []
  684. };
  685. this.linetype = "line";
  686. this.$u.post("/cusLvStatistics/teamOrOneValueShow", this.pamect).then(data => {
  687. if (this.pamect.showStatus == 0) {
  688. that.lineOptsect = {
  689. categories: [],
  690. series: [{
  691. name: '起始时间',
  692. data: [],
  693. color: '#7ED3F4'
  694. }]
  695. }
  696. data.lastValue.forEach((child, zxc) => {
  697. that.lineOptsect.categories.push(child.statDate.substring(5, 10))
  698. })
  699. that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction);
  700. } else {
  701. that.lineOptsect = {
  702. categories: [],
  703. series: [{
  704. name: '起始时间',
  705. data: [],
  706. color: '#7ED3F4'
  707. },
  708. {
  709. name: '对比时间',
  710. data: [],
  711. color: '#FF7070'
  712. },
  713. ]
  714. }
  715. data.firstValue.forEach((item, sdf) => {
  716. data.lastValue.forEach((child, zxc) => {
  717. if (sdf == zxc) {
  718. that.lineOptsect.categories.push(
  719. child.statDate.substring(5, 10) + 'vs' + item.statDate
  720. .substring(5, 10)
  721. )
  722. }
  723. })
  724. })
  725. that.lineOptsect.series[1].data = data.firstValue.map(item => item.fraction);
  726. that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction)
  727. that.guwenFlag = false
  728. // // 处理表格数据
  729. let arr = [
  730. ['时间', '时段一', '时段二', '变化']
  731. ]
  732. that.lineOptsect.categories.map((item, index) => {
  733. let newarr = [item, data.lastValue[index].fraction, data.firstValue[index]
  734. .fraction, data.contrast[index].data
  735. ]
  736. arr.push(newarr)
  737. })
  738. // console.log(arr)
  739. that.tableDate = arr
  740. }
  741. this.$forceUpdate()
  742. });
  743. },
  744. //顾问维度
  745. ConsultantDimension() {
  746. const that = this;
  747. that.lineOptsect = {
  748. categories: [],
  749. series: []
  750. };
  751. if (this.marketingBusiness) {
  752. this.pamect.marketingBusiness = this.marketingBusiness
  753. }
  754. this.linetype = "radar";
  755. this.$u.post("/cusLvStatistics/accFirstLevelContrast", this.pamect).then(data => {
  756. // return
  757. let max = data.firstList[0].total
  758. for (let i = 0; i < data.firstList.length; i++) {
  759. if (max < data.firstList[i]) max = data.firstList[i];
  760. }
  761. this.opts = {
  762. ...this.opts,
  763. fontSize: 10,
  764. extra: {
  765. radar: {
  766. max: max + 25
  767. }
  768. }
  769. }
  770. if (this.pamect.showStatus == 0) {
  771. that.lineOptsect = {
  772. categories: [],
  773. series: [{
  774. name: '时段一',
  775. data: [],
  776. color: '#7ED3F4'
  777. }]
  778. }
  779. data.firstList.forEach((item, sdf) => {
  780. that.lineOptsect.categories.push(item.name)
  781. that.lineOptsect.series[0].data.push(data.firstList[sdf].total)
  782. })
  783. } else {
  784. // 当有对比的时候
  785. that.lineOptsect = {
  786. categories: [],
  787. series: [{
  788. name: '时段一',
  789. data: [],
  790. color: '#7ED3F4'
  791. },
  792. {
  793. name: '时段二',
  794. data: [],
  795. color: '#FF7070'
  796. },
  797. ]
  798. }
  799. data.headerList.forEach((item, sdf) => {
  800. that.lineOptsect.categories.push(item.name)
  801. that.lineOptsect.series[0].data.push(data.firstList[sdf].total)
  802. that.lineOptsect.series[1].data.push(data.secondList[sdf].total)
  803. })
  804. // return
  805. // // 处理表格数据
  806. that.guwenFlag = true
  807. let arr = []
  808. arr[0] = ['时间', ...that.lineOptsect.categories]
  809. arr[1] = ['变化']
  810. arr[2] = ['时段一']
  811. arr[3] = ['时段二']
  812. // console.log(arr)
  813. data.firstList.map((item, index) => {
  814. arr[2].push(item.total)
  815. arr[3].push(data.secondList[index].total)
  816. arr[1].push(data.thirdList[index].total)
  817. })
  818. that.tableDate = arr
  819. }
  820. this.$forceUpdate()
  821. });
  822. },
  823. // 顾问纬度选择顾问
  824. oninputtap() {
  825. this.Showhiddenunits = true;
  826. },
  827. // 顾问选择确认
  828. confirm(e) {
  829. this.lopanobj.id = e[0].value;
  830. this.lopanobj.name = e[0].label;
  831. this.pamect.accountId = this.lopanobj.id;
  832. this.ConsultantDimension()
  833. this.Showhiddenunits = false;
  834. for (let i = 0; i < this.selectlist.length; i++) {
  835. if (e[0].value == this.selectlist[i].value) {
  836. this.selindexList[0] = i
  837. }
  838. }
  839. },
  840. //获取顾问
  841. getguwenlist() {
  842. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  843. houseId: this.pamect.houseId,
  844. marketingBusiness: this.marketingBusiness,
  845. }).then(data => {
  846. console.log(data, 'sdajmkldjaskldjaskldjaskldjaskljdklsa')
  847. this.selectlist = [];
  848. if (data.length == 0) {
  849. this.lineOptsect = {
  850. categories: [],
  851. series: []
  852. };
  853. return
  854. } else {
  855. data.forEach(item => {
  856. this.selectlist.push({
  857. value: item.accountId,
  858. label: item.name
  859. })
  860. })
  861. this.lopanobj.id = data[0].accountId;
  862. this.lopanobj.name = data[0].name;
  863. this.pamect.accountId = this.lopanobj.id;
  864. console.log(this.pamect.accountId)
  865. this.ConsultantDimension()
  866. }
  867. })
  868. },
  869. //销讲一级
  870. speakingLevel() {
  871. this.linetype = "radar";
  872. this.lineOptsect = {
  873. categories: [],
  874. series: []
  875. };
  876. if (this.marketingBusiness) {
  877. this.pamect.marketingBusiness = this.marketingBusiness
  878. }
  879. this.$u.post("/cusLvStatistics/firstLevelContrast", this.pamect).then(data => {
  880. if (data.length == 0) {
  881. return
  882. } else {
  883. let max = data[0].avgExecutionRate
  884. let list = data.map(item => {
  885. return item.name
  886. });
  887. let list1 = data.map(item => {
  888. if (item.avgExecutionRate == null) {
  889. item.avgExecutionRate = 0
  890. } else {
  891. item.avgExecutionRate = item.avgExecutionRate
  892. }
  893. if (max < item.avgExecutionRate) max = item.avgExecutionRate;
  894. return item.avgExecutionRate
  895. });
  896. this.opts = {
  897. ...this.opts,
  898. fontSize: 10,
  899. extra: {
  900. radar: {
  901. max: max + 25
  902. }
  903. }
  904. }
  905. this.lineOptsect = {
  906. "categories": list,
  907. "series": [{
  908. "name": "销讲一级",
  909. "data": list1
  910. }]
  911. }
  912. }
  913. this.$forceUpdate()
  914. })
  915. },
  916. //销讲二级
  917. aboutEecondary() {
  918. this.lineOptsect = {};
  919. this.linetype = "line";
  920. if (this.marketingBusiness) {
  921. this.pamect.marketingBusiness = this.marketingBusiness
  922. }
  923. this.$u.post("/cusLvStatistics/level2Contrast", this.pamect).then(data => {
  924. if (this.pamect.showStatus == 0) {
  925. this.lineOptsect = {
  926. categories: [],
  927. series: [{
  928. name: '起始时间',
  929. data: [],
  930. color: '#7ED3F4'
  931. }]
  932. }
  933. data.lastList.forEach((item, sdf) => {
  934. this.lineOptsect.categories.push(item.statDate.substring(5, 10))
  935. })
  936. this.lineOptsect.series[0].data = data.lastList.map(item => item.avgExecutionRate);
  937. } else {
  938. this.lineOptsect = {
  939. categories: [],
  940. series: [{
  941. name: '起始时间',
  942. data: [],
  943. color: '#7ED3F4'
  944. },
  945. {
  946. name: '对比时间',
  947. data: [],
  948. color: '#FF7070'
  949. },
  950. ]
  951. }
  952. data.firstList.forEach((item, sdf) => {
  953. data.lastList.forEach((child, zxc) => {
  954. if (sdf == zxc) {
  955. this.lineOptsect.categories.push(
  956. child.statDate.substring(5, 10) + 'vs' + item.statDate
  957. .substring(5, 10)
  958. )
  959. }
  960. })
  961. })
  962. this.lineOptsect.series[1].data = data.firstList.map(item => item.avgExecutionRate);
  963. this.lineOptsect.series[0].data = data.lastList.map(item => item.avgExecutionRate)
  964. let that = this
  965. this.guwenFlag = false
  966. // // 处理表格数据
  967. let arr = [
  968. ['时间', '时段一', '时段二', '变化']
  969. ]
  970. that.lineOptsect.categories.map((item, index) => {
  971. let newarr = [item, data.lastList[
  972. index].avgExecutionRate, data.firstList[index].avgExecutionRate,
  973. data.contrast[index].data
  974. ]
  975. arr.push(newarr)
  976. })
  977. that.tableDate = arr
  978. }
  979. this.$forceUpdate()
  980. })
  981. },
  982. //销讲二级:获取一级
  983. getonsyiji() {
  984. this.$u.post("/cusLvStatistics/findAllFirstLevel", {
  985. houseId: this.pamect.houseId,
  986. marketingBusiness: this.marketingBusiness,
  987. }).then(data => {
  988. this.selectlist2 = [];
  989. if (data.length == 0) {
  990. this.Selectlevel = false;
  991. this.lineOptsect = {
  992. categories: [],
  993. series: []
  994. };
  995. return
  996. } else {
  997. this.Selectlevel = true;
  998. data.forEach(item => {
  999. this.selectlist2.push({
  1000. value: item.marketingId,
  1001. label: item.name
  1002. })
  1003. })
  1004. this.Selectlevelobj.id = data[0].marketingId;
  1005. this.Selectlevelobj.name = data[0].name;
  1006. this.getonserji(this.Selectlevelobj.id)
  1007. }
  1008. this.$forceUpdate()
  1009. })
  1010. },
  1011. //销讲二级:通过一级获取二级
  1012. getonserji(ccd) {
  1013. this.$u.post("/cusLvStatistics/findLevel2ByFirstLevel", {
  1014. houseId: this.pamect.houseId,
  1015. marketingId: ccd
  1016. }).then(data => {
  1017. this.selectlist3 = [];
  1018. data.forEach(item => {
  1019. this.selectlist3.push({
  1020. value: item.marketingId,
  1021. label: item.name
  1022. })
  1023. })
  1024. this.erSelectlevelobj.id = data[0].marketingId;
  1025. this.erSelectlevelobj.name = data[0].name;
  1026. this.pamect.marketingId = this.erSelectlevelobj.id;
  1027. this.aboutEecondary()
  1028. this.$forceUpdate()
  1029. })
  1030. },
  1031. //销讲二级:一级选择
  1032. oninputtap2() {
  1033. this.Showhiddenunits2 = true;
  1034. },
  1035. //销讲二级:二级选择
  1036. oninputtap3() {
  1037. if (this.Selectlevelobj.id == "") {
  1038. uni.showToast({
  1039. title: '请先选择一级',
  1040. duration: 2000
  1041. });
  1042. } else {
  1043. this.Showhiddenunits3 = true;
  1044. }
  1045. },
  1046. //销讲二级:一级选择确认
  1047. confirm2(e) {
  1048. this.Selectlevelobj.id = e[0].value;
  1049. this.Selectlevelobj.name = e[0].label;
  1050. this.getonserji(this.Selectlevelobj.id)
  1051. },
  1052. //销讲二级:二级选择确认
  1053. confirm3(e) {
  1054. this.erSelectlevelobj.id = e[0].value;
  1055. this.erSelectlevelobj.name = e[0].label;
  1056. this.pamect.marketingId = this.erSelectlevelobj.id;
  1057. this.aboutEecondary()
  1058. },
  1059. //团队请选择
  1060. oninputtap4() {
  1061. this.Showhiddenunits4 = true;
  1062. },
  1063. //团队选择确认
  1064. confirm4(e) {
  1065. this.Selecttuanduiobj.id = e[0].value;
  1066. this.Selecttuanduiobj.name = e[0].label;
  1067. this.pamect.deptId = this.Selecttuanduiobj.id;
  1068. this.pamect.showStatus = 0;
  1069. this.pamect.timeType = "4";
  1070. this.pamect.firstStartDate = '';
  1071. this.pamect.firstEndDate = '';
  1072. this.pamect.lastStartDate = '';
  1073. this.pamect.lastEndDate = '';
  1074. this.activeTotal = 0;
  1075. this.timepickpickisshow = false;
  1076. this.init()
  1077. this.TeamCompared()
  1078. for (let i = 0; i < this.selectlist4.length; i++) {
  1079. if (e[0].value == this.selectlist4[i].value) {
  1080. this.selindexList4[0] = i
  1081. }
  1082. }
  1083. },
  1084. //获取团队列表
  1085. getuanduilist() {
  1086. this.$u.post("/cusLvStatistics/findAllDeptIdByHouseId ", {
  1087. houseId: this.pamect.houseId
  1088. }).then(data => {
  1089. this.selectlist4 = [{
  1090. value: "",
  1091. label: "全部"
  1092. }];
  1093. if (data.length == 0) {
  1094. this.Selecttuandui = false;
  1095. this.lineOptsect = {
  1096. categories: [],
  1097. series: []
  1098. };
  1099. return
  1100. } else {
  1101. this.Selecttuandui = true;
  1102. data.forEach(item => {
  1103. this.selectlist4.push({
  1104. value: item.deptId,
  1105. label: item.deptName
  1106. })
  1107. })
  1108. this.Selecttuanduiobj.id = "";
  1109. this.Selecttuanduiobj.name = "全部";
  1110. this.pamect.deptId = this.Selecttuanduiobj.id;
  1111. this.TeamCompared()
  1112. }
  1113. })
  1114. },
  1115. //团队对比
  1116. TeamCompared() {
  1117. const that = this;
  1118. that.lineOptsect = {
  1119. categories: [],
  1120. series: []
  1121. };
  1122. this.linetype = "line";
  1123. this.$forceUpdate()
  1124. this.$u.post("/cusLvStatistics/teamOrOneValueShowByDept", this.pamect).then(data => {
  1125. if (this.Selecttuanduiobj.id == "") {
  1126. var newlist = [];
  1127. for (var i in data) {
  1128. var ect = data[i].receptionStatList.map(item => {
  1129. if (item.fraction == null) {
  1130. item.fraction = 0
  1131. } else {
  1132. item.fraction = item.fraction
  1133. }
  1134. return item.fraction
  1135. });
  1136. newlist.push({
  1137. name: data[i].deptName,
  1138. data: ect
  1139. })
  1140. }
  1141. var timelist = [];
  1142. for (var i in data) {
  1143. var ect = data[i].receptionStatList.map(item => {
  1144. return item.statDate
  1145. });
  1146. timelist.push({
  1147. name: data[i].deptName,
  1148. data: ect
  1149. })
  1150. }
  1151. var xAxisdata = [];
  1152. timelist[0].data.forEach((item, sdf) => {
  1153. xAxisdata.push(item.substring(5, 10))
  1154. })
  1155. that.lineOptsect = {
  1156. categories: xAxisdata,
  1157. series: newlist
  1158. }
  1159. } else {
  1160. if (this.pamect.showStatus == 0) {
  1161. that.lineOptsect = {
  1162. categories: [],
  1163. series: [{
  1164. name: '起始时间',
  1165. data: [],
  1166. color: '#7ED3F4'
  1167. }]
  1168. }
  1169. data.lastValue.receptionStatList.forEach((item, sdf) => {
  1170. that.lineOptsect.categories.push(item.statDate.substring(5, 10))
  1171. })
  1172. that.lineOptsect.series[0].data = data.lastValue.receptionStatList.map(item => item
  1173. .fraction);
  1174. } else {
  1175. that.lineOptsect = {
  1176. categories: [],
  1177. series: [{
  1178. name: '起始时间',
  1179. data: [],
  1180. color: '#7ED3F4'
  1181. },
  1182. {
  1183. name: '对比时间',
  1184. data: [],
  1185. color: '#FF7070'
  1186. },
  1187. ]
  1188. }
  1189. data.firstValue.receptionStatList.forEach((item, sdf) => {
  1190. data.lastValue.receptionStatList.forEach((child, zxc) => {
  1191. if (sdf == zxc) {
  1192. that.lineOptsect.categories.push(
  1193. child.statDate.substring(5, 10) + 'vs' + item
  1194. .statDate.substring(5, 10)
  1195. )
  1196. }
  1197. })
  1198. })
  1199. that.lineOptsect.series[1].data = data.firstValue.receptionStatList.map(item => item
  1200. .fraction);
  1201. that.lineOptsect.series[0].data = data.lastValue.receptionStatList.map(item => item
  1202. .fraction)
  1203. that.guwenFlag = false
  1204. // 团队处理数据
  1205. // // 处理表格数据
  1206. let arr = [
  1207. ['时间', '时段一', '时段二', '变化']
  1208. ]
  1209. that.lineOptsect.categories.map((item, index) => {
  1210. let newarr = [item, data
  1211. .lastValue.receptionStatList[index].fraction, data.firstValue
  1212. .receptionStatList[index].fraction, data.contrast
  1213. .receptionStatList[index].data
  1214. ]
  1215. arr.push(newarr)
  1216. })
  1217. that.tableDate = arr
  1218. }
  1219. }
  1220. this.$forceUpdate()
  1221. });
  1222. },
  1223. //算相隔天数
  1224. DateDiff(sDate1, sDate2) {
  1225. var aDate, oDate1, oDate2, iDays;
  1226. aDate = sDate1.split("-");
  1227. oDate1 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]); //转换为yyyy-MM-dd格式
  1228. aDate = sDate2.split("-");
  1229. oDate2 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]);
  1230. iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24); //把相差的毫秒数转换为天数
  1231. return iDays + 1; //返回相差天数
  1232. },
  1233. },
  1234. }
  1235. </script>
  1236. <style lang="scss" scoped>
  1237. .title2-che {
  1238. width: 178rpx;
  1239. height: 48rpx;
  1240. background: #FFFFFF;
  1241. border-radius: 6rpx;
  1242. border: 1px solid #E0E0E0;
  1243. line-height: 48rpx;
  1244. font-size: 28rpx;
  1245. font-weight: 400;
  1246. color: #666666;
  1247. text-indent: 12rpx;
  1248. margin-left: 35rpx;
  1249. position: relative;
  1250. .righttochoose {
  1251. width: 18rpx;
  1252. height: 24rpx;
  1253. position: absolute;
  1254. top: 12rpx;
  1255. right: 12rpx;
  1256. }
  1257. }
  1258. .table {
  1259. border: 0px solid darkgray;
  1260. .tr {
  1261. display: flex;
  1262. // width: 100%;
  1263. justify-content: center;
  1264. height: 64rpx;
  1265. align-items: center;
  1266. border-bottom: 1px solid #E0E0E0;
  1267. flex-wrap: nowrap;
  1268. .td {
  1269. text-align: center;
  1270. font-size: 24rpx;
  1271. font-weight: 400;
  1272. color: #333333;
  1273. height: 64rpx;
  1274. line-height: 64rpx;
  1275. // flex-shrink: 0;
  1276. }
  1277. .trd {
  1278. flex-shrink: 0;
  1279. min-width: 300rpx;
  1280. // border-bottom: 1px solid #ccc;
  1281. }
  1282. .th {
  1283. height: 64rpx;
  1284. text-align: center;
  1285. font-size: 28rpx;
  1286. font-weight: 400;
  1287. color: #666666;
  1288. line-height: 64rpx;
  1289. }
  1290. }
  1291. }
  1292. .uchaserbox {
  1293. width: 100%;
  1294. height: 50vh;
  1295. overflow: hidden;
  1296. }
  1297. .uchaserboxs {
  1298. width: 100%;
  1299. height: 70vh;
  1300. }
  1301. .activecllasscet2 {
  1302. color: #2671E2;
  1303. border-bottom: 2px solid #2671E2;
  1304. }
  1305. .timeduibi {
  1306. width: 100%;
  1307. background: #FFFFFF;
  1308. padding-bottom: 10rpx;
  1309. .timeshow {
  1310. color: #666666;
  1311. width: 100%;
  1312. height: 50rpx;
  1313. font-size: 28rpx;
  1314. line-height: 50rpx;
  1315. text-indent: 30rpx;
  1316. }
  1317. }
  1318. // 顶部时间切换
  1319. .timetabct {
  1320. width: 100%;
  1321. height: 98rpx;
  1322. display: flex;
  1323. align-items: center;
  1324. border-bottom: 1px solid #E0E0E0;
  1325. }
  1326. .timetabctview {
  1327. flex: 1;
  1328. height: 100%;
  1329. display: flex;
  1330. justify-content: center;
  1331. align-items: center;
  1332. }
  1333. .timetabct view {
  1334. width: 94rpx;
  1335. text-align: center;
  1336. height: 100%;
  1337. line-height: 98rpx;
  1338. font-size: 28rpx;
  1339. font-family: PingFangSC-Regular, PingFang SC;
  1340. font-weight: 400;
  1341. color: #666666;
  1342. }
  1343. .activecllasscet {
  1344. border-bottom: 2px solid #2671E2;
  1345. }
  1346. // 对比时间切换
  1347. .timepick {
  1348. width: 100%;
  1349. height: 90rpx;
  1350. display: flex;
  1351. align-items: center;
  1352. background: #FFFFFF;
  1353. }
  1354. .timepicktime {
  1355. width: 260rpx;
  1356. height: 50rpx;
  1357. border: 1rpx solid #E0E0E0;
  1358. margin-left: 30rpx;
  1359. display: flex;
  1360. background: #FFFFFF;
  1361. }
  1362. .timepicktime>view:nth-of-type(1) {
  1363. width: 210rpx;
  1364. height: 100%;
  1365. line-height: 50rpx;
  1366. font-size: 26rpx;
  1367. font-weight: 400;
  1368. text-align: center;
  1369. }
  1370. .timepicktime>view:nth-of-type(2) {
  1371. width: 49rpx;
  1372. height: 100%;
  1373. // border-left: 1px solid #E0E0E0;
  1374. }
  1375. .timepickpick {
  1376. width: 110rpx;
  1377. height: 50rpx;
  1378. margin-left: 30rpx;
  1379. display: flex;
  1380. align-items: center;
  1381. }
  1382. .Underimg {
  1383. width: 50rpx;
  1384. height: 50rpx;
  1385. margin-top: -2rpx;
  1386. }
  1387. .timeButton {
  1388. width: 100%;
  1389. height: 60rpx;
  1390. display: flex;
  1391. color: #b1b1b1;
  1392. font-size: 28rpx;
  1393. .item {
  1394. text-align: center;
  1395. line-height: 60rpx;
  1396. padding-left: 12rpx;
  1397. padding-right: 12rpx;
  1398. border-radius: 8rpx;
  1399. border: 1px solid #E0E0E0;
  1400. margin-right: 20rpx;
  1401. &.active {
  1402. color: #FFFFFF;
  1403. background-color: #2671E2;
  1404. }
  1405. }
  1406. }
  1407. .boardbox {
  1408. width: 100%;
  1409. height: 172rpx;
  1410. display: flex;
  1411. align-items: center;
  1412. background: #F4F8FD;
  1413. border-radius: 8rpx;
  1414. margin-top: 28rpx;
  1415. .boardbox-zuo {
  1416. width: 50%;
  1417. height: 120rpx;
  1418. border-right: 1px solid #E0E0E0;
  1419. }
  1420. .boardbox-you {
  1421. width: 50%;
  1422. height: 120rpx;
  1423. }
  1424. .boardbox-text1 {
  1425. width: 100%;
  1426. text-align: center;
  1427. font-size: 28rpx;
  1428. color: #333333;
  1429. }
  1430. .boardbox-text2 {
  1431. width: 100%;
  1432. text-align: center;
  1433. font-size: 26rpx;
  1434. color: #333333;
  1435. margin-top: 10rpx;
  1436. }
  1437. }
  1438. .comparesize {
  1439. flex: 1;
  1440. font-size: 24rpx;
  1441. color: #666666;
  1442. margin-top: 10rpx;
  1443. }
  1444. .grid:nth-child(1) {
  1445. border-right: none;
  1446. border-bottom: none;
  1447. }
  1448. .grid:nth-child(2) {
  1449. // border-bottom: none;
  1450. }
  1451. .grid:nth-child(3) {
  1452. width: 50%;
  1453. }
  1454. .chart {
  1455. padding: 40rpx 0 20rpx;
  1456. min-height: 50vh;
  1457. .marketingBusiness {
  1458. display: flex;
  1459. justify-content: center;
  1460. align-items: center;
  1461. .marketingBusinesstext {
  1462. padding: 0 20rpx;
  1463. display: flex;
  1464. align-items: center;
  1465. border-radius: 8rpx;
  1466. border: 1rpx solid #666666;
  1467. overflow: hidden;
  1468. white-space: nowrap;
  1469. text-overflow: ellipsis;
  1470. .righttochoose {
  1471. margin-left: 12rpx;
  1472. width: 18rpx;
  1473. height: 24rpx;
  1474. }
  1475. }
  1476. }
  1477. }
  1478. </style>