From c33ac9ddcdbed91bd2267bed2a96199441806a04 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 22 九月 2022 17:00:15 +0800
Subject: [PATCH] 2022-09-22

---
 src/menu/components/share/actioncomponent/formconfig.jsx |   45 ++++++++++++++++++++++++++++-----------------
 1 files changed, 28 insertions(+), 17 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx
index 149307b..970a91a 100644
--- a/src/menu/components/share/actioncomponent/formconfig.jsx
+++ b/src/menu/components/share/actioncomponent/formconfig.jsx
@@ -173,7 +173,7 @@
   if (type === 'card') {
     opentypes.push({
       value: 'form',
-      text: '琛ㄥ崟锛堝紑鍏虫垨鍕鹃�夋锛�'
+      text: '琛ㄥ崟'
     })
   } else if (card.OpenType === 'form') { // 鎷栨嫿娣诲姞绫诲瀷杞崲
     card.OpenType = 'pop'
@@ -197,6 +197,16 @@
       value: 'closetab',
       text: '鍏抽棴鏍囩'
     }]
+  }
+
+  let formTypes = []
+  if (appType === 'mob') {
+    formTypes = [{
+      value: 'scan',
+      text: '鎵弿'
+    }]
+  } else if (card.formType === 'scan') {
+    card.formType = 'switch'
   }
 
   let forms = [
@@ -245,7 +255,8 @@
       }, {
         value: 'radio',
         text: '鍕鹃�夋'
-      }]
+      }, 
+      ...formTypes]
     },
     {
       type: 'select',
@@ -908,6 +919,21 @@
       required: false
     },
     {
+      type: 'radio',
+      key: 'hidden',
+      label: '闅愯棌',
+      initVal: card.hidden || 'false',
+      tooltip: '闅愯棌鍚庢寜閽湪椤甸潰涓笉鏄剧ず锛屼笖涓嶅弬涓庢潈闄愬垎閰嶃��',
+      required: false,
+      options: [{
+        value: 'false',
+        text: '鍚�'
+      }, {
+        value: 'true',
+        text: '鏄�'
+      }]
+    },
+    {
       type: 'splitLine',
       key: 'title',
       label: '琛ㄥ崟',
@@ -966,21 +992,6 @@
       label: '鍏抽棴鎻愮ず',
       initVal: card.closeText || '',
       required: false,
-    },
-    {
-      type: 'radio',
-      key: 'hidden',
-      label: '闅愯棌',
-      initVal: card.hidden || 'false',
-      tooltip: '闅愯棌鍚庢寜閽湪椤甸潰涓笉鏄剧ず锛屼笖涓嶅弬涓庢潈闄愬垎閰嶃��',
-      required: false,
-      options: [{
-        value: 'false',
-        text: '鍚�'
-      }, {
-        value: 'true',
-        text: '鏄�'
-      }]
     },
     {
       type: 'radio',

--
Gitblit v1.8.0