|
@@ -282,6 +282,18 @@
|
|
|
that.isSinglePoint = window.localStorage.getItem('singlePoint') === 'singlePoint' ? false : true
|
|
|
apiGetMenuData().then(datas => {
|
|
|
if (datas && datas.data) {
|
|
|
+ let arrDef = [
|
|
|
+ {
|
|
|
+ index: '/home',
|
|
|
+ name: '考评首页',
|
|
|
+ img: homeImg
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: '/taskCenter',
|
|
|
+ name: '任务中心',
|
|
|
+ img: taskImg
|
|
|
+ }
|
|
|
+ ]
|
|
|
let arr = []
|
|
|
for (let i = 0; i < datas.data.length; i++) {
|
|
|
let item = datas.data[i]
|
|
@@ -289,11 +301,12 @@
|
|
|
index: item.href,
|
|
|
name: item.name
|
|
|
}
|
|
|
- if (item.name === '考评首页') {
|
|
|
- obj.img = homeImg
|
|
|
- } else if (item.name === '任务中心') {
|
|
|
- obj.img = taskImg
|
|
|
- } else if (item.name === '通告管理') {
|
|
|
+ // if (item.name === '考评首页') {
|
|
|
+ // obj.img = homeImg
|
|
|
+ // } else if (item.name === '任务中心') {
|
|
|
+ // obj.img = taskImg
|
|
|
+ // } else
|
|
|
+ if (item.name === '通告管理') {
|
|
|
obj.img = tonggaoImg
|
|
|
} else if (item.name === '考评体系配置') {
|
|
|
obj.img = tixiImg
|
|
@@ -316,7 +329,7 @@
|
|
|
}
|
|
|
arr.push(obj)
|
|
|
}
|
|
|
- that.forecastDatas = arr
|
|
|
+ that.forecastDatas = arrDef.concat(arr)
|
|
|
}
|
|
|
})
|
|
|
},
|