From ac66499bf3dcb2cfda72f3111077a29d4368ab09 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Tue, 22 Feb 2022 11:08:50 +0800 Subject: [PATCH] =?UTF-8?q?[web-app]=E5=89=8D=E7=AB=AF=E5=BC=80=E6=94=BE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E4=BA=BA=E5=91=8A=E8=AD=A6=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/entity/manager/NoticeReceiver.java | 2 +- web-app/src/app/pojo/NoticeReceiver.ts | 1 + .../alert-notice/alert-notice.component.html | 26 ++++++++++++++----- .../alert-notice/alert-notice.component.ts | 2 ++ 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/common/src/main/java/com/usthe/common/entity/manager/NoticeReceiver.java b/common/src/main/java/com/usthe/common/entity/manager/NoticeReceiver.java index 9293a60..7f91223 100644 --- a/common/src/main/java/com/usthe/common/entity/manager/NoticeReceiver.java +++ b/common/src/main/java/com/usthe/common/entity/manager/NoticeReceiver.java @@ -48,7 +48,7 @@ public class NoticeReceiver { @ApiModelProperty(value = "通知信息方式: 0-手机短信 1-邮箱 2-webhook 3-微信公众号 4-企业微信机器人 5-钉钉机器人", accessMode = READ_WRITE, position = 2) @Min(0) - @Max(3) + @Max(8) @NotNull private Byte type; diff --git a/web-app/src/app/pojo/NoticeReceiver.ts b/web-app/src/app/pojo/NoticeReceiver.ts index 0742ff1..67d2bc1 100644 --- a/web-app/src/app/pojo/NoticeReceiver.ts +++ b/web-app/src/app/pojo/NoticeReceiver.ts @@ -7,6 +7,7 @@ export class NoticeReceiver { email!: string; hookUrl!: string; wechatId!: string; + accessToken!: string; creator!: string; modifier!: string; gmtCreate!: number; diff --git a/web-app/src/app/routes/alert/alert-notice/alert-notice.component.html b/web-app/src/app/routes/alert/alert-notice/alert-notice.component.html index 0561ba5..d0f0fab 100644 --- a/web-app/src/app/routes/alert/alert-notice/alert-notice.component.html +++ b/web-app/src/app/routes/alert/alert-notice/alert-notice.component.html @@ -60,12 +60,17 @@ 微信公众号 + + + 企业微信机器人 + {{ data.phone }} {{ data.email }} {{ data.hookUrl }} {{ data.wechatId }} + {{ data.wechatId }} {{ data.gmtUpdate ? data.gmtUpdate : data.gmtCreate }} @@ -158,24 +163,25 @@
接收人名称 - + 通知方式 - + + 手机号 - + 邮箱 - + URL地址 - + 微信OPENID - - + + + + + + 企业微信机器人KEY + + diff --git a/web-app/src/app/routes/alert/alert-notice/alert-notice.component.ts b/web-app/src/app/routes/alert/alert-notice/alert-notice.component.ts index 1523ed1..6ecca0a 100644 --- a/web-app/src/app/routes/alert/alert-notice/alert-notice.component.ts +++ b/web-app/src/app/routes/alert/alert-notice/alert-notice.component.ts @@ -259,6 +259,8 @@ export class AlertNoticeComponent implements OnInit { case 3: label = `${label}WeChat`; break; + case 4: + label = `${label}WeWorkRobot`; } this.receiversOption.push({ value: item.id,