@@ -558,6 +576,9 @@ export default {
teamListData: [],
departmentListData: [],
safeData: {},
+ searchForm: {
+ enterpriseId: "",
+ },
};
},
mounted() {
@@ -728,7 +749,7 @@ export default {
// end: 50, // 数据窗口范围的结束百分比
height: 10, // 滑动条组件高度
startValue: xData.length - 1,
- endValue: xData.length - 9,
+ endValue: xData.length - 9,
bottom: 5, // 距离图表区域下边的距离
showDetail: false, // 拖拽时是否显示详情
showDataShadow: false, // 是否在组件中显示数据阴影
@@ -899,11 +920,14 @@ export default {
that.safeWorkList = res.result.list || [];
});
},
+ searchFormChange(){
+ this.selectPersonTypeAndEduStatistics();
+ },
//查询人员类型和教育统计
selectPersonTypeAndEduStatistics() {
getPersonTypeAndEduStatisticsApi({
projectSn: this.$store.state.projectSn,
- userEnterpriseId: this.$store.state.userInfo.userEnterpriseId,
+ userEnterpriseId: this.searchForm.enterpriseId ? this.searchForm.enterpriseId : this.$store.state.userInfo.userEnterpriseId,
}).then((res) => {
console.log(res);
this.totalPersonNum = res.result.personType.toaltPerson.totalPerson; //总人数
@@ -1587,6 +1611,9 @@ export default {
display: flex;
align-items: center;
}
+.headSelect {
+ margin-left: 20px;
+}
.personnelOverview {
width: 100%;
height: 100%;
@@ -1682,6 +1709,9 @@ export default {
width: 100%;
height: calc(100% - 50px);
}
+ .headSelectEcharts {
+ height: calc(100% - 80px);
+ }
.scroll {
width: 100%;
padding: 15px 0 0;