|
@@ -1,48 +1,58 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <div class="border-shadow">
|
|
|
+ <div class="workOverview">
|
|
|
+ <div class="page-query-core">
|
|
|
<query></query>
|
|
|
<card :title="'核心指标'">
|
|
|
<CoreData :data-list="coreData"></CoreData>
|
|
|
</card>
|
|
|
</div>
|
|
|
- <a-row :style="{ marginTop: '15px', height: '835px' }">
|
|
|
- <a-col :span="18">
|
|
|
- <div class="left border-shadow">
|
|
|
- <card :title="'房间分布'"></card>
|
|
|
- <div class="fjfbt"></div>
|
|
|
- </div>
|
|
|
- </a-col>
|
|
|
- <a-col :span="6">
|
|
|
- <div class="right border-shadow">
|
|
|
- <card :title="'当日门禁进出人员'"> </card>
|
|
|
- <div class="drmj_list">
|
|
|
- <div class="total">累计进入: <span>400</span>人</div>
|
|
|
- <a-table
|
|
|
- :rowKey="
|
|
|
- (record, index) => {
|
|
|
- return index;
|
|
|
- }
|
|
|
- "
|
|
|
- :columns="columns"
|
|
|
- :data-source="listData"
|
|
|
- :pagination="false"
|
|
|
- :scroll="{ y: 635 }"
|
|
|
- >
|
|
|
- </a-table>
|
|
|
+
|
|
|
+ <div class="workOverview-div">
|
|
|
+ <a-row>
|
|
|
+ <a-col :span="18">
|
|
|
+ <div class="workOverview-room">
|
|
|
+ <card :title="'房间分布'">
|
|
|
+ <div class="fjfbt" style="overflow-y: auto">
|
|
|
+ <WorkRoomDistribute/>
|
|
|
+ </div>
|
|
|
+ </card>
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="6">
|
|
|
+ <div class="workOverview-door">
|
|
|
+ <card>
|
|
|
+ <template #title>
|
|
|
+ <div style="color: #333333;display: inline-block;">当日门禁进出人员</div>
|
|
|
+ </template>
|
|
|
+ <template #title-extra>
|
|
|
+ <div class="total">400<span>人</span></div>
|
|
|
+ </template>
|
|
|
+ <div class="workOverview-door-list">
|
|
|
+ <a-table :rowKey=" (record, index) => index"
|
|
|
+ :columns="columns"
|
|
|
+ :data-source="listData"
|
|
|
+ :pagination="false"
|
|
|
+ :scroll="{ y: 600 }"
|
|
|
+ >
|
|
|
+ </a-table>
|
|
|
+ </div>
|
|
|
+ </card>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import query from "@/components/common/query.vue";
|
|
|
import card from "@/components/common/card.vue";
|
|
|
+import WorkRoomDistribute from "@/components/work/overview/component/workRoomDistribute.vue";
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
query,
|
|
|
card,
|
|
|
+ WorkRoomDistribute,
|
|
|
},
|
|
|
data() {
|
|
|
const listData = [];
|
|
@@ -76,65 +86,49 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
columns: [
|
|
|
- { title: "序号", dataIndex: "index", key: "1", width: 48 },
|
|
|
- { title: "姓名", dataIndex: "name", key: "2", width: 60 },
|
|
|
- { title: "部门", dataIndex: "department", key: "3", width: 80 },
|
|
|
- { title: "最后进入时间", dataIndex: "time", key: "4", width: 95 },
|
|
|
+ {title: "序号", dataIndex: "index", key: "1", width: 48},
|
|
|
+ {title: "姓名", dataIndex: "name", key: "2", width: 60},
|
|
|
+ {title: "部门", dataIndex: "department", key: "3", width: 80},
|
|
|
+ {title: "最后进入时间", dataIndex: "time", key: "4", width: 95},
|
|
|
],
|
|
|
listData: listData,
|
|
|
coreData: [
|
|
|
{
|
|
|
+ type: 1,
|
|
|
title: "本层工位使用率",
|
|
|
- num: "90%",
|
|
|
- unit: "",
|
|
|
- // historyDesc: "同比",
|
|
|
- // historyNum: 0.4,
|
|
|
+ content: "90",
|
|
|
+ numDesc: "%",
|
|
|
},
|
|
|
{
|
|
|
- title: "工位总数",
|
|
|
- num: 500,
|
|
|
- unit: "个",
|
|
|
- // historyDesc: "同比",
|
|
|
- // historyNum: 0.4,
|
|
|
+ type: 1,
|
|
|
+ title: "工位总数(个)",
|
|
|
+ content: 500,
|
|
|
},
|
|
|
{
|
|
|
- title: "办公区面积",
|
|
|
- num: 380,
|
|
|
- unit: "m<sup>2</sup>",
|
|
|
- // historyDesc: "同比",
|
|
|
- // historyNum: -0.4,
|
|
|
+ type: 1,
|
|
|
+ title: "办公区面积(m²)",
|
|
|
+ content: 380,
|
|
|
},
|
|
|
{
|
|
|
- title: "会议室面积",
|
|
|
- num: 80,
|
|
|
- unit: "m<sup>2</sup>",
|
|
|
- // historyDesc: "同比",
|
|
|
- // historyNum: 0.4,
|
|
|
+ type: 1,
|
|
|
+ title: "会议室面积(m²)",
|
|
|
+ content: 80,
|
|
|
},
|
|
|
{
|
|
|
- title: "领导办公室面积",
|
|
|
- num: 40,
|
|
|
- unit: "m<sup>2</sup>",
|
|
|
- // historyDesc: "同比",
|
|
|
- // historyNum: 0.4,
|
|
|
+ type: 1,
|
|
|
+ title: "领导办公室面积(m²)",
|
|
|
+ content: 40,
|
|
|
},
|
|
|
{
|
|
|
- title: "其他区域面积",
|
|
|
- num: 20,
|
|
|
- unit: "m<sup>2</sup>",
|
|
|
- // historyDesc: "同比",
|
|
|
- // historyNum: 0.4,
|
|
|
+ type: 1,
|
|
|
+ title: "其他区域面积(m²)",
|
|
|
+ content: 20,
|
|
|
},
|
|
|
- // {
|
|
|
- // type: 1,
|
|
|
- // isHighLight: false,
|
|
|
- // title: "值得关注",
|
|
|
- // content: "testhnjlkjn",
|
|
|
- // },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
- mounted() {},
|
|
|
+ mounted() {
|
|
|
+ },
|
|
|
methods: {
|
|
|
handleChange(value) {
|
|
|
console.log(`selected ${value}`);
|
|
@@ -145,28 +139,55 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-.left {
|
|
|
- padding-right: 15px;
|
|
|
- margin-right: 5px;
|
|
|
-}
|
|
|
-.right {
|
|
|
- padding-left: 15px;
|
|
|
- margin-left: 5px;
|
|
|
-}
|
|
|
-.fjfbt,
|
|
|
-.drmj_list {
|
|
|
- height: 50px;
|
|
|
- height: 775px;
|
|
|
+.workOverview {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ padding-bottom: 15px;
|
|
|
+
|
|
|
.total {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- height: 50px;
|
|
|
+ font-size: 20px;
|
|
|
span {
|
|
|
- font-size: 26px;
|
|
|
+ color: #B2B2B2;
|
|
|
+ font-size: 14px;
|
|
|
+ display: inline-block;
|
|
|
+ margin-left: 30px;
|
|
|
+ margin-right: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .workOverview-div {
|
|
|
+ margin-top: 12px;
|
|
|
+
|
|
|
+ .workOverview-room {
|
|
|
+ margin-right: 6px;
|
|
|
+ padding-bottom: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .workOverview-door {
|
|
|
+ height: 728px;
|
|
|
+ margin-left: 6px;
|
|
|
+ padding-bottom: 15px;
|
|
|
+ background-color: #ffffff;
|
|
|
+ }
|
|
|
+ .workOverview-door-list {
|
|
|
+ padding: 8px 12px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+//.left {
|
|
|
+// height: 700px;
|
|
|
+// margin-right: 6px;
|
|
|
+//}
|
|
|
+//.right {
|
|
|
+// height: 700px;
|
|
|
+// margin-left: 6px;
|
|
|
+// background-color: #ffffff;
|
|
|
+//}
|
|
|
+
|
|
|
+//.drmj_list {
|
|
|
+//}
|
|
|
</style>
|