workMeeting.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <div>
  3. <div class="border-shadow">
  4. <query></query>
  5. <card :title="'核心指标'">
  6. <CoreData :data-list="coreData"></CoreData>
  7. </card>
  8. </div>
  9. <a-row :style="{ marginTop: '15px' }">
  10. <a-col :span="18">
  11. <div class="left border-shadow">
  12. <card :title="'会议室管理'"></card>
  13. <div class="fjfbt"></div>
  14. </div>
  15. </a-col>
  16. <a-col :span="6">
  17. <div class="right border-shadow"></div>
  18. </a-col>
  19. </a-row>
  20. </div>
  21. </template>
  22. <script>
  23. import query from "@/components/common/query.vue";
  24. import card from "@/components/common/card.vue";
  25. export default {
  26. components: {
  27. query,
  28. card,
  29. },
  30. data() {
  31. const listData = [];
  32. for (let i = 0; i < 100; i++) {
  33. listData.push({
  34. index: i + 1,
  35. name: "物理饭",
  36. department: "技术开发部门",
  37. time: "2023.02.03 00:00:00",
  38. });
  39. }
  40. return {
  41. options: [
  42. {
  43. value: 1,
  44. name: "中讯1",
  45. },
  46. {
  47. value: 2,
  48. name: "中讯2",
  49. },
  50. ],
  51. floors: [
  52. {
  53. value: 7,
  54. name: "7层",
  55. },
  56. {
  57. value: 8,
  58. name: "8层",
  59. },
  60. ],
  61. columns: [
  62. { title: "序号", dataIndex: "index", key: "1", width: 48 },
  63. { title: "姓名", dataIndex: "name", key: "2", width: 60 },
  64. { title: "部门", dataIndex: "department", key: "3", width: 80 },
  65. { title: "最后进入时间", dataIndex: "time", key: "4", width: 90 },
  66. ],
  67. listData: listData,
  68. coreData: [
  69. {
  70. title: "会议室饱和度",
  71. num: "90%",
  72. unit: "/月",
  73. historyDesc: "同比",
  74. historyNum: 0.4,
  75. },
  76. {
  77. title: "会议室占用率",
  78. num: "80%",
  79. unit: "/天",
  80. historyDesc: "同比",
  81. historyNum: 0.4,
  82. },
  83. {
  84. title: "会议室占用率",
  85. num: "80%",
  86. unit: "/天",
  87. historyDesc: "同比",
  88. historyNum: 0.4,
  89. },
  90. {
  91. title: "人均成本(会议)",
  92. num: 80,
  93. unit: "元/人/月",
  94. historyDesc: "同比",
  95. historyNum: 0.4,
  96. },
  97. {
  98. type: 1,
  99. isHighLight: false,
  100. title: "值得关注",
  101. content: "增加会议室",
  102. },
  103. ],
  104. };
  105. },
  106. mounted() {},
  107. methods: {
  108. handleChange(value) {
  109. console.log(`selected ${value}`);
  110. },
  111. getTimeRange() {
  112. this.$refs.timeRange.getTimeRange(); // 获取时间段
  113. },
  114. },
  115. };
  116. </script>
  117. <style lang="less" scoped>
  118. .left {
  119. padding-right: 15px;
  120. margin-right: 5px;
  121. }
  122. .right {
  123. padding-left: 15px;
  124. margin-left: 5px;
  125. }
  126. .fjfbt,
  127. .drmj_list {
  128. height: 50px;
  129. height: 775px;
  130. .total {
  131. font-size: 16px;
  132. font-weight: bold;
  133. height: 50px;
  134. span {
  135. font-size: 26px;
  136. }
  137. }
  138. }
  139. </style>