From a2df1bad33874fc6d9f96b0ceb1a6ce97b2e7e80 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 26 五月 2020 19:35:40 +0800
Subject: [PATCH] 2020-05-26

---
 src/templates/zshare/formconfig.jsx |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index 0c439a9..188b328 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -1582,10 +1582,10 @@
     {
       type: 'radio',
       key: 'label',
-      label: '鏂囨湰鏍囩',
+      label: '鏍囨敞-鍊�',
       initVal: card.label || (card.chartType === 'pie' ? 'true' : 'false'),
       required: false,
-      forbid: !['pie', 'line'].includes(card.chartType),
+      forbid: !['pie', 'bar', 'line'].includes(card.chartType),
       options: [{
         value: 'true',
         text: '鏄剧ず'
@@ -1650,7 +1650,18 @@
       forbid: !['line', 'bar'].includes(card.chartType),
       hidden: card.datatype !== 'statistics',
       required: true
-    },
+    }, {
+      type: 'number',
+      key: 'correction',
+      label: '鏁版嵁淇',
+      tooltip: '褰撴暟鎹」灏戜簬璁剧疆鍊兼椂锛岀郴缁熶細鑷姩淇锛堥伩鍏嶆煴褰㈠浘杩囧锛�,鍦ㄨ嚜瀹氫箟涓紝璁剧疆涓烘姌绾垮浘鏃跺け鏁堛��',
+      min: 5,
+      max: 30,
+      decimal: 0,
+      initVal: card.correction,
+      forbid: !['bar'].includes(card.chartType),
+      required: false
+    }
   ]
 }
 

--
Gitblit v1.8.0