Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
2ea7f851
Commit
2ea7f851
authored
Apr 01, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-299] [web] Fix to DingTalk form does not display correctly
parent
3092f185
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
DingTalkForm.tsx
...k-web/src/pages/AlertInstance/components/DingTalkForm.tsx
+5
-5
No files found.
dlink-web/src/pages/AlertInstance/components/DingTalkForm.tsx
View file @
2ea7f851
...
@@ -43,7 +43,7 @@ const DingTalkForm: React.FC<AlertInstanceFormProps> = (props) => {
...
@@ -43,7 +43,7 @@ const DingTalkForm: React.FC<AlertInstanceFormProps> = (props) => {
handleSubmit
(
buildJSONData
(
formVals
,
fieldsValue
));
handleSubmit
(
buildJSONData
(
formVals
,
fieldsValue
));
};
};
const
renderContent
=
()
=>
{
const
renderContent
=
(
vals
)
=>
{
return
(
return
(
<>
<>
<
Divider
>
钉钉配置
</
Divider
>
<
Divider
>
钉钉配置
</
Divider
>
...
@@ -77,9 +77,9 @@ const DingTalkForm: React.FC<AlertInstanceFormProps> = (props) => {
...
@@ -77,9 +77,9 @@ const DingTalkForm: React.FC<AlertInstanceFormProps> = (props) => {
name=
"isEnableProxy"
name=
"isEnableProxy"
label=
"开启代理"
>
label=
"开启代理"
>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
defaultChecked=
{
formV
als
.
isEnableProxy
}
/>
defaultChecked=
{
v
als
.
isEnableProxy
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
{
formV
als
.
isEnableProxy
?<>
{
v
als
.
isEnableProxy
?<>
<
Form
.
Item
<
Form
.
Item
name=
"proxy"
name=
"proxy"
label=
"代理"
label=
"代理"
...
@@ -109,13 +109,13 @@ const DingTalkForm: React.FC<AlertInstanceFormProps> = (props) => {
...
@@ -109,13 +109,13 @@ const DingTalkForm: React.FC<AlertInstanceFormProps> = (props) => {
name=
"isAtAll"
name=
"isAtAll"
label=
"@所有人"
>
label=
"@所有人"
>
<
Switch
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
<
Switch
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
defaultChecked=
{
formV
als
.
isAtAll
}
/>
defaultChecked=
{
v
als
.
isAtAll
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
name=
"enabled"
name=
"enabled"
label=
"是否启用"
>
label=
"是否启用"
>
<
Switch
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
<
Switch
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
defaultChecked=
{
formV
als
.
enabled
}
/>
defaultChecked=
{
v
als
.
enabled
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
name=
"msgtype"
name=
"msgtype"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment