diff --git a/src/components/BarEchartB.vue b/src/components/BarEchartB.vue new file mode 100644 index 0000000..6d48dad --- /dev/null +++ b/src/components/BarEchartB.vue @@ -0,0 +1,298 @@ + + + diff --git a/src/components/BarEchartC.vue b/src/components/BarEchartC.vue new file mode 100644 index 0000000..4b131da --- /dev/null +++ b/src/components/BarEchartC.vue @@ -0,0 +1,251 @@ + + + diff --git a/src/components/BarEchartS.vue b/src/components/BarEchartS.vue new file mode 100644 index 0000000..a4523d5 --- /dev/null +++ b/src/components/BarEchartS.vue @@ -0,0 +1,269 @@ + + + diff --git a/src/components/History2.vue b/src/components/History2.vue index 37b0167..9a79f30 100644 --- a/src/components/History2.vue +++ b/src/components/History2.vue @@ -20,9 +20,7 @@
- + @@ -59,7 +57,7 @@ import { onMounted, reactive, ref, toRefs } from "vue"; import { ElMessage } from "element-plus"; import myApi from "@/api/myApi.js"; -import BarEchart from "./BarEchart.vue"; +import BarEchart from "./BarEchartB.vue"; import Process from "./Process.vue"; import Date from "@/components/Date.vue"; export default { @@ -75,7 +73,7 @@ export default { { id: "echart0", title: "降水量-柱状图", - legend: ["降水量"], + legend: ["降水量", "数据2"], color: ["#6fdbce"], }, ], diff --git a/src/components/History3.vue b/src/components/History3.vue index 37b0167..78b7301 100644 --- a/src/components/History3.vue +++ b/src/components/History3.vue @@ -20,9 +20,7 @@
- +
@@ -59,7 +57,7 @@ import { onMounted, reactive, ref, toRefs } from "vue"; import { ElMessage } from "element-plus"; import myApi from "@/api/myApi.js"; -import BarEchart from "./BarEchart.vue"; +import BarEchart from "./BarEchartS.vue"; import Process from "./Process.vue"; import Date from "@/components/Date.vue"; export default { diff --git a/src/components/History4.vue b/src/components/History4.vue index 37b0167..7bb985d 100644 --- a/src/components/History4.vue +++ b/src/components/History4.vue @@ -59,7 +59,7 @@ import { onMounted, reactive, ref, toRefs } from "vue"; import { ElMessage } from "element-plus"; import myApi from "@/api/myApi.js"; -import BarEchart from "./BarEchart.vue"; +import BarEchart from "./BarEchartC.vue"; import Process from "./Process.vue"; import Date from "@/components/Date.vue"; export default {