From bd6521dcc02d1b224016c4df9e36388668989d0c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 10 七月 2023 00:58:17 +0800
Subject: [PATCH] 2023-07-10

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

diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx
index ace6550..ca29b86 100644
--- a/src/menu/components/form/formaction/formconfig.jsx
+++ b/src/menu/components/form/formaction/formconfig.jsx
@@ -6,6 +6,7 @@
 
 export function getActionForm (card, functip, tableName, usefulFields, modules, anchors) {
   const appType = sessionStorage.getItem('appType')
+  let viewType = sessionStorage.getItem('editMenuType') // 寮圭獥 popview
   let _type = '鎻愪氦'
   if (card.type === 'prev') {
     _type = '涓婁竴姝�'
@@ -40,6 +41,18 @@
     } else {
       menulist = []
     }
+  }
+
+  let refresh = []
+  if (!appType && viewType === 'popview') { // 寮圭獥鏍囩
+    refresh.push({
+      value: 'closepoptab', // 鍏抽棴寮圭獥鏍囩
+      text: '鍏抽棴寮圭獥'
+    })
+    refresh.push({
+      value: 'popclose',  // 鎵ц寮圭獥鍏抽棴鏃剁殑鍒锋柊
+      text: '鍒锋柊婧愮粍浠�'
+    })
   }
 
   return [
@@ -310,7 +323,7 @@
       }, {
         value: 'mainline',
         text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
-      }]
+      }, ...refresh]
     },
     {
       type: (appType === 'pc' || appType === 'mob') ? 'select' : 'cascader',

--
Gitblit v1.8.0