|
65 | 65 | </b-row> |
66 | 66 | </div> |
67 | 67 | </b-card> |
| 68 | + <b-row> |
| 69 | + <b-col sm="6"> |
| 70 | + <b-card> |
| 71 | + <b-row> |
| 72 | + <b-col sm="5"> |
| 73 | + <h4 id="chart-policy-violations" class="card-title mb-0">{{ $t('message.policy_violations') }}</h4> |
| 74 | + <div class="small text-muted"> |
| 75 | + {{$t('message.policy_violations_by_state')}} |
| 76 | + </div> |
| 77 | + </b-col> |
| 78 | + <b-col sm="7" class="d-none d-md-block"> |
| 79 | + </b-col> |
| 80 | + </b-row> |
| 81 | + <chart-policy-violations ref="chartPolicyViolations" chartId="chartPolicyViolations" class="chart-wrapper" style="height:200px;margin-top:40px;" :height="200"></chart-policy-violations> |
| 82 | + </b-card> |
| 83 | + </b-col> |
| 84 | + <b-col sm="6"> |
| 85 | + <b-card> |
| 86 | + <b-row> |
| 87 | + <b-col sm="5"> |
| 88 | + <h4 id="chart-policy-violation-breakdown" class="card-title mb-0">{{ $t('message.policy_violations') }}</h4> |
| 89 | + <div class="small text-muted"> |
| 90 | + {{$t('message.policy_violations_by_classification')}} |
| 91 | + </div> |
| 92 | + </b-col> |
| 93 | + <b-col sm="7" class="d-none d-md-block"> |
| 94 | + </b-col> |
| 95 | + </b-row> |
| 96 | + <chart-policy-violation-breakdown ref="chartPolicyViolationBreakdown" chartId="chartPolicyViolationBreakdown" class="chart-wrapper" style="height:200px;margin-top:40px;" :height="200"></chart-policy-violation-breakdown> |
| 97 | + </b-card> |
| 98 | + </b-col> |
| 99 | + </b-row> |
68 | 100 | </div> |
69 | 101 | </template> |
70 | 102 |
|
|
73 | 105 | import { Callout } from '@coreui/vue' |
74 | 106 | import ChartAuditingProgress from "../../dashboard/ChartAuditingProgress"; |
75 | 107 | import ChartComponentVulnerabilities from "../../dashboard/ChartComponentVulnerabilities"; |
76 | | - import ChartPortfolioVulnerabilities from '../../dashboard/ChartPortfolioVulnerabilities' |
| 108 | + import ChartPortfolioVulnerabilities from '../../dashboard/ChartPortfolioVulnerabilities'; |
| 109 | + import ChartPolicyViolations from "@/views/dashboard/ChartPolicyViolations"; |
| 110 | + import ChartPolicyViolationBreakdown from '@/views/dashboard/ChartPolicyViolationBreakdown'; |
77 | 111 |
|
78 | 112 | export default { |
79 | 113 | name: 'ComponentDashboard', |
80 | 114 | components: { |
81 | 115 | ChartAuditingProgress, |
82 | 116 | ChartComponentVulnerabilities, |
83 | 117 | ChartPortfolioVulnerabilities, |
| 118 | + ChartPolicyViolations, |
| 119 | + ChartPolicyViolationBreakdown, |
84 | 120 | Callout, |
85 | 121 |
|
86 | 122 | }, |
|
145 | 181 | let url = `${this.$api.BASE_URL}/${this.$api.URL_METRICS}/component/${uuid}/days/${daysBack}`; |
146 | 182 | this.axios.get(url).then((response) => { |
147 | 183 | this.$refs.chartComponentVulnerabilities.render(response.data); |
| 184 | + this.$refs.chartPolicyViolations.render(response.data); |
| 185 | + this.$refs.chartPolicyViolationBreakdown.render(response.data); |
148 | 186 | this.extractStats(response.data); |
149 | 187 | }); |
150 | 188 | } |
|
0 commit comments