workOverview.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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', height: '835px' }">
  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">
  18. <card :title="'当日门禁进出人员'"> </card>
  19. <div class="drmj_list">
  20. <div class="total">累计进入: <span>400</span>人</div>
  21. <a-table
  22. :rowKey="
  23. (record, index) => {
  24. return index;
  25. }
  26. "
  27. :columns="columns"
  28. :data-source="listData"
  29. :pagination="false"
  30. :scroll="{ y: 635 }"
  31. >
  32. </a-table>
  33. </div>
  34. </div>
  35. </a-col>
  36. </a-row>
  37. </div>
  38. </template>
  39. <script>
  40. import query from "@/components/common/query.vue";
  41. import card from "@/components/common/card.vue";
  42. export default {
  43. components: {
  44. query,
  45. card,
  46. },
  47. data() {
  48. const listData = [];
  49. for (let i = 0; i < 100; i++) {
  50. listData.push({
  51. index: i + 1,
  52. name: "物理饭",
  53. department: "技术开发部门",
  54. time: "2023.02.03 00:00:00",
  55. });
  56. }
  57. return {
  58. options: [
  59. {
  60. value: 1,
  61. name: "中讯1",
  62. },
  63. {
  64. value: 2,
  65. name: "中讯2",
  66. },
  67. ],
  68. floors: [
  69. {
  70. value: 7,
  71. name: "7层",
  72. },
  73. {
  74. value: 8,
  75. name: "8层",
  76. },
  77. ],
  78. columns: [
  79. { title: "序号", dataIndex: "index", key: "1", width: 48 },
  80. { title: "姓名", dataIndex: "name", key: "2", width: 60 },
  81. { title: "部门", dataIndex: "department", key: "3", width: 80 },
  82. { title: "最后进入时间", dataIndex: "time", key: "4", width: 95 },
  83. ],
  84. listData: listData,
  85. coreData: [
  86. {
  87. title: "本层工位使用率",
  88. num: "90%",
  89. unit: "",
  90. // historyDesc: "同比",
  91. // historyNum: 0.4,
  92. },
  93. {
  94. title: "工位总数",
  95. num: 500,
  96. unit: "个",
  97. // historyDesc: "同比",
  98. // historyNum: 0.4,
  99. },
  100. {
  101. title: "办公区面积",
  102. num: 380,
  103. unit: "m<sup>2</sup>",
  104. // historyDesc: "同比",
  105. // historyNum: -0.4,
  106. },
  107. {
  108. title: "会议室面积",
  109. num: 80,
  110. unit: "m<sup>2</sup>",
  111. // historyDesc: "同比",
  112. // historyNum: 0.4,
  113. },
  114. {
  115. title: "领导办公室面积",
  116. num: 40,
  117. unit: "m<sup>2</sup>",
  118. // historyDesc: "同比",
  119. // historyNum: 0.4,
  120. },
  121. {
  122. title: "其他区域面积",
  123. num: 20,
  124. unit: "m<sup>2</sup>",
  125. // historyDesc: "同比",
  126. // historyNum: 0.4,
  127. },
  128. // {
  129. // type: 1,
  130. // isHighLight: false,
  131. // title: "值得关注",
  132. // content: "testhnjlkjn",
  133. // },
  134. ],
  135. };
  136. },
  137. mounted() {},
  138. methods: {
  139. handleChange(value) {
  140. console.log(`selected ${value}`);
  141. },
  142. getTimeRange() {
  143. this.$refs.timeRange.getTimeRange(); // 获取时间段
  144. },
  145. },
  146. };
  147. </script>
  148. <style lang="less" scoped>
  149. .left {
  150. padding-right: 15px;
  151. margin-right: 5px;
  152. }
  153. .right {
  154. padding-left: 15px;
  155. margin-left: 5px;
  156. }
  157. .fjfbt,
  158. .drmj_list {
  159. height: 50px;
  160. height: 775px;
  161. .total {
  162. font-size: 16px;
  163. font-weight: bold;
  164. height: 50px;
  165. span {
  166. font-size: 26px;
  167. }
  168. }
  169. }
  170. </style>