|
@@ -29,42 +29,47 @@
|
|
|
<div>
|
|
<div>
|
|
|
<resumptionReport
|
|
<resumptionReport
|
|
|
:orgId="selectedOrg.id"
|
|
:orgId="selectedOrg.id"
|
|
|
- :api="api.resumption"
|
|
|
|
|
|
|
+ :maxDiagram="maxDiagram"
|
|
|
:orgName="selectedOrg.name"
|
|
:orgName="selectedOrg.name"
|
|
|
- title="日常安全履职"
|
|
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
<question :orgId="selectedOrg.id" />
|
|
<question :orgId="selectedOrg.id" />
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
- <ga38-chart :orgId="selectedOrg.id" />
|
|
|
|
|
|
|
+ <ga38-chart
|
|
|
|
|
+ :orgId="selectedOrg.id"
|
|
|
|
|
+ :maxDiagram="maxDiagram"
|
|
|
|
|
+ :orgName="selectedOrg.name"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
<div>
|
|
<div>
|
|
|
<div>
|
|
<div>
|
|
|
- <mapChart :orgId="selectedOrg.id"/>
|
|
|
|
|
|
|
+ <mapChart :orgId="selectedOrg.id" />
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
- <comprehesive-chart :orgId="selectedOrg.id"/>
|
|
|
|
|
|
|
+ <comprehesive-chart :orgId="selectedOrg.id" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
<div>
|
|
<div>
|
|
|
- <safety-check-chart
|
|
|
|
|
- :orgId="selectedOrg.id"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <safety-check-chart :orgId="selectedOrg.id" />
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
<drill-chart
|
|
<drill-chart
|
|
|
:orgId="selectedOrg.id"
|
|
:orgId="selectedOrg.id"
|
|
|
|
|
+ :maxDiagram="maxDiagram"
|
|
|
|
|
+ :orgName="selectedOrg.name"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
<eduChart
|
|
<eduChart
|
|
|
:orgId="selectedOrg.id"
|
|
:orgId="selectedOrg.id"
|
|
|
|
|
+ :maxDiagram="maxDiagram"
|
|
|
|
|
+ :orgName="selectedOrg.name"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -80,15 +85,15 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
-import resumptionReport from "./charts/resumption/report_bar.vue";
|
|
|
|
|
|
|
+import resumptionReport from "./charts/resumption/report.vue";
|
|
|
import question from "./charts/question/report.vue";
|
|
import question from "./charts/question/report.vue";
|
|
|
import mapChart from "./charts/map/report.vue";
|
|
import mapChart from "./charts/map/report.vue";
|
|
|
// import orgStatis from "./charts/org/report.vue";
|
|
// import orgStatis from "./charts/org/report.vue";
|
|
|
-import ga38Chart from './charts/ga38/report.vue'
|
|
|
|
|
-import comprehesiveChart from './charts/comprehesive/report.vue'
|
|
|
|
|
-import safetyCheckChart from './charts/safetycheck/report.vue'
|
|
|
|
|
-import drillChart from './charts/drill/report.vue'
|
|
|
|
|
-import eduChart from './charts/edu/report.vue'
|
|
|
|
|
|
|
+import ga38Chart from "./charts/ga38/report.vue";
|
|
|
|
|
+import comprehesiveChart from "./charts/comprehesive/report.vue";
|
|
|
|
|
+import safetyCheckChart from "./charts/safetycheck/report.vue";
|
|
|
|
|
+import drillChart from "./charts/drill/report.vue";
|
|
|
|
|
+import eduChart from "./charts/edu/report.vue";
|
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
|
import * as api from "@/api/board/cockpit.js";
|
|
import * as api from "@/api/board/cockpit.js";
|
|
|
|
|
|
|
@@ -105,7 +110,8 @@ export default {
|
|
|
id: null,
|
|
id: null,
|
|
|
name: null,
|
|
name: null,
|
|
|
},
|
|
},
|
|
|
- orgCascaderSelectedIds:[],
|
|
|
|
|
|
|
+ maxDiagram: null,
|
|
|
|
|
+ orgCascaderSelectedIds: [],
|
|
|
electricHost: undefined,
|
|
electricHost: undefined,
|
|
|
api,
|
|
api,
|
|
|
};
|
|
};
|
|
@@ -119,7 +125,7 @@ export default {
|
|
|
comprehesiveChart,
|
|
comprehesiveChart,
|
|
|
safetyCheckChart,
|
|
safetyCheckChart,
|
|
|
drillChart,
|
|
drillChart,
|
|
|
- eduChart
|
|
|
|
|
|
|
+ eduChart,
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
computed: {
|
|
@@ -187,8 +193,8 @@ export default {
|
|
|
id: this.orgId,
|
|
id: this.orgId,
|
|
|
name: this.orgName,
|
|
name: this.orgName,
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
- this.orgCascaderSelectedIds=[this.orgId]
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this.orgCascaderSelectedIds = [this.orgId];
|
|
|
},
|
|
},
|
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
|
clearInterval(this.orgtimer);
|
|
clearInterval(this.orgtimer);
|
|
@@ -222,9 +228,14 @@ export default {
|
|
|
|
|
|
|
|
this.selectedOrg = {
|
|
this.selectedOrg = {
|
|
|
id: checked[0].data.id,
|
|
id: checked[0].data.id,
|
|
|
- path:checked[0].data.path,
|
|
|
|
|
name: checked[0].data.shortName,
|
|
name: checked[0].data.shortName,
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+ if (checked[0].data.type == 3) {
|
|
|
|
|
+ this.maxDiagram = 10;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.maxDiagram = null;
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
@@ -524,11 +535,11 @@ export default {
|
|
|
</style>
|
|
</style>
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
.board-org-popper {
|
|
.board-org-popper {
|
|
|
- .el-cascader-menu__wrap {
|
|
|
|
|
|
|
+ .el-cascader-menu__wrap {
|
|
|
height: auto !important;
|
|
height: auto !important;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .el-scrollbar__wrap {
|
|
|
|
|
|
|
+ .el-scrollbar__wrap {
|
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|