资金看板
This commit is contained in:
@ -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
|
|
||||||
|
|
||||||
# 无人机接口地址
|
# 无人机接口地址
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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) => {
|
||||||
@ -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;
|
||||||
|
}
|
Reference in New Issue
Block a user