|
@@ -8,6 +8,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import echarts from "echarts";
|
|
import echarts from "echarts";
|
|
|
|
+import { mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "lineChartMainPageA",
|
|
name: "lineChartMainPageA",
|
|
@@ -39,6 +40,10 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(["themeColor"]),
|
|
|
|
+ },
|
|
|
|
+
|
|
methods: {
|
|
methods: {
|
|
initStateList() {
|
|
initStateList() {
|
|
let xData = [];
|
|
let xData = [];
|
|
@@ -96,7 +101,7 @@ export default {
|
|
lineStyle: {
|
|
lineStyle: {
|
|
normal: {
|
|
normal: {
|
|
width: 1.5,
|
|
width: 1.5,
|
|
- color: "#3397FF",
|
|
|
|
|
|
+ color: this.themeColor,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
areaStyle: {
|
|
areaStyle: {
|
|
@@ -124,8 +129,8 @@ export default {
|
|
// label: {
|
|
// label: {
|
|
// show: true,
|
|
// show: true,
|
|
// },
|
|
// },
|
|
- // borderColor: "#3397FF", // 拐点边框颜色
|
|
|
|
- color: "#3397FF",
|
|
|
|
|
|
+ // borderColor: this.themeColor, // 拐点边框颜色
|
|
|
|
+ color: this.themeColor,
|
|
lineStyle: {
|
|
lineStyle: {
|
|
// width: 3, // 设置线宽
|
|
// width: 3, // 设置线宽
|
|
// type: "dotted", //'dotted'虚线 'solid'实线
|
|
// type: "dotted", //'dotted'虚线 'solid'实线
|