大屏设计

This commit is contained in:
yanran200730
2022-03-31 17:04:46 +08:00
parent 3e7057e189
commit 3c8988afe2

View File

@@ -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 => {