in src/routes/Plugin/Common/Selector.js [1355:1435]
message: getIntlContent("SHENYU.SELECTOR.INPUTNUMBER"),
},
],
})(
<Input
allowClear
placeholder={getIntlContent("SHENYU.SELECTOR.INPUTORDER")}
/>,
)}
</Item>
<Item label={" "} colon={false} {...formItemLayout}>
<div className={styles.layout}>
<Item
{...formCheckLayout}
label={getIntlContent("SHENYU.SELECTOR.CONTINUE")}
>
{getFieldDecorator("continued", {
initialValue: continued,
valuePropName: "checked",
rules: [{ required: true }],
})(<Switch />)}
</Item>
<Item
style={{ margin: "0 30px" }}
{...formCheckLayout}
label={getIntlContent("SHENYU.SELECTOR.PRINTLOG")}
>
{getFieldDecorator("loged", {
initialValue: loged,
valuePropName: "checked",
rules: [{ required: true }],
})(<Switch />)}
</Item>
<Item
{...formCheckLayout}
label={getIntlContent("SHENYU.SELECTOR.WHETHEROPEN")}
>
{getFieldDecorator("enabled", {
initialValue: enabled,
valuePropName: "checked",
rules: [{ required: true }],
})(<Switch />)}
</Item>
<Item
style={{ margin: "0 30px" }}
{...formCheckLayout}
label={getIntlContent("SHENYU.SELECTOR.MATCHRESTFUL")}
>
{getFieldDecorator("matchRestful", {
initialValue: matchRestful,
valuePropName: "checked",
rules: [{ required: true }],
})(<Switch />)}
</Item>
</div>
</Item>
</>
);
};
renderDiscoveryConfig = () => {
const { form, isAdd = true, discoveryConfig = {} } = this.props;
const {
discoveryModeDics,
upstreams,
recordCount,
discoveryHandler,
defaultValueList,
configPropsJson,
selectedDiscoveryValue,
} = this.state;
const { getFieldDecorator } = form;
return (
<>
<Item
label={getIntlContent("SHENYU.DISCOVERY.CONFIGURATION.TYPE")}
{...formItemLayout}
>
{getFieldDecorator("selectedDiscoveryType", {
rules: [
{