You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
1.8 KiB

<template>
<div class="bottomLeft">
<dv-border-box-13>
<div class="chartsBox">
<div class="chartItem">
<p>手术等级</p>
<dv-active-ring-chart :config="config1" />
</div>
<dv-decoration-2 :reverse="true" />
<div class="chartItem">
<p>ASA分级</p>
<dv-active-ring-chart :config="config2" />
</div>
</div>
</dv-border-box-13>
</div>
</template>
<script>
export default {
data() {
return {
config1: {
data: [
{
name: '一级',
value: 300,
},
{
name: '二级',
value: 250,
},
{
name: '三级',
value: 250,
},
{
name: '四级',
value: 100,
},
{
name: '五级',
value: 80,
},
],
},
config2: {
data: [
{
name: 'I级',
value: 80,
},
{
name: 'II级',
value: 50,
},
{
name: 'III级',
value: 10,
},
{
name: 'IV级',
value: 20,
},
],
},
};
},
};
</script>
<style lang="scss" scoped>
.bottomLeft {
flex-basis: 40%;
.chartsBox {
width: 100%;
height: 100%;
display: flex;
position: relative;
padding-top: 10px;
box-sizing: border-box;
.chartItem {
width: 48%;
height: 100%;
flex-shrink: 0;
padding-top: 40px;
box-sizing: border-box;
p {
font-size: 24px;
text-align: center;
}
:deep(.dv-active-ring-chart) {
height: 90%;
}
}
}
}
</style>