indexOld.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <div class="dashboard-container">
  3. <div class="dashboard-editor-container">
  4. <!-- <panel-group-t /> -->
  5. <panel-group />
  6. <div class="divBox">
  7. <el-card :bordered="false" dis-hover>
  8. <div slot="header">
  9. <div class="acea-row row-middle">
  10. <el-avatar
  11. icon="el-icon-s-operation"
  12. size="small"
  13. style="color: #1890ff; background: #e6f7ff; font-size: 13px"
  14. />
  15. <span class="ivu-pl-8">统计</span>
  16. </div>
  17. </div>
  18. <el-row :gutter="24">
  19. <el-col
  20. :xl="12"
  21. :lg="12"
  22. :md="24"
  23. :sm="24"
  24. :xs="24"
  25. class="ivu-mb mb10 dashboard-console-visit"
  26. >
  27. <span class="ivu-pl-8">本月订单</span>
  28. <store-order-chart />
  29. </el-col>
  30. <el-col
  31. :xl="12"
  32. :lg="12"
  33. :md="24"
  34. :sm="24"
  35. :xs="24"
  36. class="ivu-mb mb10 dashboard-console-visit"
  37. >
  38. <span class="ivu-pl-8">本月收款</span>
  39. <store-payment-chart />
  40. </el-col>
  41. </el-row>
  42. </el-card>
  43. </div>
  44. </div>
  45. </div>
  46. </template>
  47. <script>
  48. import PanelGroup from "./dashboard/PanelGroup";
  49. import PanelGroupT from "./dashboard/PanelGroupT";
  50. import StoreOrderChart from "./dashboard/StoreOrderChart";
  51. import StorePaymentChart from "./dashboard/StorePaymentChart";
  52. // import { count } from "@/api/visits";
  53. import OrderCount from "./dashboard/OrderCount";
  54. export default {
  55. name: 'Index',
  56. components: {
  57. PanelGroup,
  58. PanelGroupT,
  59. StoreOrderChart,
  60. StorePaymentChart,
  61. OrderCount,
  62. },
  63. data() {
  64. return {
  65. }
  66. },
  67. created() {
  68. },
  69. methods: {
  70. }
  71. }
  72. </script>
  73. <style rel="stylesheet/scss" lang="scss" scoped>
  74. .dashboard-editor-container {
  75. padding: 18px 22px 22px 22px;
  76. background-color: rgb(240, 242, 245);
  77. .chart-wrapper {
  78. background: #fff;
  79. padding: 16px 16px 0;
  80. margin-bottom: 32px;
  81. }
  82. }
  83. .acea-row {
  84. ::v-deep.el-avatar--small {
  85. width: 22px;
  86. height: 22px;
  87. line-height: 22px;
  88. }
  89. }
  90. .checkTime {
  91. ::v-deep.el-radio__input {
  92. display: none;
  93. }
  94. }
  95. .ivu-pl-8 {
  96. margin-left: 8px;
  97. font-size: 14px;
  98. }
  99. .divBox {
  100. // padding: 0 20px !important;
  101. }
  102. .dashboard-console-visit {
  103. ::v-deep.el-card__header {
  104. padding: 14px 20px !important;
  105. }
  106. ul {
  107. li {
  108. list-style-type: none;
  109. margin-top: 12px;
  110. }
  111. }
  112. }
  113. .ivu-mb {
  114. margin-bottom: 10px;
  115. }
  116. </style>