feat(backend):chart 支持 dashboard传入过滤组件条件

This commit is contained in:
junjie
2021-04-19 11:44:21 +08:00
parent 9de0749200
commit afca57c459
8 changed files with 181 additions and 44 deletions

View File

@@ -391,7 +391,9 @@ export default {
},
getData(id) {
if (id) {
post('/chart/view/getData/' + id, null).then(response => {
post('/chart/view/getData/' + id, {
filter: []
}).then(response => {
this.initTableData(response.data.tableId)
this.view = JSON.parse(JSON.stringify(response.data))
this.view.xaxis = this.view.xaxis ? JSON.parse(this.view.xaxis) : []