diff --git a/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue b/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue
index 5c506763..ee3495e4 100644
--- a/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue
+++ b/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue
@@ -107,7 +107,10 @@ const getType = computed(() => {
return ['device-transparent-codec'];
} else if (props.type === 'system-monitor') {
return ['system-event'];
- } else {
+ } else if(props.type === 'workflow-notification'){
+ return ['workflow-task-cc','workflow-task-todo','workflow-task-completed']
+ }
+ else {
return [
'alarm',
'alarm-product',
diff --git a/src/views/account/Center/components/StationMessage/index.vue b/src/views/account/Center/components/StationMessage/index.vue
index 5e76c0e5..8e7a789b 100644
--- a/src/views/account/Center/components/StationMessage/index.vue
+++ b/src/views/account/Center/components/StationMessage/index.vue
@@ -20,7 +20,7 @@
\ No newline at end of file
diff --git a/src/views/account/Center/components/Subscribe/index.vue b/src/views/account/Center/components/Subscribe/index.vue
index 7db75e52..2d4a3801 100644
--- a/src/views/account/Center/components/Subscribe/index.vue
+++ b/src/views/account/Center/components/Subscribe/index.vue
@@ -55,14 +55,15 @@
diff --git a/src/views/account/Center/components/data.ts b/src/views/account/Center/components/data.ts
index 0ba1e8cb..3637b0bc 100644
--- a/src/views/account/Center/components/data.ts
+++ b/src/views/account/Center/components/data.ts
@@ -1,4 +1,6 @@
-const initData: any[] = [
+import { useMenuStore } from '@/store/menu';
+const menuStore = useMenuStore();
+const systemNotice = [
{
provider: 'alarm',
name: '告警',
@@ -50,5 +52,26 @@ const initData: any[] = [
],
},
];
-
-export { initData };
\ No newline at end of file
+const workflowNotice = [
+ {
+ provider: 'workflow-notification',
+ name: '工作流通知',
+ children: [
+ {
+ provider: 'workflow-task-cc',
+ name: '抄送通知',
+ },
+ {
+ provider: 'workflow-task-todo',
+ name: '待办通知'
+ },{
+ provider: 'workflow-task-completed',
+ name: '完成通知'
+ }
+ ],
+ },
+]
+export const getInitData = () =>{
+ let initData:any[]
+ return initData = menuStore.hasMenu('code') ? [...systemNotice,...workflowNotice] : [...systemNotice]
+}
\ No newline at end of file
diff --git a/src/views/system/NoticeRule/index.vue b/src/views/system/NoticeRule/index.vue
index cea4280c..85c850f0 100644
--- a/src/views/system/NoticeRule/index.vue
+++ b/src/views/system/NoticeRule/index.vue
@@ -54,8 +54,10 @@