From 1f5c6ac307a134dfa45b64c5723f2481ead9f213 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 16 七月 2023 16:23:09 +0800
Subject: [PATCH] 2023-07-16

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

diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx
index ace6550..9d78a8e 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 = '涓婁竴姝�'
@@ -42,10 +43,29 @@
     }
   }
 
+  let refresh = []
+  if (viewType === 'popview') { // 寮圭獥鏍囩
+    refresh.push({
+      value: 'closepoptab', // 鍏抽棴寮圭獥鏍囩
+      text: '鍏抽棴寮圭獥'
+    })
+    refresh.push({
+      value: 'popclose',  // 鎵ц寮圭獥鍏抽棴鏃剁殑鍒锋柊
+      text: '鍒锋柊婧愮粍浠�'
+    })
+  }
+
   return [
     {
       type: 'tip',
       key: 'type',
+      label: '鎸夐挳绫诲瀷',
+      initVal: card.type,
+      forbid: true
+    },
+    {
+      type: 'tip',
+      key: 'typeName',
       label: '鎸夐挳绫诲瀷',
       initVal: _type
     },
@@ -282,6 +302,22 @@
       }]
     },
     {
+      type: 'text',
+      key: 'ContentType',
+      label: 'Content-Type',
+      initVal: card.ContentType || '',
+      tooltip: '榛樿鍊硷細application/x-www-form-urlencoded;charset=UTF-8',
+      required: false
+    },
+    {
+      type: 'text',
+      key: 'outerBlacklist',
+      label: '瀛楁榛戝悕鍗�',
+      initVal: card.outerBlacklist || '',
+      tooltip: '涓嶉渶瑕佸洖浼犵殑瀛楁鍙缃瓧娈甸粦鍚嶅崟锛屽涓�艰鐢ㄩ�楀彿鍒嗛殧銆�',
+      required: false
+    },
+    {
       type: 'radio',
       key: 'Ot',
       label: '琛岃缃�',
@@ -310,7 +346,7 @@
       }, {
         value: 'mainline',
         text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
-      }]
+      }, ...refresh]
     },
     {
       type: (appType === 'pc' || appType === 'mob') ? 'select' : 'cascader',

--
Gitblit v1.8.0