Commit e0f4619b authored by jingnan's avatar jingnan 👀

合并产品【12078】配置了首选项--消息通知还是undefined

parent cd9d2d49
...@@ -43,14 +43,34 @@ export default { ...@@ -43,14 +43,34 @@ export default {
getDetail() { getDetail() {
msgDetail(this.id).then(res => { msgDetail(this.id).then(res => {
this.message = res.items this.message = res.items
res.items.templateId && this.getTemplate(res.items.templateId) if (res.items.templateId) {
this.getTemplate(res.items.templateId)
} else {
this.showObjFlag = true
}
}) })
}, },
getTemplate(id) { getTemplate(id) {
getTemplateDetail(id).then(res => { getTemplateDetail(id).then(res => {
this.showObjFlag = res.items.showObjFlag this.showObjFlag = res.items ? res.items.showObjFlag : true
const businessObject = JSON.parse(this.message.businessObject) const businessObject = JSON.parse(this.message.businessObject)
this.taskTitle = `${businessObject.subTypeDisplayName}-${businessObject.number} ${businessObject.name} ${businessObject.displayVersion}` const taskTitle = []
this.taskTitle = ''
if (businessObject.number) {
taskTitle.push(businessObject.number)
}
if (businessObject.name) {
taskTitle.push(businessObject.name)
}
if (businessObject.displayVersion) {
taskTitle.push(businessObject.displayVersion)
}
if (businessObject.subTypeDisplayName) {
this.taskTitle = `${businessObject.subTypeDisplayName}-`
}
if (taskTitle.length > 0) {
this.taskTitle += taskTitle.join(' ')
}
}) })
}, },
goDetail() { goDetail() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment