|
@@ -457,8 +457,8 @@ export default {
|
|
|
dataContent: params,
|
|
|
})
|
|
|
if (Number(res.code) === 0) {
|
|
|
- if (res.returnData.listValues.length) {
|
|
|
- const list = Object.entries(res.returnData.listValues[0])
|
|
|
+ if (res.returnData.length) {
|
|
|
+ const list = Object.entries(res.returnData[0])
|
|
|
const max = Math.max(...list.map(element => element[1]))
|
|
|
this.indicator.forEach(node => {
|
|
|
node.max = max
|
|
@@ -488,6 +488,7 @@ export default {
|
|
|
this.$message.error(res.message || '失败')
|
|
|
}
|
|
|
} catch (error) {
|
|
|
+ console.log(error)
|
|
|
this.$message.error('失败')
|
|
|
}
|
|
|
},
|