king
2021-07-30 f6a1ab6a58215cf7546976a86eb6face1a7be32f
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