SunZehao 1 år sedan
förälder
incheckning
c8af30878c
2 ändrade filer med 20 tillägg och 7 borttagningar
  1. 1 1
      src/components/assessment/assessmentApplicationFrom.vue
  2. 19 6
      src/views/homePage.vue

+ 1 - 1
src/components/assessment/assessmentApplicationFrom.vue

@@ -209,7 +209,7 @@ export default {
             let params = {
                 current: 1,
                 size: 500,
-                orgId: val
+                // orgId: val
             }
             apiGetuserPageList(params).then(datas =>{
                 if (datas && datas.data) {

+ 19 - 6
src/views/homePage.vue

@@ -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)
                     }
                 })
             },