in src/routes/System/AppAuth/AddModal.js [268:390]
message: getIntlContent("SHENYU.AUTH.TELPHONE"),
},
],
initialValue: phone,
})(
<Input
allowClear
placeholder={getIntlContent("SHENYU.AUTH.TELPHONE")}
/>,
)}
</FormItem>
<FormItem
label={getIntlContent("SHENYU.AUTH.EXPANDINFO")}
{...formItemLayout}
>
{getFieldDecorator("extInfo", {
rules: [{ message: getIntlContent("SHENYU.AUTH.EXPANDINFO") }],
initialValue: extInfo,
})(
<TextArea
placeholder={getIntlContent("SHENYU.AUTH.INPUTEXPANDINFO")}
rows={3}
/>,
)}
</FormItem>
<FormItem
label={getIntlContent("SHENYU.AUTH.OPENPATH")}
{...formItemLayout}
>
{getFieldDecorator("open", {
initialValue: open,
valuePropName: "checked",
})(<Switch onChange={this.handleOpenChange} />)}
</FormItem>
{/* 添加删除行 */}
<div className={styles.condition}>
{/* 输入框左侧标题
<h3 className={styles.header}>
authParamVOList:{" "}
</h3> */}
<div>
{this.state.selectorConditions.map((item, index) => {
return (
<ul key={index}>
<li>
<div className={styles.title}>
{getIntlContent("SHENYU.AUTH.APPNAME")}:
</div>
</li>
<li>
<Input
allowClear
onChange={(e) => {
this.conditionChange(
index,
"appName",
e.target.value,
);
}}
value={item.appName}
className={styles.appName}
/>
</li>
<li>
<div className={styles.title}>
{getIntlContent("SHENYU.AUTH.PARAMS")}:
</div>
</li>
<li>
<TextArea
rows={3}
onChange={(e) => {
this.conditionChange(
index,
"appParam",
e.target.value,
);
}}
value={item.appParam}
className={styles.appParam}
/>
</li>
<li>
<Button
className={styles.btn}
type="danger"
onClick={() => {
this.handleDelete(index);
}}
>
{getIntlContent("SHENYU.COMMON.DELETE.NAME")}
</Button>
</li>
</ul>
);
})}
</div>
<Button
onClick={this.handleAdd}
className={styles.btn}
type="primary"
>
{getIntlContent("SHENYU.COMMON.ADD")}
</Button>
</div>
<FormItem
{...formItemLayout}
label={getIntlContent("SHENYU.SYSTEM.STATUS")}
>
{getFieldDecorator("enabled", {
initialValue: enabled,
valuePropName: "checked",
})(<Switch />)}
</FormItem>
{pathTableVisible && (
<div>
<Button
onClick={this.handleAddPath}
type="primary"
style={{