From 73d56e1024cf420eff2aae3710886c84d56a385f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 04 六月 2022 14:48:36 +0800
Subject: [PATCH] 2022-06-04

---
 src/menu/components/share/actioncomponent/actionform/index.jsx |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx
index 4d95048..d4cfb8c 100644
--- a/src/menu/components/share/actioncomponent/actionform/index.jsx
+++ b/src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -348,12 +348,23 @@
 
         reRequired.linkmenu = false
         reTooltip.linkmenu = '浣跨敤鎵爜鐧诲綍鍔熻兘鎴栬彍鍗曡烦杞姛鑳芥椂锛岄渶閫夋嫨璺宠浆鐨勮彍鍗曘��'
+      } else if (_funcType === 'copyurl') {
+        shows.push('linkmenu')
+
+        reRequired.linkmenu = false
+        reTooltip.linkmenu = '鍙互鎸囧畾鍒嗕韩鐨勭洰鏍囧湴鍧�銆�'
+
+        if (this.record.linkmenu) {
+          shows.push('Ot')
+          reOptions.Ot = requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value))
+        }
       } else if (_funcType === 'goBack') {
         shows.push('reload')
       } else if (_funcType === 'megvii') {
         shows.push('subFunc', 'progress')
       } else if (_funcType === 'pay') {
-        shows.push('payType')
+        shows.push('payType', 'Ot')
+        reOptions.Ot = requireOptions.filter(op => ['requiredSgl'].includes(op.value))
       }
     }
     
@@ -668,7 +679,7 @@
         if (item.extendName) {
           content = <Select
             showSearch
-            allowClear={item.allowClear === true}
+            allowClear={item.allowClear === true || !item.required}
             filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
               option.props.extend.toLowerCase().indexOf(input.toLowerCase()) >= 0}
             onChange={(value) => {this.optionChange(item.key, value)}}
@@ -683,7 +694,7 @@
         } else {
           content = <Select
             showSearch
-            allowClear={item.allowClear === true}
+            allowClear={item.allowClear === true || !item.required}
             filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
             onChange={(value) => {this.optionChange(item.key, value)}}
             getPopupContainer={() => document.getElementById('winter')}

--
Gitblit v1.8.0