Преглед изворни кода

update std chart

pull/1/head
DESKTOP-FUDKNA8\znjsz пре 5 месеци
родитељ
комит
73aa0d9f54
2 измењених фајлова са 69 додато и 1 уклоњено
  1. +64
    -0
      src/views/dashboard/charts/StdChart.vue
  2. +5
    -1
      src/views/index.vue

+ 64
- 0
src/views/dashboard/charts/StdChart.vue Прегледај датотеку

@@ -0,0 +1,64 @@
<!--
filename: Bipv.vue
author: liubin
date: 2024-04-10 15:39:54
description:
-->

<template>
<right-chart-base
:legend="legend"
:series="series"
:xAxis="xAxis"
:vHeight="20.5"
class="std-chart"
/>
</template>

<script>
import RightChartBase from "./RightChartBase.vue";

export default {
name: "StdChart",
components: { RightChartBase },
props: {
legend: {
type: Array,
default: () => [
{ label: "2024年目标值", color: "#f3c000" },
{ label: "2023年", color: "#12f7f1" },
{ label: "2024年", color: "#58adfa" },
],
},
xAxis: {
type: Array,
default: () => ["成都", "邯郸", "株洲", "瑞昌", "heels", "socks"],
},
series: {
type: Array,
default: () => [
{
name: "2024年目标值",
data: Array.from({ length: 7 }, () =>
Math.floor(Math.random() * 1000)
),
},
{
name: "2023年",
data: Array.from({ length: 7 }, () =>
Math.floor(Math.random() * 1000)
),
},
{
name: "2024年",
data: Array.from({ length: 7 }, () =>
Math.floor(Math.random() * 1000)
),
},
],
},
},
};
</script>

<style scoped lang="scss"></style>

+ 5
- 1
src/views/index.vue Прегледај датотеку

@@ -20,7 +20,9 @@
side="right"
icon="std"
title="标准组件产出"
></db-container>
>
<std-chart />
</db-container>
<db-container side="right" icon="bipv" title="BIPV产出">
<bipv-chart />
</db-container>
@@ -47,6 +49,7 @@ import FtoChart from "./dashboard/charts/Fto.vue";
import ChipInvestChart from "./dashboard/charts/ChipInvest.vue";
import BipvChart from "./dashboard/charts/Bipv.vue";
import ChipYieldChart from "./dashboard/charts/ChipYield.vue";
import StdChart from "./dashboard/charts/StdChart.vue";

const LOCATIONS = [
// 佳木斯
@@ -74,6 +77,7 @@ export default {
ChipInvestChart,
ChipYieldChart,
BipvChart,
StdChart,
},
data() {
return {


Loading…
Откажи
Сачувај