From a757b75163d77acc5111637fbe20ec61d895a72b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 11 八月 2021 23:15:29 +0800
Subject: [PATCH] 2021-08-11

---
 src/menu/components/share/actioncomponent/formconfig.jsx |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx
index edf6181..22279ab 100644
--- a/src/menu/components/share/actioncomponent/formconfig.jsx
+++ b/src/menu/components/share/actioncomponent/formconfig.jsx
@@ -60,7 +60,6 @@
   ]
   
   if (isApp) {
-    opentypes = opentypes.filter(item => item.value !== 'tab')
     pageTemps = [
       // { value: 'page', text: '鑿滃崟' },
       { value: 'linkpage', text: '鍏宠仈鑿滃崟' },
@@ -75,16 +74,21 @@
     if (appMenus) {
       try {
         appMenus = JSON.parse(appMenus)
-        appMenus = appMenus.map(item => ({value: item.MenuID, text: item.MenuName}))
       } catch {
         appMenus = []
       }
     } else {
       appMenus = []
     }
+
+    if (appType === 'mob') {
+      opentypes = opentypes.filter(item => ['pop', 'prompt', 'exec', 'innerpage'].includes(item.value))
+    } else {
+      opentypes = opentypes.filter(item => item.value !== 'tab')
+    }
   }
   
-  if (type === 'chart') {
+  if (type === 'chart' && appType !== 'mob') {
     opentypes = opentypes.filter(item => item.value === 'excelIn' || item.value === 'excelOut')
   }
 
@@ -110,7 +114,7 @@
       type: 'radio',
       key: 'funcType',
       label: Formdict['header.form.funcType'],
-      initVal: card.funcType || (isApp ? 'changeuser' : ''),
+      initVal: card.funcType || '',
       required: true,
       options: funTypes
     },
@@ -410,7 +414,7 @@
     {
       type: 'radio',
       key: 'show',
-      label: "鏄剧ず涓�",
+      label: '鏄剧ず涓�',
       initVal: card.show || 'button',
       required: true,
       options: [{

--
Gitblit v1.8.0