From 26d0fa42ea8c63a87e8ef93d0915f75f46fb1f9c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 24 三月 2022 11:09:53 +0800
Subject: [PATCH] 2022-03-24

---
 src/menu/components/form/formaction/formconfig.jsx |   45 +++++++++++++++++++++++++++++----------------
 1 files changed, 29 insertions(+), 16 deletions(-)

diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx
index 1a84804..a66f6d7 100644
--- a/src/menu/components/form/formaction/formconfig.jsx
+++ b/src/menu/components/form/formaction/formconfig.jsx
@@ -10,7 +10,7 @@
  */
 
 export function getActionForm (card, functip, tableName, usefulFields, modules) {
-  const isApp = sessionStorage.getItem('appType') === 'pc'
+  const appType = sessionStorage.getItem('appType')
   let _type = '鎻愪氦'
   if (card.type === 'prev') {
     _type = '涓婁竴姝�'
@@ -19,25 +19,27 @@
   }
 
   let menulist = []
-  if (isApp) {
+  if (appType === 'pc' || appType === 'mob') {
     menulist = sessionStorage.getItem('appMenus')
     if (menulist) {
       try {
         menulist = JSON.parse(menulist)
         menulist = menulist.map(item => ({value: item.MenuID, text: item.MenuName}))
-      } catch {
+      } catch (e) {
         menulist = []
       }
     } else {
       menulist = []
     }
-    menulist.unshift({value: '', text: '鏃�'})
+    if (appType === 'mob') {
+      menulist.push({value: 'goback', text: '杩斿洖锛堜笂涓�椤碉級'})
+    }
   } else {
     menulist = sessionStorage.getItem('fstMenuList')
     if (menulist) {
       try {
         menulist = JSON.parse(menulist)
-      } catch {
+      } catch (e) {
         menulist = []
       }
     } else {
@@ -242,13 +244,23 @@
       readonly: false
     },
     {
-      type: isApp ? 'select' : 'cascader',
+      type: (appType === 'pc' || appType === 'mob') ? 'select' : 'cascader',
       key: 'linkmenu',
-      label: '鎵撳紑鑿滃崟',
+      label: '涓嬩竴姝ユ搷浣�',
       tooltip: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��',
       initVal: card.linkmenu,
+      help: '鍙繑鍥炰笂涓�椤点��',
       required: false,
+      allowClear: true,
       options: menulist
+    },
+    {
+      type: 'text',
+      key: 'output',
+      label: '杩斿洖鍊�',
+      tooltip: '鎵ц鎴愬姛鍚庣殑杩斿洖鍊笺��',
+      initVal: card.output || '',
+      required: false
     },
     {
       type: 'radio',
@@ -256,7 +268,7 @@
       label: '鎵撳紑鏂瑰紡',
       initVal: card.open || 'blank',
       required: false,
-      forbid: !isApp,
+      forbid: appType !== 'pc',
       options: [{
         value: 'blank',
         text: '鏂扮獥鍙�'
@@ -276,16 +288,17 @@
     },
     {
       type: 'radio',
-      key: 'enable',
-      label: '鏄惁鏄剧ず',
-      initVal: card.enable || 'false',
-      required: false,
+      key: 'reload',
+      label: '涓婁竴椤�',
+      initVal: card.reload || 'false',
+      tooltip: '鎴愬姛鍚庢槸鍚﹀埛鏂颁笂椤电殑鏁版嵁銆傛敞锛氬湪鏄庣浜慉PP鎴栧皬绋嬪簭涓湁鏁堛��',
+      forbid: appType !== 'mob',
       options: [{
-        value: 'true',
-        text: '鏄剧ず'
-      }, {
         value: 'false',
-        text: '闅愯棌'
+        text: '涓嶅埛鏂�'
+      }, {
+        value: 'true',
+        text: '鍒锋柊'
       }]
     },
   ]

--
Gitblit v1.8.0