|
|
@@ -259,7 +259,9 @@ export default {
|
|
|
id: code,
|
|
|
bdName: name,
|
|
|
bdNote: description,
|
|
|
- bdConfiguration: JSON.stringify(items.map(item => {
|
|
|
+ bdConfiguration: JSON.stringify(items.sort((a, b) => {
|
|
|
+ return a.layout.y - b.layout.y || a.layout.x - b.layout.x
|
|
|
+ }).map(item => {
|
|
|
if(item.chartType === 'dataView') {
|
|
|
return {
|
|
|
...item,
|