From cc1d7095ec6df622efbdaaabe3dec78ca3599d90 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 27 五月 2022 17:01:14 +0800
Subject: [PATCH] X轴自定义名称长度

---
 src/utils/utils.js |   57 ---------------------------------------------------------
 1 files changed, 0 insertions(+), 57 deletions(-)

diff --git a/src/utils/utils.js b/src/utils/utils.js
index b3a0d14..413aa1e 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -705,63 +705,6 @@
   }
 
   /**
-   * @description 鑾峰彇鎼滅储鐢ㄤ簬姝e垯鏇挎崲
-   * @param {Array}   searches     鎼滅储鏉′欢
-   * @return {String}  searchText  鎷兼帴缁撴灉
-   */
-  static getRegOptions (searches) {
-    if (!searches || searches.length === 0) return []
-
-    let options = []
-    let fieldmap = new Map()
-    searches.forEach(search => {
-      let item = {
-        key: search.field,
-        value: '0'
-      }
-
-      if (fieldmap.has(item.key)) {
-        item.key = item.key + '1'
-      }
-
-      fieldmap.set(item.key, true)
-
-      if (search.type === 'group') {
-        options.push({
-          key: search.field,
-          value: '0'
-        })
-        options.push({
-          key: search.datefield,
-          value: '0'
-        })
-        options.push({
-          key: search.datefield + '1',
-          value: '0'
-        })
-        options.push(item)
-      } else if (['datemonth', 'dateweek', 'daterange'].includes(search.type)) {
-        options.push(item)
-        options.push({
-          key: item.key + '1',
-          value: '0'
-        })
-      } else if (search.type === 'text' || search.type === 'select') {
-        item.key.split(',').forEach(field => {
-          let cell = JSON.parse(JSON.stringify(item))
-          cell.key = field
-
-          options.push(cell)
-        })
-      } else {
-        options.push(item)
-      }
-    })
-
-    return options
-  }
-
-  /**
    * @description 鑾峰彇鍥剧墖鐪熷疄璺緞
    * @return {String}    url 鍥剧墖璺緞
    */

--
Gitblit v1.8.0