king
2021-08-26 e9c48bd7356462ba9257540b130a47a65ad1861d
src/utils/utils-custom.js
@@ -97,6 +97,11 @@
          value: item.uuid,
          label: item.name
        }
      } else if (item.type === 'form') { // 数据格式,存在数据源
        return {
          value: item.uuid,
          label: item.name
        }
      } else if (item.type === 'tabs') {
        let _item = {
          value: item.uuid,
@@ -372,6 +377,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 +438,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