This commit is contained in:
yanran200730
2022-03-31 16:03:40 +08:00
parent 27ab36b3ce
commit 49a2d392ad
21 changed files with 74 additions and 49 deletions

View File

@@ -242,12 +242,16 @@
}
})
} else if (this.options.type === 'summary') {
this.options.apiData = Object.keys(res.data[0]).map(item => {
return {
key: item,
value: res.data[0][item]
}
})
if (this.options.display === 'summary9') {
this.options.apiData = res.data
} else {
this.options.apiData = Object.keys(res.data[0]).map(item => {
return {
key: item,
value: res.data[0][item]
}
})
}
} else if (this.options.type === 'monitor') {
this.monitorList = res.data
} else {

View File

@@ -143,12 +143,16 @@ export default {
}
})
} else if (item.type === 'summary') {
dynamicData = Object.keys(res.data[0]).map(item => {
return {
key: item,
value: res.data[0][item]
}
})
if (this.options.display === 'summary9') {
dynamicData = res.data
} else {
dynamicData = Object.keys(res.data[0]).map(item => {
return {
key: item,
value: res.data[0][item]
}
})
}
} else {
if (item.dataX && item.dataY.length) {
list.forEach(i => {