From e9c48bd7356462ba9257540b130a47a65ad1861d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 八月 2021 17:17:11 +0800
Subject: [PATCH] 2021-08-26

---
 src/utils/utils-custom.js |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js
index 058d369..601ab7f 100644
--- a/src/utils/utils-custom.js
+++ b/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

--
Gitblit v1.8.0