fix:删除 console 解决 sanKey 不显示的问题
This commit is contained in:
@@ -185,7 +185,6 @@ export default {
|
|||||||
if (this.isSingleValue) {
|
if (this.isSingleValue) {
|
||||||
if (chartParams && chartParams.dataKey) {
|
if (chartParams && chartParams.dataKey) {
|
||||||
get(replaceUrlPlaceholder(chartParams.url), this.queryParams).then(response =>{
|
get(replaceUrlPlaceholder(chartParams.url), this.queryParams).then(response =>{
|
||||||
console.log(response)
|
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
if (response.data.result && (response.data.result[chartParams.dataKey] || response.data.result[chartParams.dataKey] === 0)) {
|
if (response.data.result && (response.data.result[chartParams.dataKey] || response.data.result[chartParams.dataKey] === 0)) {
|
||||||
this.chartData = response.data.result[chartParams.dataKey]
|
this.chartData = response.data.result[chartParams.dataKey]
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default {
|
|||||||
init (id) {
|
init (id) {
|
||||||
const vm = this
|
const vm = this
|
||||||
const chartParams = this.chartInfo.params
|
const chartParams = this.chartInfo.params
|
||||||
const entityName = this.entity.ip || this.entity.domain || this.entity.app
|
const entityName = this.entity.ip || this.entity.domain || this.entity.app || this.entity.appName
|
||||||
const dom = document.getElementById(id)
|
const dom = document.getElementById(id)
|
||||||
!this.myChart && (this.myChart = echarts.init(dom))
|
!this.myChart && (this.myChart = echarts.init(dom))
|
||||||
this.chartOption = this.$_.cloneDeep(sankey)
|
this.chartOption = this.$_.cloneDeep(sankey)
|
||||||
|
|||||||
Reference in New Issue
Block a user