forked from github/dataease
feat: S2 pivot
This commit is contained in:
parent
dfefade933
commit
1348f53222
@ -116,7 +116,12 @@ export function baseTableNormal(s2, container, chart, action, tableData) {
|
|||||||
|
|
||||||
// add drill list
|
// add drill list
|
||||||
if (chart.drill) {
|
if (chart.drill) {
|
||||||
const drillFields = JSON.parse(chart.drillFields)
|
let drillFields = []
|
||||||
|
try {
|
||||||
|
drillFields = JSON.parse(chart.drillFields)
|
||||||
|
} catch (err) {
|
||||||
|
drillFields = JSON.parse(JSON.stringify(chart.drillFields))
|
||||||
|
}
|
||||||
const drillField = drillFields[chart.drillFilters.length]
|
const drillField = drillFields[chart.drillFilters.length]
|
||||||
|
|
||||||
const drillFilters = JSON.parse(JSON.stringify(chart.drillFilters))
|
const drillFilters = JSON.parse(JSON.stringify(chart.drillFilters))
|
||||||
|
Loading…
Reference in New Issue
Block a user