mirror of https://github.com/certd/certd
fix: 修复创建流水线通知设置无效的bug
parent
7cde1fdc4a
commit
498cf34999
|
@ -107,10 +107,10 @@ export default function (certPlugins: any[], formWrapperRef: any): CreateCrudOpt
|
||||||
title: "失败通知",
|
title: "失败通知",
|
||||||
type: "text",
|
type: "text",
|
||||||
form: {
|
form: {
|
||||||
value: 0,
|
value: true,
|
||||||
component: {
|
component: {
|
||||||
name: NotificationSelector,
|
name: "a-switch",
|
||||||
vModel: "modelValue"
|
vModel: "checked"
|
||||||
},
|
},
|
||||||
order: 101,
|
order: 101,
|
||||||
helper: "任务执行失败实时提醒"
|
helper: "任务执行失败实时提醒"
|
||||||
|
|
|
@ -40,6 +40,7 @@ export default {
|
||||||
await doSubmitRef.value({ form });
|
await doSubmitRef.value({ form });
|
||||||
|
|
||||||
if (form.email) {
|
if (form.email) {
|
||||||
|
//创建一个默认的邮件通知
|
||||||
const notificationApi = createNotificationApi();
|
const notificationApi = createNotificationApi();
|
||||||
await notificationApi.GetOrCreateDefault({ email: form.email });
|
await notificationApi.GetOrCreateDefault({ email: form.email });
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ export class UserEntity {
|
||||||
@Column({ comment: '备注', length: 100, nullable: true })
|
@Column({ comment: '备注', length: 100, nullable: true })
|
||||||
remark: string;
|
remark: string;
|
||||||
|
|
||||||
@Column({ comment: '状态 0:禁用 1:启用', default: 1, type: 'int' })
|
@Column({ comment: '状态 0:禁用 1:启用', default: 1 })
|
||||||
status: number;
|
status: number;
|
||||||
@Column({
|
@Column({
|
||||||
name: 'create_time',
|
name: 'create_time',
|
||||||
|
|
Loading…
Reference in New Issue