|
@@ -18,16 +18,15 @@ const MSMQ = {
|
|
|
} catch (err) {
|
|
|
return false
|
|
|
}
|
|
|
-
|
|
|
- if(data.projectId && projects.some((item) => {return item.id == data.projectId})) { //判断消息是否是当前用户拥有的项目
|
|
|
+ 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)
|
|
|
}
|
|
|
- Notification.$notify({
|
|
|
- title: `【${this.moduleMap[data.Module]?this.moduleMap[data.Module]:data.Module}}】${data.Title?data.Title:''}`,
|
|
|
+ Notification({
|
|
|
+ title: `${data.Title?data.Title:''}`,
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
- message: data.Content?data.Content.Message?data.Content.Message:'':'',
|
|
|
+ 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'
|
|
|
})
|
|
|
// Notification.info({ title: '消息',dangerouslyUseHTMLString: true, message: `项目编号:${data.projectId}<br>消息类型:${data.type}<br>描述信息:${data.description}<br>` })
|