From f6a1ab6a58215cf7546976a86eb6face1a7be32f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 30 七月 2021 15:37:17 +0800 Subject: [PATCH] 2021-07-30 --- src/utils/utils-custom.js | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js index 058d369..e79cd52 100644 --- a/src/utils/utils-custom.js +++ b/src/utils/utils-custom.js @@ -372,6 +372,13 @@ }) } }) + } else if (item.type === 'balcony') { + if (item.elements) { + item.elements = item.elements.map(cell => { + cell.uuid = this.getuuid() + return cell + }) + } } else if (item.type === 'table' && item.subtype === 'normaltable' && item.cols) { let loopCol = (col) => { col.subcols = col.subcols.map(c => { @@ -426,7 +433,24 @@ return cell }) } - if (item.search) { + if (item.type === 'topbar') { + if (item.search && item.search.fields) { + item.search.fields = item.search.fields.map(cell => { + cell.uuid = this.getuuid() + return cell + }) + } + if (item.search && item.search.groups) { + item.search.groups = item.search.groups.map(cell => { + cell.uuid = this.getuuid() + cell.fields = cell.fields.map(m => { + m.uuid = this.getuuid() + return m + }) + return cell + }) + } + } else if (item.search) { item.search = item.search.map(cell => { cell.uuid = this.getuuid() return cell -- Gitblit v1.8.0