yangfeng
2023-12-21 90020572d7922536f94df74bcee1ccc3393dd097
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<template>
  <BackgroundLayout>
    <template #topBlock1>
      <TimeWeather />
    </template>
    <template #topBlock2>
      <TopRightBlock />
    </template>
    <template #leftBlock1>
      <NuclearMiningCount />
    </template>
    <template #leftBlock2>
      <KeyPersonnelManage />
    </template>
    <template #rightBlock1>
      <PopulationDistributionChart />
    </template>
    <template #rightBlock2>
      <SnapFrame />
    </template>
  </BackgroundLayout>
</template>
 
<script>
import BackgroundLayout from "@/components/ChongqingPublicSecurity/BackgroundLayout";
import TimeWeather from "@/views/ChongqingPublicSecurity/components/TimeWeather";
import TopRightBlock from "@/views/ChongqingPublicSecurity/components/TopRightBlock";
import NuclearMiningCount from "@/views/ChongqingPublicSecurity/components/NuclearMiningCount";
import KeyPersonnelManage from "@/views/ChongqingPublicSecurity/components/KeyPersonnelManage";
import PopulationDistributionChart from "@/views/ChongqingPublicSecurity/components/PopulationDistributionChart";
import SnapFrame from "@/views/ChongqingPublicSecurity/components/SnapFrame";
export default {
  components: {
    BackgroundLayout,
    TimeWeather,
    TopRightBlock,
    NuclearMiningCount,
    KeyPersonnelManage,
    PopulationDistributionChart,
    SnapFrame,
  },
  props: {},
  data() {
    return {};
  },
  mounted() {
    this.getDashboard();
  },
  watch: {},
  methods: {
    async getDashboard() {
      // await getDashboard()
      //   .then((res) => {
      //     console.log(res);
      //     // 左上数值统计数据
      //     this.setLeftBlock1(res.data);
      //     // 机器开机率数据
      //     this.setleftBlock2(res.data);
      //     //  左中数据统计值
      //     this.setLeftBlock3(res.data);
      //     // 订单完成比率
      //     this.setLeftBlock4(res.data);
      //     // 工单进度统计
      //     this.setLeftBlock5(res.data);
      //     // 人员生效效率比 人员技能
      //     this.setLeftBlock6(res.data);
      //     // 设备负荷对比
      //     this.setRightBlock1(res.data);
      //     // 物料需求统计
      //     this.setRightBlock2(res.data);
      //     // 车间正品率
      //     this.setRightBlock3(res.data);
      //   })
      //   .finally(() => {
      //     setTimeout(() => {
      //       this.getDashboard();
      //     }, 300000);
      //   });
    },
  },
};
</script>
 
<style scoped lang="scss"></style>