|
@@ -20,17 +20,17 @@ class MSMQ {
|
|
|
} catch (err) {
|
|
|
return 0;
|
|
|
}
|
|
|
- if(data.ProjectId && projects.some((item) => {return item.id == data.ProjectId})) {
|
|
|
- if(!data.UserList || (userId && data.UserList && data.UserList.includes(userId))){
|
|
|
- if(data.Module && data.Module == 'Model'){
|
|
|
+ if(data.projectId && projects.some((item) => {return item.id == data.projectId})) {
|
|
|
+ if(!data.userList || (userId && data.userList && data.userList.includes(userId))){
|
|
|
+ if(data.module && data.module == 'Model'){
|
|
|
Bus.$emit('modelStatusChange', data)
|
|
|
}
|
|
|
- if(data.Type != 'Refresh'){
|
|
|
+ if(data.type != 'Refresh'){
|
|
|
Notification({
|
|
|
- title: `${data.Title?data.Title:''}`,
|
|
|
+ title: `${data.title?data.title:''}`,
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
- message: `【${this.moduleMap[data.Module]?this.moduleMap[data.Module]:data.Module}】${data.Content?data.Content.Message?data.Content.Message:'':''}`,
|
|
|
- type: this.msgTypeMap[data.Type]?this.msgTypeMap[data.Type]:'info'
|
|
|
+ message: `【${this.moduleMap[data.module]?this.moduleMap[data.module]:data.module}】${data.content?.message?data.content.message:''}`,
|
|
|
+ type: this.msgTypeMap[data.type]?this.msgTypeMap[data.type]:'info'
|
|
|
})
|
|
|
|
|
|
unreadNum++
|