资金看板

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' VITE_APP_ENV = 'development'
# 开发环境 # 开发环境
<<<<<<< HEAD
VITE_APP_BASE_API = 'http://192.168.110.180:8899' 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>
<div class="contract_box"> <div class="contract_box">
<EchartBox :option="barOption" />
</div> </div>
</div> </div>
</template> </template>
<script setup> <script setup>
import { ref, reactive, onMounted, computed, toRefs, getCurrentInstance, nextTick } from 'vue'; import { ref, reactive, onMounted, computed, toRefs, getCurrentInstance, nextTick } from 'vue';
import echarts from 'echarts'; // import echarts from 'echarts';
import TitleComponent from './TitleComponent.vue'; import TitleComponent from './TitleComponent.vue';
import ProgressComponent from './ProgressComponent.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> </script>
<style lang="scss"> <style lang="scss">
@ -52,6 +61,9 @@ import ProgressComponent from './ProgressComponent.vue';
.kpi_box{ .kpi_box{
margin-bottom: 10px; margin-bottom: 10px;
} }
.contract_box{
height: 35vh;
}
.kpi_box,.contract_box { .kpi_box,.contract_box {
padding: 10px; padding: 10px;
box-sizing: border-box; box-sizing: border-box;

View File

@ -1,4 +1,5 @@
import * as echarts from 'echarts/core'; import * as echarts from 'echarts/core';
import { text } from 'stream/consumers';
// import { PictorialBarChart } from 'echarts/charts' // import { PictorialBarChart } from 'echarts/charts'
// 客流量图 // 客流量图
export const getOption = (xData: any, yData: any) => { export const getOption = (xData: any, yData: any) => {
@ -574,10 +575,10 @@ export const getDishesOption = (data?: any) => {
// 菜品库存图 // 菜品库存图
export const getInventoryOption = () => { export const getInventoryOption = () => {
const res = { const res = {
data: [2800, 300, 3900, 3000, 2450, 2670, 3320], data: [2800, 300, 3900, 3000, 2450, 2670, 3320],
name: ['麻辣牛肉', '水煮肉片', '酸菜鱼', '辣子鸡丁', '烧白', '冬瓜排骨汤', '清炒油麦菜'], name: ['麻辣牛肉', '水煮肉片', '酸菜鱼', '辣子鸡丁', '烧白', '冬瓜排骨汤', '清炒油麦菜'],
ratio: [4000, 4000, 4000, 4000, 4000, 4000, 4000] ratio: [4000, 4000, 4000, 4000, 4000, 4000, 4000]
}, },
dataIndex = 1; dataIndex = 1;
const option = { const option = {
xAxis: { xAxis: {
@ -826,3 +827,62 @@ export const getBarOptions = (data: any) => {
}; };
return option; 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;
}