mirror of https://github.com/openspug/spug
U 优化表单帮助提示信息
parent
f116b62f57
commit
b7c4fb358a
|
@ -58,12 +58,18 @@ class ComForm extends React.Component {
|
||||||
<Input placeholder="请输入邮箱地址"/>
|
<Input placeholder="请输入邮箱地址"/>
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="微信Token">
|
<Form.Item label="微信Token" extra={
|
||||||
|
<a target="_blank" rel="noopener noreferrer"
|
||||||
|
href="https://spug.dev/docs/alarm-contact/">如何获取微信 Token ?</a>}>
|
||||||
{getFieldDecorator('wx_token', {initialValue: info['wx_token']})(
|
{getFieldDecorator('wx_token', {initialValue: info['wx_token']})(
|
||||||
<Input placeholder="请输入微信token"/>
|
<Input placeholder="请输入微信token"/>
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="钉钉">
|
<Form.Item label="钉钉" extra={<span>
|
||||||
|
钉钉收不到通知?请参考
|
||||||
|
<a target="_blank" rel="noopener noreferrer"
|
||||||
|
href="https://spug.dev/docs/install-error/#%E9%92%89%E9%92%89%E6%94%B6%E4%B8%8D%E5%88%B0%E9%80%9A%E7%9F%A5%EF%BC%9F">官方文档</a>
|
||||||
|
</span>}>
|
||||||
{getFieldDecorator('ding', {initialValue: info['ding']})(
|
{getFieldDecorator('ding', {initialValue: info['ding']})(
|
||||||
<Input placeholder="请输入钉钉机器人完整地址"/>
|
<Input placeholder="请输入钉钉机器人完整地址"/>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -36,7 +36,11 @@ export default observer(function Ext2Setup1() {
|
||||||
checked={info['is_audit']}
|
checked={info['is_audit']}
|
||||||
onChange={v => info['is_audit'] = v}/>
|
onChange={v => info['is_audit'] = v}/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="消息通知" help="应用审核及发布成功或失败结果通知">
|
<Form.Item label="消息通知" extra={<span>
|
||||||
|
应用审核及发布成功或失败结果通知,
|
||||||
|
<a target="_blank" rel="noopener noreferrer"
|
||||||
|
href="https://spug.dev/docs/install-error/#%E9%92%89%E9%92%89%E6%94%B6%E4%B8%8D%E5%88%B0%E9%80%9A%E7%9F%A5%EF%BC%9F">钉钉收不到通知?</a>
|
||||||
|
</span>}>
|
||||||
<Input addonBefore={(
|
<Input addonBefore={(
|
||||||
<Select
|
<Select
|
||||||
value={info['rst_notify']['mode']} style={{width: 100}} onChange={v => info['rst_notify']['mode'] = v}>
|
value={info['rst_notify']['mode']} style={{width: 100}} onChange={v => info['rst_notify']['mode'] = v}>
|
||||||
|
|
|
@ -33,7 +33,11 @@ export default observer(function Ext2Setup1() {
|
||||||
checked={info['is_audit']}
|
checked={info['is_audit']}
|
||||||
onChange={v => info['is_audit'] = v}/>
|
onChange={v => info['is_audit'] = v}/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="消息通知" help="应用审核及发布成功或失败结果通知">
|
<Form.Item label="消息通知" extra={<span>
|
||||||
|
应用审核及发布成功或失败结果通知,
|
||||||
|
<a target="_blank" rel="noopener noreferrer"
|
||||||
|
href="https://spug.dev/docs/install-error/#%E9%92%89%E9%92%89%E6%94%B6%E4%B8%8D%E5%88%B0%E9%80%9A%E7%9F%A5%EF%BC%9F">钉钉收不到通知?</a>
|
||||||
|
</span>}>
|
||||||
<Input addonBefore={(
|
<Input addonBefore={(
|
||||||
<Select
|
<Select
|
||||||
value={info['rst_notify']['mode']} style={{width: 100}} onChange={v => info['rst_notify']['mode'] = v}>
|
value={info['rst_notify']['mode']} style={{width: 100}} onChange={v => info['rst_notify']['mode'] = v}>
|
||||||
|
|
|
@ -139,7 +139,11 @@ class Ext1Form extends React.Component {
|
||||||
<Input placeholder="请输入申请标题"/>
|
<Input placeholder="请输入申请标题"/>
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item required label="选择分支/标签/版本" help="根据网络情况,首次刷新可能会很慢,请耐心等待。">
|
<Form.Item required label="选择分支/标签/版本" extra={<span>
|
||||||
|
根据网络情况,首次刷新可能会很慢,请耐心等待。
|
||||||
|
<a target="_blank" rel="noopener noreferrer"
|
||||||
|
href="https://spug.dev/docs/install-error/#%E6%96%B0%E5%BB%BA%E5%B8%B8%E8%A7%84%E5%8F%91%E5%B8%83%E7%94%B3%E8%AF%B7-git-clone-%E9%94%99%E8%AF%AF">clone 失败?</a>
|
||||||
|
</span>}>
|
||||||
<Col span={19}>
|
<Col span={19}>
|
||||||
<Input.Group compact>
|
<Input.Group compact>
|
||||||
<Select value={git_type} onChange={this.switchType} style={{width: 100}}>
|
<Select value={git_type} onChange={this.switchType} style={{width: 100}}>
|
||||||
|
|
|
@ -197,7 +197,11 @@ class ComForm extends React.Component {
|
||||||
height="150px"
|
height="150px"
|
||||||
onChange={val => this.setState({command: val})}/>
|
onChange={val => this.setState({command: val})}/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="失败通知" help="任务执行失败告警通知">
|
<Form.Item label="失败通知" extra={<span>
|
||||||
|
任务执行失败告警通知,
|
||||||
|
<a target="_blank" rel="noopener noreferrer"
|
||||||
|
href="https://spug.dev/docs/install-error/#%E9%92%89%E9%92%89%E6%94%B6%E4%B8%8D%E5%88%B0%E9%80%9A%E7%9F%A5%EF%BC%9F">钉钉收不到通知?</a>
|
||||||
|
</span>}>
|
||||||
{getFieldDecorator('rst_notify.value', {initialValue: info['rst_notify']['value']})(
|
{getFieldDecorator('rst_notify.value', {initialValue: info['rst_notify']['value']})(
|
||||||
<Input
|
<Input
|
||||||
addonBefore={getFieldDecorator('rst_notify.mode', {initialValue: info['rst_notify']['mode']})(
|
addonBefore={getFieldDecorator('rst_notify.mode', {initialValue: info['rst_notify']['mode']})(
|
||||||
|
|
Loading…
Reference in New Issue