大屏设计
This commit is contained in:
@@ -143,7 +143,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if (item.type === 'summary') {
|
} else if (item.type === 'summary') {
|
||||||
if (this.options.display === 'summary9') {
|
if (item.display === 'summary9') {
|
||||||
dynamicData = res.data
|
dynamicData = res.data
|
||||||
} else {
|
} else {
|
||||||
dynamicData = Object.keys(res.data[0]).map(item => {
|
dynamicData = Object.keys(res.data[0]).map(item => {
|
||||||
@@ -153,6 +153,13 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
} else if (item.dataType === 'dynamicData' && !item.dataX && !item.dataY.length) {
|
||||||
|
dynamicData = Object.keys(res.data[0]).map(item => {
|
||||||
|
return {
|
||||||
|
label: item,
|
||||||
|
value: res.data[0][item]
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
if (item.dataX && item.dataY.length) {
|
if (item.dataX && item.dataY.length) {
|
||||||
list.forEach(i => {
|
list.forEach(i => {
|
||||||
|
|||||||
Reference in New Issue
Block a user