From 63f3d869e07ee126b1308587ab75f3b6b756fd01 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 03 八月 2024 17:12:08 +0800 Subject: [PATCH] 2024-08-03 --- src/menu/datasource/verifycard/settingform/index.jsx | 40 +++++++++++++++++++++++++++++++++------- 1 files changed, 33 insertions(+), 7 deletions(-) diff --git a/src/menu/datasource/verifycard/settingform/index.jsx b/src/menu/datasource/verifycard/settingform/index.jsx index 560e5d9..56093f1 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) { @@ -414,10 +417,10 @@ {getFieldDecorator('primaryKey', { initialValue: setting.primaryKey || '' })( - <Select> + <Select showSearch filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}> {columns.map((option, i) => <Select.Option key={i} value={option.field}> - {option.label} + {`${option.label}锛�${option.field}锛塦} </Select.Option> )} </Select> @@ -515,6 +518,17 @@ </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={ @@ -524,7 +538,7 @@ </Tooltip> }> {getFieldDecorator('sync', { - initialValue: setting.sync || 'true' + initialValue: setting.sync || 'false' })( <Radio.Group> <Radio value="true">鏄�</Radio> @@ -652,10 +666,10 @@ {getFieldDecorator('subKey', { initialValue: setting.subKey || '' })( - <Select> + <Select showSearch filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}> {this.props.subColumns.map((option, i) => <Select.Option key={i} value={option.field}> - {option.label} + {`${option.label}锛�${option.field}锛塦} </Select.Option> )} </Select> @@ -667,16 +681,28 @@ {getFieldDecorator('subBID', { initialValue: setting.subBID || '' })( - <Select> + <Select showSearch filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}> {this.props.subColumns.map((option, i) => <Select.Option key={i} value={option.field}> - {option.label} + {`${option.label}锛�${option.field}锛塦} </Select.Option> )} </Select> )} </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