|
@@ -16,17 +16,7 @@
|
|
|
</el-col> -->
|
|
|
<el-col :span="12" class="h-full-calc">
|
|
|
<el-card class="h-40">
|
|
|
- <RiskIdentification
|
|
|
- v-if="chartOptions1.data && chartOptions1.data.length > 0"
|
|
|
- :chartOptions="chartOptions1"
|
|
|
- height="95%"
|
|
|
- ></RiskIdentification>
|
|
|
- <div
|
|
|
- style="text-align: center; color: #fff; line-height: 200px"
|
|
|
- v-else
|
|
|
- >
|
|
|
- 暂无数据
|
|
|
- </div>
|
|
|
+ <RiskIdentification height="95%"></RiskIdentification>
|
|
|
</el-card>
|
|
|
<el-card class="h-60 mt-10">
|
|
|
<TargetSituation height="100%"></TargetSituation>
|
|
@@ -41,7 +31,7 @@ import MapHy from "./components/map/index.vue";
|
|
|
import TargetSituation from "./components/TargetSituation/index.vue";
|
|
|
import RiskIdentification from "./components/RiskIdentification/index.vue";
|
|
|
import PointsRanking from "./components/PointsRanking/index.vue";
|
|
|
-import { getWorkRiskStatistics } from "@/api/powerdistribution/home";
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
TargetSituation,
|
|
@@ -60,22 +50,8 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.init();
|
|
|
- },
|
|
|
- methods: {
|
|
|
- async init() {
|
|
|
- const data1 = await getWorkRiskStatistics();
|
|
|
- this.chartOptions1.data = (data1 || []).map((ite) => ({
|
|
|
- name: ite.riskName,
|
|
|
- value: ite.riskNum,
|
|
|
- }));
|
|
|
- this.chartOptions2.data = [120, 200, 150, 80, 70, 110];
|
|
|
- this.chartOptions2.xData = Array(12)
|
|
|
- .fill(0)
|
|
|
- .map((it, i) => `${i + 1}月`);
|
|
|
- },
|
|
|
- },
|
|
|
+ mounted() {},
|
|
|
+ methods: {},
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
@@ -129,5 +105,29 @@ export default {
|
|
|
color: white;
|
|
|
background-color: transparent !important;
|
|
|
}
|
|
|
+ /* 修改下拉框默认状态下的背景色 */
|
|
|
+ .el-select,
|
|
|
+ .el-date-editor {
|
|
|
+ .el-input__inner {
|
|
|
+ color: #fff !important;
|
|
|
+ background-color: #5a6fc0 !important;
|
|
|
+ border: none !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .el-select-dropdown__list {
|
|
|
+ background-color: #5a6fc0 !important;
|
|
|
+ }
|
|
|
+ .el-range-editor,
|
|
|
+ .el-range-input,
|
|
|
+ .el-range-separator {
|
|
|
+ color: #fff !important;
|
|
|
+ background-color: #5a6fc0 !important;
|
|
|
+ border: none !important;
|
|
|
+ }
|
|
|
+ /* 修改下拉框悬停时的背景色 */
|
|
|
+ .el-select-dropdown__item.hover,
|
|
|
+ .el-select-dropdown__item:hover {
|
|
|
+ background-color: #5a6fc0 !important;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|