centerRight2.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <div id="centreRight2">
  3. <div class="bg-color-black">
  4. <div class="d-flex pt-2 pl-2">
  5. <span style="color:#5cd9e8">
  6. <icon name="align-left"></icon>
  7. </span>
  8. <span class="fs-xl text mx-2">容量分析</span>
  9. </div>
  10. <div class="d-flex jc-center body-box" style=" margin-top: 0;">
  11. <dv-capsule-chart :config="config" style="width: 100%;height:2rem" />
  12. </div>
  13. <div class="d-flex pt-2 pl-2">
  14. <span style="color:#5cd9e8">
  15. <icon name="align-left"></icon>
  16. </span>
  17. <span class="fs-xl text mx-2">气体分析</span>
  18. </div>
  19. <div class="d-flex jc-center body-box" style=" margin-top: 0;">
  20. <centreRight2Chart1></centreRight2Chart1>
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import centreRight2Chart1 from "./echart/centreRight2/centreRight2Chart1";
  27. export default {
  28. data() {
  29. return {
  30. config: {
  31. data: [
  32. {
  33. name: "BCC",
  34. value: 167
  35. },
  36. {
  37. name: "公应工程",
  38. value: 67
  39. },
  40. {
  41. name: "电厂",
  42. value: 123
  43. },
  44. {
  45. name: "苯乙烯",
  46. value: 55
  47. },
  48. {
  49. name: "碳一",
  50. value: 98
  51. }
  52. ]
  53. }
  54. };
  55. },
  56. components: { centreRight2Chart1 },
  57. mounted() {},
  58. methods: {}
  59. };
  60. </script>
  61. <style lang="scss">
  62. #centreRight2 {
  63. padding: 0.0625rem;
  64. height: 5rem;
  65. min-width: 3.75rem;
  66. border-radius: 0.0625rem;
  67. .bg-color-black {
  68. padding: 0.0625rem;
  69. height: 5.0625rem;
  70. border-radius: 0.125rem;
  71. }
  72. .text {
  73. color: #c3cbde;
  74. }
  75. .body-box {
  76. border-radius: 0.125rem;
  77. overflow: hidden;
  78. }
  79. }
  80. </style>