From 9282e645d0205f85bf0d424a0b2f5c42c2aae1d9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 21 五月 2025 11:40:32 +0800 Subject: [PATCH] 2025-05-21 --- src/menu/datasource/verifycard/settingform/index.jsx | 34 +++++++++++++++++++++++++++++++--- 1 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/menu/datasource/verifycard/settingform/index.jsx b/src/menu/datasource/verifycard/settingform/index.jsx index 147c84a..92b8896 100644 --- a/src/menu/datasource/verifycard/settingform/index.jsx +++ b/src/menu/datasource/verifycard/settingform/index.jsx @@ -38,11 +38,24 @@ const { config, setting } = this.props let menu = window.GLOB.customMenu - let modules = MenuUtils.getSupModules(menu.components, config.uuid, menu.interfaces) + let modules = [] let ismain = false if (menu.Template === 'BaseTable') { ismain = config.name === '涓昏〃' + } + + if (config.type === 'interface') { + menu.components.forEach(item => { + if (item.type === 'module' && item.subtype === 'account') { + modules.push({ + value: item.uuid, + label: item.name + }) + } + }) + } else { + modules = MenuUtils.getSupModules(menu.components, config.uuid, menu.interfaces) } modules.unshift({ @@ -206,6 +219,7 @@ sm: { span: 16 } } } + let hasUp = !['balcony', 'menubar', 'commonbar', 'tabbar', 'invTable'].includes(config.subtype) && (!config.wrap || config.wrap.supType !== 'multi') && MenuType !== 'billPrint' return ( <div className="model-datasource-setting-form-box"> @@ -461,7 +475,7 @@ </Radio.Group>)} </Form.Item> </Col> : null} - {!['balcony', 'menubar', 'commonbar', 'tabbar', 'invTable'].includes(config.subtype) && (!config.wrap || config.wrap.supType !== 'multi') && MenuType !== 'billPrint' ? <Col span={8}> + {hasUp ? <Col span={8}> <Form.Item label={ <Tooltip placement="topLeft" title={'璇ョ粍浠跺鏋滃彈鍏朵粬缁勪欢鎺у埗锛岃閫夐」鐩稿簲鐨勭粍浠讹紝娌℃湁鏃堕�夆�滄棤鈥濄��'}> <QuestionCircleOutlined className="mk-form-tip" /> @@ -666,7 +680,7 @@ </Col> : null} {config.subtype === 'dualdatacard' ? <Col span={8}> <Form.Item label={ - <Tooltip placement="topLeft" title="瀛愯〃鍦ㄤ富琛ㄤ腑鐨勬暟鎹泦鍚嶇О銆�"> + <Tooltip placement="topLeft" title="瀛愯〃鍦ㄤ富琛ㄤ腑鐨勬暟鎹泦鍚嶇О锛屼娇鐢� sub_data_string 鏃舵暟鎹互 JSON 瀛楃涓插舰寮忚繑鍥烇紙瀛楁闆嗕腑闇�娣诲姞 sub_data_string 瀛楁锛夛紱褰撲富琛ㄥ瓧娈靛瓨鍦� sub_data_string 涓斿�间笉涓虹┖鏃讹紝浼樺厛浣跨敤涓昏〃鐨� sub_data_string銆�"> <QuestionCircleOutlined className="mk-form-tip" /> 瀛愯〃瀛楁 </Tooltip> @@ -724,6 +738,20 @@ })(<InputNumber min={0} max={60000} precision={0} />)} </Form.Item> </Col> : null} + {hasUp && setting.supModule && setting.supModule[0] && setting.supModule[0] !== 'empty' ? <Col span={8}> + <Form.Item label={ + <Tooltip placement="topLeft" title="鏈幏鍙栧埌涓婄骇涓婚敭鍊肩殑鎻愮ず鏂囨湰銆�"> + <QuestionCircleOutlined className="mk-form-tip" /> + 涓婄骇绌哄�兼彁绀� + </Tooltip> + }> + {getFieldDecorator('supModTip', { + initialValue: setting.supModTip || '' + })( + <Input placeholder={''} autoComplete="off" /> + )} + </Form.Item> + </Col> : null} </Row> </Form> <Modal -- Gitblit v1.8.0