diff --git a/src/views/projectAdmin/dataBoard/environment.vue b/src/views/projectAdmin/dataBoard/environment.vue
index ad4629ac..63593696 100644
--- a/src/views/projectAdmin/dataBoard/environment.vue
+++ b/src/views/projectAdmin/dataBoard/environment.vue
@@ -7,7 +7,7 @@
{{$t('message.dataBoard.environmentMonitor')}}
@@ -488,31 +488,7 @@
{{$t('message.dataBoard.todayAlarmStatistics')}}
-
-environmentWatch
+
+
+
+
+
+
+
{{ $t("message.projectSummary.actor") }}
+
+
+
+
{{ $t("message.projectSummary.fine") }}
+
+
+
+
+ {{ $t("message.projectSummary.mildContamination") }}
+
+
+
+
+
+ {{ $t("message.projectSummary.middleLevelPollution") }}
+
+
+
+
+
+ {{ $t("message.projectSummary.actheavyPollutionor") }}
+
+
+
+
+
+ {{ $t("message.projectSummary.severeContamination") }}
+
+
+
-
-
-
\ No newline at end of file
diff --git a/src/views/projectAdmin/dataBoard/homePage/personOverview.vue b/src/views/projectAdmin/dataBoard/homePage/personOverview.vue
index 100bd503..e522d949 100644
--- a/src/views/projectAdmin/dataBoard/homePage/personOverview.vue
+++ b/src/views/projectAdmin/dataBoard/homePage/personOverview.vue
@@ -113,7 +113,8 @@ export default {
}
.manager {
.manager-title {
- margin-bottom: 15px;
+ margin-top: 6px;
+ margin-bottom: 8px;
display: flex;
align-items: center;
&::before {
@@ -127,10 +128,12 @@ export default {
}
.manager-persons {
display: flex;
+ margin-left: 20px;
.person {
position: relative;
width: 86px;
height: 86px;
+ margin-right: 25px;
background: url(~@/assets/images/dataBoard/fc857081d1aded7077e783a698bd1d6.png);
&:nth-child(2) {
background: url(~@/assets/images/dataBoard/9f4e0bd5a0baebf3e96d512b208527b.png);
diff --git a/src/views/projectAdmin/dataBoard/homePage/qualityManage.vue b/src/views/projectAdmin/dataBoard/homePage/qualityManage.vue
index e2082d55..6b979d11 100644
--- a/src/views/projectAdmin/dataBoard/homePage/qualityManage.vue
+++ b/src/views/projectAdmin/dataBoard/homePage/qualityManage.vue
@@ -44,65 +44,6 @@ export default {
}
});
},
- createPieChart(data,color, title) {
- let that = this;
- let myChart = echarts.init(this.$refs.safeChart);
- var option = {
- color: color ? color : ["#5181F6", "#61D2B9", "#F67F51", "#7851F6"],
- title: {
- show: true,
- text: data[0].value + data[1].value,
- x: "23%",
- y: "32%",
- z: 5,
- textAlign: "center",
- textStyle: {
- color: "rgba(255, 255, 255, 1)",
- fontSize: 20
- },
- subtext: title,
- subtextStyle: {
- color: "rgba(255, 255, 255, 0.8)",
- fontSize: 14
- }
- },
- grid: {
- right: 0
- },
- legend: {
- type: 'scroll',
- orient: 'vertical',
- right: '50',
- top: 'center',
- itemWidth: 8, // 设置宽度
- itemHeight: 8, // 设置高度
- selectedMode: true,
- icon: 'circle',
- textStyle: {
- color: '#c7c7a7',
- fontSize: 14,
- }
- },
- series: [
- {
- name: "",
- type: "pie",
- radius: ["60%", "80%"],
- center: ['25%', '50%'],
- avoidLabelOverlap: false,
- label: {
- show: false,
- position: "center"
- },
- labelLine: {
- show: false
- },
- data: data
- }
- ]
- };
- myChart.setOption(option);
- }
}
};
diff --git a/src/views/projectAdmin/dataBoard/homePage/safeManage.vue b/src/views/projectAdmin/dataBoard/homePage/safeManage.vue
index be32c408..e0d03136 100644
--- a/src/views/projectAdmin/dataBoard/homePage/safeManage.vue
+++ b/src/views/projectAdmin/dataBoard/homePage/safeManage.vue
@@ -6,8 +6,7 @@
diff --git a/src/views/projectAdmin/dataBoard/homePage/smartDevices.vue b/src/views/projectAdmin/dataBoard/homePage/smartDevices.vue
index 7808b482..a33db8c7 100644
--- a/src/views/projectAdmin/dataBoard/homePage/smartDevices.vue
+++ b/src/views/projectAdmin/dataBoard/homePage/smartDevices.vue
@@ -1,15 +1,327 @@
+
-
-smartDevices
-
+
-
-
\ No newline at end of file
diff --git a/src/views/projectAdmin/dataBoard/index.vue b/src/views/projectAdmin/dataBoard/index.vue
index 0bdc72dc..6cb4cf24 100644
--- a/src/views/projectAdmin/dataBoard/index.vue
+++ b/src/views/projectAdmin/dataBoard/index.vue
@@ -22,30 +22,30 @@
ref="echart2"
>
-
-
+
-
+
-
+
+ >
@@ -63,6 +63,7 @@
item.index == optionListIndex && enabledProjectV2 == 4
}"
v-for="(item, index) in $t('message.companyDiagram.optionList')"
+ :key="index"
>
{{ item.name }}
@@ -434,8 +435,7 @@
class="blockContent"
>
-
-
+
@@ -498,6 +498,8 @@ const echarts5 = require("echarts");
import safeManage from "./homePage/safeManage"
import qualityManage from "./homePage/qualityManage"
import airQulity from "./components/airQulity"
+import smartDevices from "./homePage/smartDevices"
+import environmentWatch from "./homePage/environmentWatch.vue"
import devNumChart from "@/components/chart/devNumChart";
import airQulityChart from "@/components/chart/airQulityChart";
import { getWorkerStatisticsCountApi } from "@/assets/js/api/company/project";
@@ -526,7 +528,7 @@ import ProjectInfo from './homePage/projectInfo'
import PersonOverview from './homePage/personOverview'
export default {
- components: { devNumChart, airQulityChart, ProjectInfo, PersonOverview ,safeManage , qualityManage ,airQulity},
+ components: { devNumChart, airQulityChart, ProjectInfo, PersonOverview ,safeManage , qualityManage ,airQulity,smartDevices ,environmentWatch},
data() {
return {
COMPANY: '',
@@ -682,8 +684,6 @@ export default {
this.enabledProjectV2 = enabledProjectV2
this.getWorkerStatisticsCount(1)
- // this.getSecureData()
- this.getQualityData()
this.loadWeather()
this.getAlarmList()
this.getAlarmInfor()
@@ -932,51 +932,6 @@ export default {
}
})
},
-
- //获取安全管理数据
- // getSecureData() {
- // let data = {
- // projectSn: this.$store.state.projectSn,
- // };
- // selectSecurityManageStatisticsApi(data).then((res) => {
- // let total = res.result.total;
- // this.secureData.rectificationNum = total.rectificationNum;
- // this.secureData.completeNum = total.totalNum - total.rectificationNum;
- // this.createPieChart(
- // [
- // { value: total.totalNum - total.rectificationNum, name: "" },
- // { value: total.rectificationNum, name: "" },
- // ],
- // this.$refs.safeChart,
- // ["rgba(120, 111, 240, 1)", "rgba(254, 108, 127, 1)"],
- // this.$t("message.companyDiagram.safeQuestion")
- // // "安全问题数"
- // );
- // });
- // },
- //获取质量管理数据
- getQualityData() {
- let data = {
- projectSn: this.$store.state.projectSn
- }
- selectQualityStatisticsApi(data).then((res) => {
- let total = res.result.total
- this.qualityData.rectificationNum = total.rectificationNum
- this.qualityData.completeNum = total.totalNum - total.rectificationNum
- if (COMPANY != 'longguang') {
- this.createPieChart(
- [
- { value: total.totalNum - total.rectificationNum, name: '' },
- { value: total.rectificationNum, name: '' }
- ],
- this.$refs.qulityChart,
- ['rgba(81, 129, 246, 1)', 'rgba(92, 226, 246, 1)'],
- this.$t('message.companyDiagram.qualityQuestion')
- // "质量问题数"
- )
- }
- })
- },
//获取项目详情
getDataDateils() {
let data = {
@@ -1002,6 +957,7 @@ export default {
(res) => {
console.log(res)
this.statisticsCount = res.result
+ console.log('----------------',this.statisticsCount)
this.totalDevNum =
this.statisticsCount.devcount.ufaceDevNum +
this.statisticsCount.devcount.videoNum +