feat:添加type类型 为 23 24的 bar
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
<script>
|
||||
import ChartHeader from './ChartHeader'
|
||||
import Chart from '@/views/charts/Chart2'
|
||||
import testData from './charts/testData'
|
||||
import {
|
||||
isEcharts,
|
||||
isSingleValue,
|
||||
@@ -177,6 +178,12 @@ export default {
|
||||
const requestUrl = url || (chartParams && chartParams.url)
|
||||
if (requestUrl) {
|
||||
get(replaceUrlPlaceholder(requestUrl, this.queryParams)).then(response => {
|
||||
console.log(testData)
|
||||
if (this.chartInfo.type === 23 && testData) {
|
||||
response = testData.data
|
||||
} else if (this.chartInfo.type === 24 && testData) {
|
||||
response = testData.data2
|
||||
}
|
||||
if (response.code === 200) {
|
||||
this.chartData = response.data.result
|
||||
this.resultType = response.data.resultType
|
||||
|
||||
Reference in New Issue
Block a user