From 345708c092a7c7daafe2da9a2181c92d689d8fc0 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期二, 18 六月 2024 18:14:32 +0800
Subject: [PATCH] 1
---
src/views/mdc/components/Time.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/views/mdc/components/Time.vue b/src/views/mdc/components/Time.vue
index acb1f5c..5bb8fcd 100644
--- a/src/views/mdc/components/Time.vue
+++ b/src/views/mdc/components/Time.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-04-18 21:52:18
* @LastEditors: Sneed
- * @LastEditTime: 2024-06-17 22:02:38
+ * @LastEditTime: 2024-06-17 23:37:51
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Time.vue
-->
<template>
@@ -16,7 +16,7 @@
</el-col>
<el-col style="margin-top: 12px;">
<el-card shadow="never">
- <scEcharts height="300px" :option="option2"></scEcharts>
+ <scEcharts height="300px" :option="option2" v-if="option2.title" />
</el-card>
</el-col>
<el-col>
@@ -89,7 +89,7 @@
],
cols: [],
chartsData: [],
- option2: null,
+ option2: {},
}
},
watch: {
@@ -140,6 +140,7 @@
queryType: 0,
statisticalMethod: this.statisticalMethod
}
+ this.option2 = {}
return this.$HTTP.post(this.url, dataSend, { params }).then(res => {
this.chartsData = res.data.items.records
let option2 = {
@@ -176,8 +177,8 @@
dataset: {
source: []
},
+ ...this.options,
series: [],
- ...this.options
}
let source1 = ['product']
let row = res.data.items.records[0]
--
Gitblit v1.9.3