|
@@ -8,14 +8,14 @@
|
|
|
<script lang="ts" setup>
|
|
|
import ScreenComHeader from "@/views/screens/configs/screenComHeader.vue";
|
|
|
import * as echarts from "echarts";
|
|
|
-import { dailyProduction } from "@/api/screens";
|
|
|
+import {dailyProduction, stationProduction} from "@/api/screens";
|
|
|
import { allChartColors } from "@/views/screens/configs/chartsConfig";
|
|
|
const bigScreenData: any = inject("bigScreenData");
|
|
|
const chartRef = ref(null);
|
|
|
|
|
|
onMounted(async () => {
|
|
|
const chart = echarts.init(chartRef.value, "dark");
|
|
|
- let res: any = await dailyProduction(7);
|
|
|
+ let res: any = await stationProduction();
|
|
|
const option = {
|
|
|
grid: {
|
|
|
left: "10%",
|
|
@@ -27,7 +27,7 @@ onMounted(async () => {
|
|
|
backgroundColor: "transparent",
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
- data: res?.data?.map((item: any) => item.dateStr),
|
|
|
+ data: res?.data?.map((item: any) => item.stationName),
|
|
|
axisLabel: {
|
|
|
fontSize: bigScreenData.value.fontSize * 2,
|
|
|
},
|
|
@@ -40,7 +40,7 @@ onMounted(async () => {
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
- data: res?.data?.map((item: any) => item.count),
|
|
|
+ data: res?.data?.map((item: any) => item.number),
|
|
|
type: "bar",
|
|
|
},
|
|
|
],
|