From 53a5b5bea0fb1efae2b1793e6735754e78982d63 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 19 十一月 2021 13:31:27 +0800
Subject: [PATCH] 2021-11-19

---
 src/templates/zshare/formconfig.jsx |  194 +++++++++++++++++++++++++++++-------------------
 1 files changed, 116 insertions(+), 78 deletions(-)

diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index ab0abab..0687e8d 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -2249,6 +2249,9 @@
     value: 'textarea',
     text: Formdict['model.form.textarea']
   }, {
+    value: 'rate',
+    text: '璇勫垎'
+  }, {
     value: 'color',
     text: Formdict['model.form.color']
   }, {
@@ -2310,6 +2313,9 @@
     }, {
       value: 'textarea',
       text: Formdict['model.form.textarea']
+    }, {
+      value: 'rate',
+      text: '璇勫垎'
     }, {
       value: 'funcvar',
       text: Formdict['header.form.funcvar']
@@ -2744,6 +2750,19 @@
     },
     {
       type: 'radio',
+      key: 'allowHalf',
+      label: '鍗婇��',
+      initVal: card.allowHalf || 'false',
+      options: [{
+        value: 'true',
+        text: '鏀寔'
+      }, {
+        value: 'false',
+        text: '涓嶆敮鎸�'
+      }]
+    },
+    {
+      type: 'radio',
       key: 'readonly',
       label: Formdict['header.form.readonly'],
       initVal: card.readonly || 'false',
@@ -2857,6 +2876,24 @@
       }]
     },
     {
+      type: 'number',
+      min: 1,
+      max: 100,
+      precision: 0,
+      key: 'rateCount',
+      label: '鎬绘暟',
+      initVal: card.rateCount || 5,
+      tooltip: '榛樿鍊间负5銆�',
+      required: false
+    },
+    {
+      type: 'icon',
+      key: 'character',
+      label: '鑷畾涔夊浘鏍�',
+      initVal: card.character || '',
+      required: false
+    },
+    {
       type: 'radio',
       key: 'dropdown',
       label: '涓嬫媺妗�',
@@ -2941,84 +2978,6 @@
     //   forbid: appType !== 'mob'
     // },
     {
-      type: 'number',
-      key: 'span',
-      min: 1,
-      max: 24,
-      precision: 0,
-      label: '琛ㄥ崟瀹藉害',
-      initVal: card.span || (['textarea', 'hint', 'checkcard', 'brafteditor'].includes(card.type) ? 24 : 12),
-      tooltip: '鏍呮牸甯冨眬鏁磋24绛夊垎銆�',
-      required: true,
-      forbid: appType === 'mob'
-    },
-    {
-      type: 'number',
-      key: 'labelwidth',
-      min: 1,
-      max: 100,
-      precision: 1,
-      label: '鍚嶇О瀹藉害',
-      initVal: card.labelwidth || 33.3,
-      tooltip: '鍚嶇О鍗犳嵁琛ㄥ崟瀹藉害鐨勭櫨鍒嗘瘮銆傛敞锛氬瓨鍦ㄥ鍒楄〃鍗曟椂锛屽綋鍓嶈〃鍗曞鏋滄兂瑕佸崰鎹暣琛屽彲鍙傜収浠ヤ笅姣斾緥锛屼袱鍒楋紙16.2锛夈�佷笁鍒楋紙10.5锛夈�佸洓鍒楋紙7.7锛�',
-      required: true,
-      forbid: appType === 'mob'
-    },
-    {
-      type: 'radio',
-      key: 'compress',
-      label: '鍘嬬缉',
-      initVal: card.compress || 'false',
-      tooltip: '鏂囦欢鍘嬬缉蹇呴』涓哄浘鐗囷紝鍥剧墖鏍煎紡涓簀pg銆乸ng銆乬if 鎴� jpeg',
-      options: [{
-        value: 'true',
-        text: Formdict['model.true']
-      }, {
-        value: 'false',
-        text: Formdict['model.false']
-      }]
-    },
-    {
-      type: 'number',
-      key: 'limit',
-      min: 0.01,
-      max: 1000,
-      precision: 2,
-      label: '璧风偣锛圡锛�',
-      initVal: card.limit || 2,
-      tooltip: '鍘嬬缉璧风偣锛屽皬浜庤捣鐐瑰�肩殑鏂囦欢涓嶈繘琛屽帇缂┿��',
-      required: true
-    },
-    {
-      type: 'textarea',
-      key: 'rduri',
-      label: '杞瓨鎺ュ彛',
-      rows: 1,
-      initVal: card.rduri || '',
-      tooltip: '鍥剧墖杞瓨鍦ㄥ悓涓�鍗曠偣鏈嶅姟鍣ㄤ笅鐨勫叾浠栦笟鍔$郴缁熴��',
-      required: false,
-      readonly: false
-    },
-    {
-      type: 'textarea',
-      key: 'proRduri',
-      label: '姝e紡鎺ュ彛',
-      rows: 1,
-      initVal: card.proRduri || '',
-      tooltip: '姝e紡绯荤粺杞瓨鎺ュ彛锛屽浘鐗囪浆瀛樺湪鍚屼竴鍗曠偣鏈嶅姟鍣ㄤ笅鐨勫叾浠栦笟鍔$郴缁熴��',
-      required: false,
-      readonly: false
-    },
-    {
-      type: 'text',
-      key: 'suffix',
-      label: '鍚庣紑鍚�',
-      tooltip: '鍙互涓婁紶鏂囦欢鐨勫悗缂�鍚嶏紝澶氫釜绫诲瀷鐢ㄩ�楀彿鍒嗛殧锛岀┖鍊兼椂涓嶆牎楠屻��',
-      initVal: card.suffix || '',
-      required: false,
-      readonly: false
-    },
-    {
       type: 'radio',
       key: 'encryption',
       label: '鍔犲瘑浼犺緭',
@@ -3090,6 +3049,85 @@
       forbid: appType !== 'mob'
     },
     {
+      type: 'radio',
+      key: 'compress',
+      label: '鍘嬬缉',
+      initVal: card.compress || 'false',
+      tooltip: '鏂囦欢鍘嬬缉蹇呴』涓哄浘鐗囷紝鍥剧墖鏍煎紡涓簀pg銆乸ng銆乬if 鎴� jpeg',
+      options: [{
+        value: 'true',
+        text: Formdict['model.true']
+      }, {
+        value: 'false',
+        text: Formdict['model.false']
+      }]
+    },
+    {
+      type: 'number',
+      key: 'limit',
+      min: 0.01,
+      max: 1000,
+      precision: 2,
+      label: '璧风偣锛圡锛�',
+      initVal: card.limit || 2,
+      tooltip: '鍘嬬缉璧风偣锛屽皬浜庤捣鐐瑰�肩殑鏂囦欢涓嶈繘琛屽帇缂┿��',
+      required: true
+    },
+    {
+      type: 'number',
+      key: 'span',
+      min: 1,
+      max: 24,
+      precision: 0,
+      label: '琛ㄥ崟瀹藉害',
+      initVal: card.span || (['textarea', 'hint', 'checkcard', 'brafteditor'].includes(card.type) ? 24 : 12),
+      tooltip: '鏍呮牸甯冨眬鏁磋24绛夊垎銆�',
+      required: true,
+      forbid: appType === 'mob'
+    },
+    {
+      type: 'number',
+      key: 'labelwidth',
+      min: 1,
+      max: 100,
+      precision: 1,
+      label: '鍚嶇О瀹藉害',
+      initVal: card.labelwidth || 33.3,
+      tooltip: '鍚嶇О鍗犳嵁琛ㄥ崟瀹藉害鐨勭櫨鍒嗘瘮銆傛敞锛氬瓨鍦ㄥ鍒楄〃鍗曟椂锛屽綋鍓嶈〃鍗曞鏋滄兂瑕佸崰鎹暣琛屽彲鍙傜収浠ヤ笅姣斾緥锛屼袱鍒楋紙16.2锛夈�佷笁鍒楋紙10.5锛夈�佸洓鍒楋紙7.7锛�',
+      required: true,
+      forbid: appType === 'mob'
+    },
+    {
+      type: 'textarea',
+      key: 'rduri',
+      label: '杞瓨鎺ュ彛',
+      rows: 1,
+      initVal: card.rduri || '',
+      tooltip: '鍥剧墖杞瓨鍦ㄥ悓涓�鍗曠偣鏈嶅姟鍣ㄤ笅鐨勫叾浠栦笟鍔$郴缁熴��',
+      required: false,
+      readonly: false
+    },
+    {
+      type: 'textarea',
+      key: 'proRduri',
+      label: '姝e紡鎺ュ彛',
+      rows: 1,
+      initVal: card.proRduri || '',
+      tooltip: '姝e紡绯荤粺杞瓨鎺ュ彛锛屽浘鐗囪浆瀛樺湪鍚屼竴鍗曠偣鏈嶅姟鍣ㄤ笅鐨勫叾浠栦笟鍔$郴缁熴��',
+      required: false,
+      readonly: false
+    },
+    {
+      type: 'text',
+      key: 'suffix',
+      label: '鍚庣紑鍚�',
+      tooltip: '鍙互涓婁紶鏂囦欢鐨勫悗缂�鍚嶏紝澶氫釜绫诲瀷鐢ㄩ�楀彿鍒嗛殧锛岀┖鍊兼椂涓嶆牎楠屻��',
+      initVal: card.suffix || '',
+      required: false,
+      readonly: false
+    },
+    
+    {
       type: 'select',
       key: 'supField',
       label: '涓婄骇琛ㄥ崟',

--
Gitblit v1.8.0