diff --git a/bigdata.zip b/bigdata.zip
deleted file mode 100644
index 2efef1a..0000000
Binary files a/bigdata.zip and /dev/null differ
diff --git a/src/components/echarts/BarSpike.vue b/src/components/echarts/BarSpike.vue
index 488f6b3..1421e23 100644
--- a/src/components/echarts/BarSpike.vue
+++ b/src/components/echarts/BarSpike.vue
@@ -1,6 +1,11 @@
@@ -25,6 +30,10 @@ const props = defineProps({
type: Array,
default: []
},
+ pData: {
+ type: Array,
+ default: []
+ },
data: {
type: Array,
default: []
@@ -45,7 +54,8 @@ const init = () => {
tooltip: {},
grid: {
left: 50,
- top: 10
+ top: 10,
+ right: 100
},
xAxis: {
type: 'category',
@@ -86,4 +96,17 @@ onMounted(() => {
\ No newline at end of file
diff --git a/src/module/ModuleLeft1.vue b/src/module/ModuleLeft1.vue
index 51657cc..2feec45 100644
--- a/src/module/ModuleLeft1.vue
+++ b/src/module/ModuleLeft1.vue
@@ -1,7 +1,7 @@
-
-
+
@@ -27,12 +27,14 @@ const axios = inject('axios');
const keyCount = ref(0);
const barChart = reactive({
xData: [],
+ pData: [],
data: []
});
axios.get(`app/query/sqlrelease/q419513e`, {}).then(res => {
let data = res.data;
data.forEach((item, index) => {
barChart.xData.push(item.name);
+ barChart.pData.push(`${item.name}:${item.percent}%`)
barChart.data.push(item.value);
})
keyCount.value++;