SunZehao 1 gadu atpakaļ
vecāks
revīzija
bbeb39004b

+ 4 - 2
src/components/gateWay/gateWayNotificationDetail.vue

@@ -102,8 +102,10 @@ export default {
                 releaseDept: row.releaseDept,
                 releasePeople: row.releasePeople
             }
-            let filesArr = row.noticeAnnex.split(',')
-            this.filesListEdit = filesArr
+            if (row.noticeAnnex !== '') {
+                let filesArr = row.noticeAnnex.split(',')
+                this.filesListEdit = filesArr
+            }
         },
     }
 }

+ 8 - 7
src/components/notification/notificationMangePage.vue

@@ -215,11 +215,11 @@
                                         <span class="fliesMainSpan spanTwo">{{it.releaseDeptName}}</span>
                                         <!-- <span>{{userMes.unitName}}</span> -->
                                         <div class="fileOperate">
-                                            <!-- <div @click="previewFile(it)" style="cursor:pointer">
+                                            <div @click="previewFile(it)" style="cursor:pointer">
                                                 <img :src="yulan" style="margin-right: 10px;" >
                                                 <span>预览</span>
-                                            </div> -->
-                                            <div @click="removeFile(it)" style="cursor:pointer">
+                                            </div>
+                                            <div @click="removeFileFn(it)" style="cursor:pointer">
                                                 <img :src="fileDelete" class="removeImg">
                                                 <span>删除</span>
                                             </div>
@@ -606,10 +606,11 @@ export default {
             }
             apiGetevaluationdeptnoticeFilePreview(params).then(datas =>{
                 if (datas) {
-                    const blob = new Blob([datas], {type: 'application/pdf'})
-                    const url = URL.createObjectURL(blob)
-                    window.open(url)
-                    console.log('files', datas)
+                    // const blob = new Blob([datas], {type: 'application/pdf'})
+                    // const url = URL.createObjectURL(blob)
+                    // window.open(url)
+                    // console.log('files', datas)
+                    window.open(datas.data, 'target')
                 }
             })
         },

+ 187 - 187
src/views/homePage.vue

@@ -78,193 +78,193 @@ export default {
         }
     },
     created(){
-        // this.getMenuData()
-        this.forecastDatas = [
-            {
-                index: '/home',
-                name: '考评首页',
-                img: homeImg
-            },
-            {
-                index: '/taskCenter',
-                name: '任务中心',
-                img: taskImg
-            },
-            {
-                index: '/notification',
-                name: '通告管理',
-                img: tonggaoImg
-            },
-            {
-                index: '1',
-                name: '考评体系配置',
-                img: tixiImg,
-                children: [
-                    {
-                        index: '/evaluationSystem/evaluationIndex',
-                        name: '考评指标管理',
-                    },
-                    {
-                        index: '/evaluationSystem/evaluationRules',
-                        name: '考评规则配置',
-                    },
-                    {
-                        index: '/evaluationSystem/company',
-                        name: '单位权重配置',
-                    },
-                    {
-                        index: '',
-                        name: '单位季度营业收入',
-                    },
-                    {
-                        index: '/evaluationSystem/achievementK',
-                        name: '业绩考核系数配置',
-                    },
-                    {
-                        index: '/evaluationSystem/partyBuildingK',
-                        name: '党建考核系数配置',
-                    },
-                    {
-                        index: '/evaluationSystem/department',
-                        name: '部门考评配置',
-                    },
-                    {
-                        index: '/evaluationSystem/personnel',
-                        name: '人员考评配置',
-                    },
-                ]
-            },
-            {
-                index: '2',
-                name: '单位考评业务',
-                img: yewuImg,
-                children: [
-                    {
-                        index: '/assessment/evaluationStart',
-                        name: '单位考评目标启动',
-                    },
-                    {
-                        index: '/assessment/evaluationAmendment',
-                        name: '单位考评目标修订',
-                    },
-                    {
-                        index: '/assessment/evaluationMonth',
-                        name: '单位月度考评'
-                    },
-                    {
-                        index: '/assessment/evaluationQuarter',
-                        name: '单位季度考评'
-                    },
-                    {
-                        index: '/assessment/evaluationYear',
-                        name: '单位年度考评'
-                    },
-                    {
-                        index: '/assessment/evaluationBenchmarkingIndic',
-                        name: '考评对标分析'
-                    },
-                    {
-                        index: '/assessment/evaluationWarning',
-                        name: '考评预警'
-                    },
-                    {
-                        index: '',
-                        name: '单位考评评级'
-                    },
-                    {
-                        index: '',
-                        name: '考评监督管理'
-                    },
-                    {
-                        index: '/assessment/evaluationReport',
-                        name: '考评报告'
-                    },
-                    {
-                        index: '',
-                        name: '单位考核结果应用'
-                    }
-                ]
-            },
-            {
-                index: '3',
-                name: '本部考评业务',
-                img: benbuImg,
-                children: [
-                    {
-                        index: '/assessment/evaluationDeptStart',
-                        name: '业绩指标计划',
-                    },
-                    {
-                        index: '/assessment/evaluationDeptBusiness',
-                        name: '业绩指标考评'
-                    },
-                    {
-                        index: '/assessment/evaluationDeptRating',
-                        name: '部门考评评级'
-                    },
-                    {
-                        index: '/assessment/assessmentApplication',
-                        name: '绩效结果考核申报'
-                    }
-                ]
-            },
-            {
-                index: '4',
-                name: '本部人员考评',
-                img: renyuanImg,
-                children: [
-                    {
-                        index: '',
-                        name: '人员考评结果',
-                    },
-                    {
-                        index: '',
-                        name: '任期考评结果'
-                    },
-                    {
-                        index: '',
-                        name: '人员考评评级'
-                    }
-                ]
-            },
-            {
-                index: '5',
-                name: '基础信息配置',
-                img: quanxianImg,
-                children: [
-                    {
-                        index: '',
-                        name: '人员权限配置',
-                    },
-                    {
-                        index: '',
-                        name: '工作流程配置',
-                    },
-                    {
-                        index: '/baseInfomation/moreBrand',
-                        name: '多牌配置',
-                    }
-                ]
-            },
-            {
-                index: '6',
-                name: '对标考评知识库',
-                img: zhishikuImg,
-                children: [
-                    {
-                        index: '/evaluationknowledge/scoringRules',
-                        name: '考评得分规则',
-                    },
-                    {
-                        name: '考评评级规则',
-                    },
-                    {
-                        index: '/evaluationknowledge/earlyWarningRule',
-                        name: '考评预警规则',
-                    }
-                ]
-            },
-        ]
+        this.getMenuData()
+        // this.forecastDatas = [
+        //     {
+        //         index: '/home',
+        //         name: '考评首页',
+        //         img: homeImg
+        //     },
+        //     {
+        //         index: '/taskCenter',
+        //         name: '任务中心',
+        //         img: taskImg
+        //     },
+        //     {
+        //         index: '/notification',
+        //         name: '通告管理',
+        //         img: tonggaoImg
+        //     },
+        //     {
+        //         index: '1',
+        //         name: '考评体系配置',
+        //         img: tixiImg,
+        //         children: [
+        //             {
+        //                 index: '/evaluationSystem/evaluationIndex',
+        //                 name: '考评指标管理',
+        //             },
+        //             {
+        //                 index: '/evaluationSystem/evaluationRules',
+        //                 name: '考评规则配置',
+        //             },
+        //             {
+        //                 index: '/evaluationSystem/company',
+        //                 name: '单位权重配置',
+        //             },
+        //             {
+        //                 index: '',
+        //                 name: '单位季度营业收入',
+        //             },
+        //             {
+        //                 index: '/evaluationSystem/achievementK',
+        //                 name: '业绩考核系数配置',
+        //             },
+        //             {
+        //                 index: '/evaluationSystem/partyBuildingK',
+        //                 name: '党建考核系数配置',
+        //             },
+        //             {
+        //                 index: '/evaluationSystem/department',
+        //                 name: '部门考评配置',
+        //             },
+        //             {
+        //                 index: '/evaluationSystem/personnel',
+        //                 name: '人员考评配置',
+        //             },
+        //         ]
+        //     },
+        //     {
+        //         index: '2',
+        //         name: '单位考评业务',
+        //         img: yewuImg,
+        //         children: [
+        //             {
+        //                 index: '/assessment/evaluationStart',
+        //                 name: '单位考评目标启动',
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationAmendment',
+        //                 name: '单位考评目标修订',
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationMonth',
+        //                 name: '单位月度考评'
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationQuarter',
+        //                 name: '单位季度考评'
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationYear',
+        //                 name: '单位年度考评'
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationBenchmarkingIndic',
+        //                 name: '考评对标分析'
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationWarning',
+        //                 name: '考评预警'
+        //             },
+        //             {
+        //                 index: '',
+        //                 name: '单位考评评级'
+        //             },
+        //             {
+        //                 index: '',
+        //                 name: '考评监督管理'
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationReport',
+        //                 name: '考评报告'
+        //             },
+        //             {
+        //                 index: '',
+        //                 name: '单位考核结果应用'
+        //             }
+        //         ]
+        //     },
+        //     {
+        //         index: '3',
+        //         name: '本部考评业务',
+        //         img: benbuImg,
+        //         children: [
+        //             {
+        //                 index: '/assessment/evaluationDeptStart',
+        //                 name: '业绩指标计划',
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationDeptBusiness',
+        //                 name: '业绩指标考评'
+        //             },
+        //             {
+        //                 index: '/assessment/evaluationDeptRating',
+        //                 name: '部门考评评级'
+        //             },
+        //             {
+        //                 index: '/assessment/assessmentApplication',
+        //                 name: '绩效结果考核申报'
+        //             }
+        //         ]
+        //     },
+        //     {
+        //         index: '4',
+        //         name: '本部人员考评',
+        //         img: renyuanImg,
+        //         children: [
+        //             {
+        //                 index: '',
+        //                 name: '人员考评结果',
+        //             },
+        //             {
+        //                 index: '',
+        //                 name: '任期考评结果'
+        //             },
+        //             {
+        //                 index: '',
+        //                 name: '人员考评评级'
+        //             }
+        //         ]
+        //     },
+        //     {
+        //         index: '5',
+        //         name: '基础信息配置',
+        //         img: quanxianImg,
+        //         children: [
+        //             {
+        //                 index: '',
+        //                 name: '人员权限配置',
+        //             },
+        //             {
+        //                 index: '',
+        //                 name: '工作流程配置',
+        //             },
+        //             {
+        //                 index: '/baseInfomation/moreBrand',
+        //                 name: '多牌配置',
+        //             }
+        //         ]
+        //     },
+        //     {
+        //         index: '6',
+        //         name: '对标考评知识库',
+        //         img: zhishikuImg,
+        //         children: [
+        //             {
+        //                 index: '/evaluationknowledge/scoringRules',
+        //                 name: '考评得分规则',
+        //             },
+        //             {
+        //                 name: '考评评级规则',
+        //             },
+        //             {
+        //                 index: '/evaluationknowledge/earlyWarningRule',
+        //                 name: '考评预警规则',
+        //             }
+        //         ]
+        //     },
+        // ]
         if (window.sessionStorage.getItem('routeTags')) {
             this.routeTags = JSON.parse(window.sessionStorage.getItem('routeTags'))
             if (this.$route?.path === '/') {