From 6ca240a14ccf55d4e0a94fff77e95f64db2cdfcc Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 11 十月 2024 17:34:25 +0800 Subject: [PATCH] 2024-10-11 --- src/menu/datasource/verifycard/settingform/index.jsx | 48 +++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 45 insertions(+), 3 deletions(-) diff --git a/src/menu/datasource/verifycard/settingform/index.jsx b/src/menu/datasource/verifycard/settingform/index.jsx index 97cedeb..7e5f409 100644 --- a/src/menu/datasource/verifycard/settingform/index.jsx +++ b/src/menu/datasource/verifycard/settingform/index.jsx @@ -105,6 +105,9 @@ if (values.interType === 'system' && values.onload === 'false') { values.sync = 'false' } + if (values.interType === 'system' && values.database === 'sso') { + values.sync = 'false' + } // 鏁版嵁婧愬墠绔獙璇� if (values.interType === 'system' && values.execute !== 'false' && values.dataresource) { @@ -438,6 +441,10 @@ { required: true, message: '璇疯緭鍏ラ粯璁ゆ帓搴�!' + }, + { + pattern: /^[^'+]+$/, + message: '鎺掑簭涓笉鍙娇鐢╘'涓�+' } ] })(<Input placeholder={'ID asc, UID desc'} autoComplete="off" />)} @@ -515,16 +522,27 @@ </Radio.Group>)} </Form.Item> </Col> : null} + {setting.interType === 'system' ? <Col span={8}> + <Form.Item label="鏁版嵁搴�"> + {getFieldDecorator('database', { + initialValue: setting.database || 'local' + })( + <Radio.Group> + <Radio value="local">鏈湴</Radio> + <Radio value="sso">鍗曠偣</Radio> + </Radio.Group>)} + </Form.Item> + </Col> : null} {/* 1銆佷笉鍒嗛〉涓斾笉瀛樺湪涓婄骇妯″潡 */} {!['navbar', 'interface', 'calendar'].includes(config.type) && !['editable', 'basetable', 'dualdatacard', 'invoice', 'invTable'].includes(config.subtype) && (!config.pageable || (config.pageable && setting.laypage === 'false')) && (setting.supModule.length === 0 || setting.supModule[0] === 'empty') && setting.interType === 'system' && setting.onload !== 'false' ? <Col span={8}> <Form.Item label={ - <Tooltip placement="topLeft" title={'鍒濆鍖栧姞杞芥椂锛屾槸鍚︿笌鍏朵粬缁勪欢涓�鍚屽姞杞芥暟鎹紝娉細濡傝彍鍗曟湭浣跨敤鍚庣缂撳瓨锛屽垯鏌ヨ璇彞澶т簬8000瀛楃鏃舵棤鏁堛��'}> + <Tooltip placement="topLeft" title={'鍒濆鍖栧姞杞芥椂锛屾槸鍚︿笌鍏朵粬缁勪欢涓�鍚屽姞杞芥暟鎹��'}> <QuestionCircleOutlined className="mk-form-tip" /> 鍚屾鏌ヨ </Tooltip> }> {getFieldDecorator('sync', { - initialValue: setting.sync || 'true' + initialValue: setting.sync || 'false' })( <Radio.Group> <Radio value="true">鏄�</Radio> @@ -575,6 +593,18 @@ <Radio.Group onChange={(e) => {this.onOptionChange(e.target.value, 'onload')}}> <Radio value="true">鍔犺浇</Radio> <Radio value="false">涓嶅姞杞�</Radio> + </Radio.Group> + )} + </Form.Item> + </Col> : null} + {window.backend && setting.interType === 'system' ? <Col span={8}> + <Form.Item label="浜嬪姟"> + {getFieldDecorator('transact', { + initialValue: setting.transact || 'false' + })( + <Radio.Group onChange={(e) => {this.onOptionChange(e.target.value, 'transact')}}> + <Radio value="true">鍚敤</Radio> + <Radio value="false">绂佺敤</Radio> </Radio.Group> )} </Form.Item> @@ -641,7 +671,7 @@ rules: [ { required: true, - message: '璇疯緭鍏ラ粯璁ゆ帓搴�!' + message: '璇疯緭鍏ュ瓙琛ㄥ瓧娈�!' } ] })(<Input placeholder={''} autoComplete="off" />)} @@ -677,6 +707,18 @@ )} </Form.Item> </Col> : null} + {setting.onload !== 'false' ? <Col span={8}> + <Form.Item label={ + <Tooltip placement="topLeft" title="鍙欢杩熷垵濮嬪寲鏁版嵁鐨勫姞杞芥椂闂达紝鍗曚綅姣锛坢s锛夈��"> + <QuestionCircleOutlined className="mk-form-tip" /> + 寤舵椂鍔犺浇 + </Tooltip> + }> + {getFieldDecorator('delay', { + initialValue: setting.delay, + })(<InputNumber min={0} max={60000} precision={0} />)} + </Form.Item> + </Col> : null} </Row> </Form> <Modal -- Gitblit v1.8.0