feat:type 22 (30%)

This commit is contained in:
zhangyu
2022-01-20 15:39:52 +08:00
parent d693452195
commit 086c35d174
12 changed files with 241 additions and 10 deletions

View File

@@ -184,11 +184,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
} else if (this.chartInfo.type === 22 && testData) {
response = testData.data3
}
if (response.code === 200) {
this.chartData = response.data.result