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
c73d67d1
Commit
c73d67d1
authored
Mar 27, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-211][web]Fix to form linkage
parent
d9d02af5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
DingTalkForm.tsx
...k-web/src/pages/AlertInstance/components/DingTalkForm.tsx
+1
-1
WeChatForm.tsx
dlink-web/src/pages/AlertInstance/components/WeChatForm.tsx
+5
-4
No files found.
dlink-web/src/pages/AlertInstance/components/DingTalkForm.tsx
View file @
c73d67d1
...
...
@@ -43,7 +43,7 @@ const DingTalkForm: React.FC<AlertInstanceFormProps> = (props) => {
handleSubmit
(
buildJSONData
(
formVals
,
fieldsValue
));
};
const
renderContent
=
(
formVals
)
=>
{
const
renderContent
=
()
=>
{
return
(
<>
<
Divider
>
钉钉配置
</
Divider
>
...
...
dlink-web/src/pages/AlertInstance/components/WeChatForm.tsx
View file @
c73d67d1
...
...
@@ -34,6 +34,7 @@ const WeChatForm: React.FC<AlertInstanceFormProps> = (props) => {
}
=
props
;
const
onValuesChange
=
(
change
:
any
,
all
:
any
)
=>
{
console
.
log
(
change
);
setFormVals
({...
formVals
,...
change
});
};
...
...
@@ -43,7 +44,7 @@ const WeChatForm: React.FC<AlertInstanceFormProps> = (props) => {
handleSubmit
(
buildJSONData
(
formVals
,
fieldsValue
));
};
const
renderContent
=
(
formVals
)
=>
{
const
renderContent
=
()
=>
{
return
(
<>
<
Divider
>
微信企业号配置
</
Divider
>
...
...
@@ -65,7 +66,7 @@ const WeChatForm: React.FC<AlertInstanceFormProps> = (props) => {
<
Radio
value=
'群聊'
>
群聊
</
Radio
>
</
Radio
.
Group
>
</
Form
.
Item
>
{
(
formVals
.
sendType
==
=
"群聊"
)
&&
{
(
formVals
.
sendType
==
"群聊"
)
&&
<>
<
Form
.
Item
name=
"webhook"
...
...
@@ -87,7 +88,7 @@ const WeChatForm: React.FC<AlertInstanceFormProps> = (props) => {
<
Switch
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
defaultChecked=
{
formVals
.
isAtAll
}
/>
</
Form
.
Item
>
{
(
formVals
.
sendType
===
"群聊"
&&
formVals
.
isAtAll
===
false
)
&&
{
(
!
formVals
.
isAtAll
)
&&
<
Form
.
Item
name=
"users"
label=
"被@用户"
...
...
@@ -98,7 +99,7 @@ const WeChatForm: React.FC<AlertInstanceFormProps> = (props) => {
}
</>
}
{
formVals
.
sendType
===
"应用"
&&
{
(
!
formVals
.
sendType
||
formVals
.
sendType
==
"应用"
)
&&
<>
<
Form
.
Item
name=
"corpId"
...
...
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