资金看板

This commit is contained in:
2025-08-21 18:45:51 +08:00
parent 75f190907d
commit 15a724a5fe
3 changed files with 78 additions and 10 deletions

View File

@ -5,11 +5,7 @@ VITE_APP_TITLE = 煤科建管平台
VITE_APP_ENV = 'development'
# 开发环境
<<<<<<< HEAD
VITE_APP_BASE_API = 'http://192.168.110.180:8899'
=======
VITE_APP_BASE_API = 'http://192.168.110.149:8899'
>>>>>>> aab67593ebb8d9116738d0d867a6119ba61615c8
# 无人机接口地址

View File

@ -33,16 +33,25 @@
/>
</div>
<div class="contract_box">
<EchartBox :option="barOption" />
</div>
</div>
</template>
<script setup>
import { ref, reactive, onMounted, computed, toRefs, getCurrentInstance, nextTick } from 'vue';
import echarts from 'echarts';
// import echarts from 'echarts';
import TitleComponent from './TitleComponent.vue';
import ProgressComponent from './ProgressComponent.vue';
import EchartBox from '@/components/EchartBox/index.vue';
import { getBarOptions2 } from './optionList';
const barOption = ref();
const getCapitalData = (data) => {
barOption.value = getBarOptions2();
};
onMounted(() => {
getCapitalData();
});
</script>
<style lang="scss">
@ -52,6 +61,9 @@ import ProgressComponent from './ProgressComponent.vue';
.kpi_box{
margin-bottom: 10px;
}
.contract_box{
height: 35vh;
}
.kpi_box,.contract_box {
padding: 10px;
box-sizing: border-box;

View File

@ -1,4 +1,5 @@
import * as echarts from 'echarts/core';
import { text } from 'stream/consumers';
// import { PictorialBarChart } from 'echarts/charts'
// 客流量图
export const getOption = (xData: any, yData: any) => {
@ -826,3 +827,62 @@ export const getBarOptions = (data: any) => {
};
return option;
};
// 收支合同分析
export const getBarOptions2 = (data: any) => {
const option = {
color:['#FF932A', '#678FE6', '#1DD6FF', '#00E396'],
title: {
text: '数量(个)',
subtext: '16',
bottom: 'center',
left: 'center',
textStyle: {
color: '#9DADB7',
fontSize: 16
},
subtextStyle:{
color: '#707070',
fontSize: 32,
fontWeight: 'bold'
}
},
tooltip: {
trigger: 'item'
},
legend: {
top: '5%',
left: 'center'
},
series: [
{
name: 'Access From',
type: 'pie',
radius: ['50%', '60%'],
avoidLabelOverlap: false,
padAngle: 5,
label: {
show: false,
position: 'center'
},
emphasis: {
label: {
show: false,
fontSize: 40,
fontWeight: 'bold'
}
},
labelLine: {
show: false
},
data: [
{ value: 3, name: '100万一下' },
{ value: 4, name: '100-500万' },
{ value: 5, name: '500-1000万' },
{ value: 4, name: '1000万以上' },
]
}
]
};
return option;
}