2026-03-25 14:54:15 +08:00
|
|
|
<template>
|
2026-03-27 16:01:49 +08:00
|
|
|
<ChartCard margin="30rpx 0 0 0" title="施工方案数">
|
|
|
|
|
<view class="inspection">
|
2026-03-26 14:49:26 +08:00
|
|
|
<qiun-data-charts type="column" :canvas2d="false" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
|
2026-03-25 14:54:15 +08:00
|
|
|
</view>
|
|
|
|
|
</ChartCard>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-03-27 16:01:49 +08:00
|
|
|
import ChartCard from '@/components/chartCard.vue';
|
|
|
|
|
import { ref, onMounted } from 'vue';
|
2026-03-25 14:54:15 +08:00
|
|
|
|
2026-03-27 16:01:49 +08:00
|
|
|
const opts = ref({
|
|
|
|
|
padding: [15, 15, 0, 5],
|
|
|
|
|
enableScroll: false,
|
|
|
|
|
legend: { show: false },
|
|
|
|
|
xAxis: {
|
|
|
|
|
disableGrid: true
|
|
|
|
|
},
|
|
|
|
|
yAxis: {
|
|
|
|
|
showTitle: true,
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
title: '单位:个'
|
2026-03-25 14:54:15 +08:00
|
|
|
}
|
2026-03-27 16:01:49 +08:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
extra: {
|
|
|
|
|
column: {
|
|
|
|
|
type: 'group',
|
|
|
|
|
width: 30,
|
|
|
|
|
activeBgColor: '#000000',
|
|
|
|
|
activeBgOpacity: 0.08
|
2026-03-25 14:54:15 +08:00
|
|
|
}
|
|
|
|
|
}
|
2026-03-27 16:01:49 +08:00
|
|
|
});
|
2026-03-25 14:54:15 +08:00
|
|
|
|
2026-03-27 16:01:49 +08:00
|
|
|
const chartData = ref({});
|
2026-03-25 14:54:15 +08:00
|
|
|
|
2026-03-27 16:01:49 +08:00
|
|
|
const handleTap = (e) => {
|
|
|
|
|
console.log(e);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
let res = {
|
|
|
|
|
categories: ['方案总数', '企业审批总数', '项目审批总数'],
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
color: '#5c7fcb',
|
|
|
|
|
name: '',
|
|
|
|
|
data: [100, 542, 685]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
chartData.value = JSON.parse(JSON.stringify(res));
|
|
|
|
|
});
|
2026-03-25 14:54:15 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2026-03-27 16:01:49 +08:00
|
|
|
.inspection {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 300rpx;
|
|
|
|
|
}
|
|
|
|
|
</style>
|