diff --git a/src/views/home/index.vue b/src/views/home/index.vue index b2b30dc..edce899 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -586,7 +586,31 @@ export default { filterTagId(tagId){ if(this.tagList.filter(item=>item.id === tagId)[0]){ return this.tagList.filter(item=>item.id === tagId)[0].tagName; - }else{ + }else{// 东明特有的列表,item.id为“employmentService”时候,返回'就业服务' + if(tagId == 'employmentService'){ + return '就业服务'; + } + + if(tagId == 'noticeAnnoncement'){ + return '通知公告'; + } + + if(tagId == 'communityNews'){ + return '社区新闻'; + } + + if(tagId == 'communityNews'){ + return '社区新闻'; + } + + if(tagId == 'threeAffairsDisclosure'){ + return '三务公开'; + } + + if(tagId == 'policeCivilianInteraction'){ + return '警民互动'; + } + return '--'; } }, diff --git a/src/views/home2/index.vue b/src/views/home2/index.vue index d58bf81..3353eb2 100644 --- a/src/views/home2/index.vue +++ b/src/views/home2/index.vue @@ -484,34 +484,36 @@ export default { this.communityPublicity() }, filterTagId(tagId){ - if(this.tagList.filter(item=>item.id === tagId)[0]){ - return this.tagList.filter(item=>item.id === tagId)[0].tagName; - }else{ - // 东明特有的列表,item.id为“employmentService”时候,返回'就业服务' - if(tagId === 'employmentService'){ - return '就业服务'; - } + console.log("tagId.............................."); + console.log(tagId); + // 东明特有的列表,item.id为“employmentService”时候,返回'就业服务' + if(tagId == 'employmentService'){ + return '就业服务'; + } - if(tagId === 'noticeAnnoncement'){ - return '通知公告'; - } + if(tagId == 'noticeAnnoncement'){ + return '通知公告'; + } - if(tagId === 'communityNews'){ - return '社区新闻'; - } + if(tagId == 'communityNews'){ + return '社区新闻'; + } - if(tagId === 'communityNews'){ - return '社区新闻'; - } + if(tagId == 'communityNews'){ + return '社区新闻'; + } - if(tagId === 'threeAffairsDisclosure'){ - return '三务公开'; - } + if(tagId == 'threeAffairsDisclosure'){ + return '三务公开'; + } - if(tagId === 'policeCivilianInteraction'){ - return '警民互动'; - } + if(tagId == 'policeCivilianInteraction'){ + return '警民互动'; + } + if(this.tagList.filter(item=>item.id === tagId)[0]){ + return this.tagList.filter(item=>item.id === tagId)[0].tagName; + }else{ return '--'; } },