From 31ec63f0419895876cbaba99637a884a32d33d0d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 01 九月 2021 10:31:45 +0800
Subject: [PATCH] 2021-09-01

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

diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx
index edf6181..04945f0 100644
--- a/src/menu/components/share/actioncomponent/formconfig.jsx
+++ b/src/menu/components/share/actioncomponent/formconfig.jsx
@@ -56,11 +56,11 @@
 
   let funTypes = [
     { value: 'changeuser', text: Formdict['header.form.func.changeuser'] },
-    { value: 'print', text: '鏍囩鎵撳嵃' }
+    { value: 'print', text: '鏍囩鎵撳嵃' },
+    { value: 'closetab', text: '鏍囩鍏抽棴' },
   ]
   
   if (isApp) {
-    opentypes = opentypes.filter(item => item.value !== 'tab')
     pageTemps = [
       // { value: 'page', text: '鑿滃崟' },
       { value: 'linkpage', text: '鍏宠仈鑿滃崟' },
@@ -75,16 +75,27 @@
     if (appMenus) {
       try {
         appMenus = JSON.parse(appMenus)
-        appMenus = appMenus.map(item => ({value: item.MenuID, text: item.MenuName}))
-      } catch {
+      } catch (e) {
         appMenus = []
       }
     } else {
       appMenus = []
     }
+
+    if (appType === 'mob') {
+      opentypes = opentypes.filter(item => ['pop', 'prompt', 'exec', 'innerpage', 'funcbutton'].includes(item.value))
+      funTypes = [
+        { value: 'mkBinding', text: '寮�閫氭壂鐮佺櫥褰�' },
+        { value: 'mkUnBinding', text: '鐢ㄦ埛瑙g粦' },
+        { value: 'scan', text: '鎵竴鎵�' },
+        { value: 'reAuth', text: '閲嶆柊鎺堟潈' },
+      ]
+    } 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')
   }
 
@@ -107,10 +118,10 @@
       options: opentypes
     },
     {
-      type: 'radio',
+      type: 'select',
       key: 'funcType',
       label: Formdict['header.form.funcType'],
-      initVal: card.funcType || (isApp ? 'changeuser' : ''),
+      initVal: card.funcType || '',
       required: true,
       options: funTypes
     },
@@ -327,6 +338,15 @@
       options: menulist
     },
     {
+      type: 'cascader',
+      key: 'refreshTab',
+      label: '鍒锋柊鏍囩',
+      initVal: card.refreshTab || [],
+      required: false,
+      forbid: isApp,
+      options: menulist
+    },
+    {
       type: 'select',
       key: 'execSuccess',
       label: Formdict['model.form.afterSuccess'],
@@ -410,7 +430,7 @@
     {
       type: 'radio',
       key: 'show',
-      label: "鏄剧ず涓�",
+      label: '鏄剧ず涓�',
       initVal: card.show || 'button',
       required: true,
       options: [{
@@ -546,6 +566,15 @@
       options: appMenus
     },
     {
+      type: 'text',
+      key: 'output',
+      label: '杩斿洖鍊�',
+      tooltip: '鎵ц鎴愬姛鍚庣殑杩斿洖鍊笺��',
+      initVal: card.output || '',
+      forbid: appType !== 'pc' && appType !== 'mob',
+      required: false
+    },
+    {
       type: 'radio',
       key: 'open',
       label: '鎵撳紑鏂瑰紡',
@@ -559,7 +588,53 @@
         value: 'self',
         text: '褰撳墠绐楀彛'
       }]
-    }
+    },
+    {
+      type: 'radio',
+      key: 'display',
+      label: '鏄剧ず鏂瑰紡',
+      initVal: card.display || 'modal',
+      required: true,
+      options: [{
+        value: 'modal',
+        text: '妯℃�佹'
+      }, {
+        value: 'drawer',
+        text: '鎶藉眽'
+      }]
+    },
+    {
+      type: 'number',
+      key: 'ratio',
+      min: 1,
+      max: 24,
+      precision: 0,
+      label: '姣斾緥',
+      initVal: card.ratio || 85,
+      tooltip: '灏忎簬100涓哄搴︼紙鎴栭珮搴︼級鐧惧垎姣旓紝澶т簬100涓哄儚绱犲�笺��',
+      required: true
+    },
+    {
+      type: 'radio',
+      key: 'placement',
+      label: '鎶藉眽鏂瑰悜',
+      initVal: card.placement || 'right',
+      tooltip: '浣跨敤鎶藉眽鏃舵湁鏁堛��',
+      required: false,
+      options: [{
+        value: 'right',
+        text: '鍙充晶'
+      }, {
+        value: 'left',
+        text: '宸︿晶'
+      }, {
+        value: 'top',
+        text: '涓婁晶'
+      }, {
+        value: 'bottom',
+        text: '涓嬩晶'
+      }]
+    },
   ]
 
   return forms

--
Gitblit v1.8.0