Browse Source

灵敏感知大屏

main
kami 1 year ago
parent
commit
f95b1f7f05
  1. 18
      src/api/data/risk.ts
  2. 1
      src/style/datav.scss
  3. 129
      src/views/datav/Lmgz.vue

18
src/api/data/risk.ts

@ -78,4 +78,22 @@ export function policeLeaderNegativeStatistics() {
});
}
// *******************************************
export function areaRateStatistics() {
return request.get({
url: `/datav/risk/area/rate/statistics`
});
}
export function orgRateStatistics() {
return request.get({
url: `/datav/risk/org/rate/statistics`
});
}
export function orgCarRateStatistics() {
return request.get({
url: `/datav/risk/org/car/rate/statistics`
});
}

1
src/style/datav.scss

@ -9,7 +9,6 @@
.col {
--label-width: 66px;
label {
color: #5574E1;
text-align: left;

129
src/views/datav/Lmgz.vue

@ -57,7 +57,7 @@
<el-scrollbar height="200px">
<datav-chart-bar
:data="areaRiskList"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
@ -67,17 +67,17 @@
<datav-chart-bar
:data="areaNegativeList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题发生率" name="2">
<datav-tab-item label="问题发生率" name="3">
<el-scrollbar height="200px">
<datav-chart-bar
:data="jsdwBarList"
:data="areaRateList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
@ -90,31 +90,31 @@
<datav-tabs
type="bottom-button"
>
<datav-tab-item label="风险值" name="1">
<datav-tab-item label="风险值" name="4">
<el-scrollbar height="200px">
<datav-chart-bar
:data="pcsRiskList"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题数" name="2">
<datav-tab-item label="问题数" name="5">
<el-scrollbar height="200px">
<datav-chart-bar
:data="orgNegativeList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题发生率" name="2">
<datav-tab-item label="问题发生率" name="6">
<el-scrollbar height="200px">
<datav-chart-bar
:data="jsdwBarList"
:data="orgRateList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
@ -127,31 +127,31 @@
<datav-tabs
type="bottom-button"
>
<datav-tab-item label="风险值" name="1">
<datav-tab-item label="风险值" name="7">
<el-scrollbar height="200px">
<datav-chart-bar
:data="carRiskList"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题数" name="2">
<datav-tab-item label="问题数" name="8">
<el-scrollbar height="200px">
<datav-chart-bar
:data="orgCarNegativeList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题发生率" name="2">
<datav-tab-item label="问题发生率" name="9">
<el-scrollbar height="200px">
<datav-chart-bar
:data="jsdwBarList"
:data="orgCarRateList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
@ -167,31 +167,21 @@
<datav-tabs
type="bottom-button"
>
<datav-tab-item label="风险值" name="1">
<datav-tab-item label="风险值" name="10">
<el-scrollbar height="200px">
<datav-chart-bar
:data="policeARiskList"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题数" name="2">
<datav-tab-item label="问题数" name="11">
<el-scrollbar height="200px">
<datav-chart-bar
:data="policeANegativeList"
:max="11"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题发生率" name="2">
<el-scrollbar height="200px">
<datav-chart-bar
:data="jsdwBarList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
@ -204,31 +194,21 @@
<datav-tabs
type="bottom-button"
>
<datav-tab-item label="风险值" name="1">
<datav-tab-item label="风险值" name="12">
<el-scrollbar height="200px">
<datav-chart-bar
:data="policeBRiskList"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题数" name="2">
<datav-tab-item label="问题数" name="13">
<el-scrollbar height="200px">
<datav-chart-bar
:data="policeBNegativeList"
:max="11"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题发生率" name="2">
<el-scrollbar height="200px">
<datav-chart-bar
:data="jsdwBarList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
@ -241,31 +221,21 @@
<datav-tabs
type="bottom-button"
>
<datav-tab-item label="风险值" name="1">
<datav-tab-item label="风险值" name="14">
<el-scrollbar height="200px">
<datav-chart-bar
:data="leaderNegativeList"
size="large"
:data="leaderRiskList"
size="small"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题数" name="2">
<datav-tab-item label="问题数" name="15">
<el-scrollbar height="200px">
<datav-chart-bar
:data="jsdwBarList"
:max="11"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="问题发生率" name="2">
<el-scrollbar height="200px">
<datav-chart-bar
:data="jsdwBarList"
:data="leaderNegativeList"
:max="11"
size="large"
size="small"
:color="colors"
/>
</el-scrollbar>
@ -292,7 +262,10 @@ import {
orgCarNegativeStatistics,
policeANegativeStatistics,
policeBNegativeStatistics,
policeLeaderNegativeStatistics
policeLeaderNegativeStatistics,
areaRateStatistics,
orgRateStatistics,
orgCarRateStatistics
} from '@/api/data/risk';
@ -317,6 +290,10 @@ let policeANegativeList = ref([])
let policeBNegativeList = ref([])
let leaderNegativeList = ref([])
let areaRateList = ref([])
let orgRateList = ref([])
let orgCarRateList = ref([])
onMounted(() => {
getTotalData();
getAreaRiskData();
@ -331,6 +308,9 @@ onMounted(() => {
getAreaNegativeData();
getCarOrgNegativeData();
getOrgNegativeData();
getAreaRateData();
getOrgRateData();
getCarOrgRateData();
});
const getTotalData = () => {
@ -414,6 +394,25 @@ const getLeaderNegativeData = () => {
})
}
const getAreaRateData = () => {
areaRateStatistics().then(res => {
areaRateList.value = eachData(res)
})
}
const getOrgRateData = () => {
orgRateStatistics().then(res => {
orgRateList.value = eachData(res)
})
}
const getCarOrgRateData = () => {
orgCarRateStatistics().then(res => {
orgCarRateList.value = eachData(res)
})
}
const eachData = (data) => {
let arr = []
data.forEach(item => {
@ -435,7 +434,7 @@ const colors = [
percentage: 60,
},
{
color: "linear-gradient( 270deg, #63E700 0%, #19674C 100%)",
color: "linear-gradient( 270deg, #63E7AA 0%, #19674C 100%)",
percentage: 40,
},
];

Loading…
Cancel
Save