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.

67 lines
1.4 KiB

2 weeks ago
2 months ago
2 months ago
2 months ago
4 months ago
4 months ago
4 months ago
2 months ago
2 weeks ago
  1. <template>
  2. <!-- 头部 -->
  3. <el-header class="header">
  4. <div class="title">数据总览</div>
  5. </el-header>
  6. <div style="height: 100vh;">
  7. <el-row class="cards" >
  8. <el-col :span="14">
  9. <GoldManagement/>
  10. </el-col>
  11. <!-- 右上格子占12列 -->
  12. <el-col :span="10">
  13. <CashManagement />
  14. </el-col>
  15. </el-row>
  16. <el-row class="graphs">
  17. <el-col :span="24">
  18. <GoldGraph/>
  19. </el-col>
  20. </el-row>
  21. </div>
  22. </template>
  23. <script setup>
  24. import { ref, onMounted } from 'vue'
  25. import API from '@/util/http'
  26. import GoldManagement from "@/components/workspace/GoldManagement.vue"
  27. import CashManagement from "@/components/workspace/CashManagement.vue"
  28. import GoldGraph from "@/components/workspace/GoldGraph.vue"
  29. </script>
  30. <style scoped>
  31. .header {
  32. /* 将纯色背景替换为线性渐变 */
  33. background: linear-gradient(
  34. 90deg,
  35. rgba(228, 240, 252, 1) 20%,
  36. rgba(190, 218, 247, 1) 50%,
  37. rgba(228, 240, 252, 1) 100%
  38. );
  39. height: 6vh;
  40. border-radius: 12px;
  41. margin-bottom: 4px;
  42. box-shadow: 0 2px 5px rgba(8, 4, 4, 0.1);
  43. /* 添加阴影增强层次感 */
  44. z-index: 80;
  45. display: flex;
  46. align-items: center;
  47. justify-content: center;
  48. }
  49. .title {
  50. width: 136px;
  51. color: #040a2d;
  52. font-family: "PingFang SC";
  53. font-size: 34px;
  54. font-style: normal;
  55. font-weight: 900;
  56. line-height: 31.79px;
  57. text-align: center;
  58. }
  59. </style>