index.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view>
  3. <working-achievement :list="clueStateList" type="2" ref="workingAchievementRef"></working-achievement>
  4. <briefReport ref="teamReport" type="2"></briefReport>
  5. </view>
  6. </template>
  7. <script>
  8. import workingAchievement from "../components/workingAchievement/index.vue";
  9. import briefReport from "../components/briefReport/index.vue";
  10. import dayjs from "dayjs";
  11. import { cloneDeep } from "lodash";
  12. export default {
  13. components : {
  14. workingAchievement,
  15. briefReport
  16. },
  17. data() {
  18. return {
  19. sumStatData: {
  20. statCost: "-",
  21. attributionConvertCnt: "-",
  22. conversionCost: "-",
  23. tboCost: "-",
  24. tboCnt: "-",
  25. tboRate: "-",
  26. invalidCnt: "-",
  27. invalidRate: "-"
  28. },
  29. clueStateList : [],
  30. }
  31. },
  32. methods: {
  33. async teamReportInit(){
  34. this.$refs.teamReport.handleInit();
  35. },
  36. refresh(){
  37. this.$refs.workingAchievementRef.dateSelectChange({type : "2"});
  38. this.$refs.teamReport.dateSelectChange({type : "2"});
  39. }
  40. },
  41. mounted() {
  42. }
  43. }
  44. </script>
  45. <style scoped lang="scss">
  46. .main_warp {
  47. .promotion_stats_wrap {
  48. display: flex;
  49. flex-wrap: wrap;
  50. .promotion_stats {
  51. box-sizing: border-box;
  52. width: 33%;
  53. text-align: left;
  54. padding: 20rpx;
  55. .stats_label {
  56. font-size: 26rpx;
  57. color: #666666;
  58. }
  59. .stats_value {
  60. font-size: 30rpx;
  61. font-weight: bold;
  62. }
  63. }
  64. }
  65. }
  66. </style>