增加代码编辑器表单组件
This commit is contained in:
parent
e672dd7e27
commit
5cc4958eb0
@ -67,8 +67,9 @@ const DeploymentFormModal: React.FC<DeploymentFormModalProps> = ({
|
|||||||
},
|
},
|
||||||
// 通知信息(使用环境配置的通知设置)
|
// 通知信息(使用环境配置的通知设置)
|
||||||
notification: {
|
notification: {
|
||||||
required: environment.notificationEnabled ? 'true' : 'false',
|
required: environment.notificationConfig?.deployNotificationEnabled ? 'true' : 'false',
|
||||||
channelId: environment.notificationChannelId?.toString() || '',
|
channelId: environment.notificationConfig?.notificationChannelId?.toString() || '',
|
||||||
|
channelName: environment.notificationConfig?.notificationChannelName || '',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}, [app, environment, teamId]); // 只在这些依赖变化时重新生成
|
}, [app, environment, teamId]); // 只在这些依赖变化时重新生成
|
||||||
|
|||||||
@ -58,6 +58,14 @@ export interface ApplicationConfig {
|
|||||||
recentDeployRecords?: DeployRecord[];
|
recentDeployRecords?: DeployRecord[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface NotificationConfig {
|
||||||
|
notificationChannelId: number;
|
||||||
|
deployNotificationEnabled: boolean;
|
||||||
|
buildNotificationEnabled: boolean;
|
||||||
|
buildFailureFileEnabled: boolean;
|
||||||
|
notificationChannelName: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface DeployEnvironment {
|
export interface DeployEnvironment {
|
||||||
environmentId: number;
|
environmentId: number;
|
||||||
environmentCode: string;
|
environmentCode: string;
|
||||||
@ -67,8 +75,7 @@ export interface DeployEnvironment {
|
|||||||
sort: number;
|
sort: number;
|
||||||
requiresApproval: boolean;
|
requiresApproval: boolean;
|
||||||
approvers: Approver[];
|
approvers: Approver[];
|
||||||
notificationEnabled: boolean; // 🆕 是否启用通知
|
notificationConfig?: NotificationConfig; // 🆕 通知配置
|
||||||
notificationChannelId: number; // 🆕 通知渠道ID
|
|
||||||
requireCodeReview: boolean; // 🆕 是否需要代码审查
|
requireCodeReview: boolean; // 🆕 是否需要代码审查
|
||||||
canDeploy: boolean; // 🆕 当前用户是否可以发起部署
|
canDeploy: boolean; // 🆕 当前用户是否可以发起部署
|
||||||
canApprove: boolean; // 🆕 当前用户是否可以审批部署
|
canApprove: boolean; // 🆕 当前用户是否可以审批部署
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user