From 498cf34999fddfa24ce088e2e678469fa669abb8 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 9 Dec 2024 18:04:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E9=80=9A=E7=9F=A5=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=97=A0=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/certd/pipeline/certd-form/crud.tsx | 6 +++--- .../src/views/certd/pipeline/certd-form/index.vue | 1 + .../certd-server/src/modules/sys/authority/entity/user.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx index 329939c2..15768239 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx @@ -107,10 +107,10 @@ export default function (certPlugins: any[], formWrapperRef: any): CreateCrudOpt title: "失败通知", type: "text", form: { - value: 0, + value: true, component: { - name: NotificationSelector, - vModel: "modelValue" + name: "a-switch", + vModel: "checked" }, order: 101, helper: "任务执行失败实时提醒" diff --git a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/index.vue index 515c980a..4057bf10 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/index.vue @@ -40,6 +40,7 @@ export default { await doSubmitRef.value({ form }); if (form.email) { + //创建一个默认的邮件通知 const notificationApi = createNotificationApi(); await notificationApi.GetOrCreateDefault({ email: form.email }); } diff --git a/packages/ui/certd-server/src/modules/sys/authority/entity/user.ts b/packages/ui/certd-server/src/modules/sys/authority/entity/user.ts index 842dc8d1..f9c36999 100644 --- a/packages/ui/certd-server/src/modules/sys/authority/entity/user.ts +++ b/packages/ui/certd-server/src/modules/sys/authority/entity/user.ts @@ -35,7 +35,7 @@ export class UserEntity { @Column({ comment: '备注', length: 100, nullable: true }) remark: string; - @Column({ comment: '状态 0:禁用 1:启用', default: 1, type: 'int' }) + @Column({ comment: '状态 0:禁用 1:启用', default: 1 }) status: number; @Column({ name: 'create_time',