diff --git a/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue b/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue
index 75dfa534f..1cb9af347 100644
--- a/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue
+++ b/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue
@@ -65,7 +65,7 @@
-
+
已有
{{ todayOrderCount.vipTotal }}
位伙伴支持
@@ -274,6 +274,7 @@ const todayOrderCount = computed(() => {
vipTotal: countInfo?.vipTotal || 0,
orderCount: orderCount,
bg: lastStage.bg,
+ showVipTotal: showVipTotal,
});
if (lastStage.orderCount > 0) {
stages.push(lastStage);
diff --git a/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue b/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue
index 45c9a4a48..ada2a07b4 100644
--- a/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue
+++ b/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue
@@ -134,18 +134,21 @@ async function emitValue(value: any) {
const userId = userStore.userInfo.id;
const isEnterprice = projectStore.isEnterprise;
- if (isEnterprice) {
- const projectId = projectStore.currentProjectId;
- if (pipeline?.value?.projectId !== projectId) {
- message.error("对不起,您不能修改其他项目流水线的通知");
- return;
- }
- } else {
- if (pipeline?.value?.userId !== userId) {
- message.error("对不起,您不能修改他人流水线的通知");
- return;
+ if (pipeline?.value) {
+ if (isEnterprice) {
+ const projectId = projectStore.currentProjectId;
+ if (pipeline?.value?.projectId !== projectId) {
+ message.error("对不起,您不能修改其他项目流水线的通知");
+ return;
+ }
+ } else {
+ if (pipeline?.value?.userId !== userId) {
+ message.error("对不起,您不能修改他人流水线的通知");
+ return;
+ }
}
}
+
emit("change", value);
emit("update:modelValue", value);
}