From e69d38a3f37e9b27148c9c3bdb4433ba644dd08c Mon Sep 17 00:00:00 2001 From: zty <1048209592@qq.com> Date: Fri, 26 Jul 2024 15:37:36 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AD=A3=E5=BA=A6=E5=AE=A1=E6=A0=B8=EF=BC=8C?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E4=B8=BB=E4=BB=BB=E6=89=93=E5=88=86=E7=9A=84?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=90=84=E9=83=A8=E9=97=A8=E4=BB=85=E8=83=BD?= =?UTF-8?q?=E7=9C=8B=E5=88=B0=E8=87=AA=E5=B7=B1=E7=9A=84=E6=89=93=E5=88=86?= =?UTF-8?q?=EF=BC=8C=E7=9C=8B=E4=B8=8D=E5=88=B0=E5=85=B6=E4=BB=96=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E7=9A=84=E6=89=93=E5=88=86=E7=BB=93=E6=9E=9C=E5=8C=85?= =?UTF-8?q?=E6=8B=AC=E5=B9=B3=E5=9D=87=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quarterlyAssessmentDetail.vue | 61 +++++++++++++++++-- .../quarterlyEvaluationDetail.vue | 8 +-- 2 files changed, 59 insertions(+), 10 deletions(-) diff --git a/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyAssessmentDetail.vue b/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyAssessmentDetail.vue index 9c1764a..ed4787a 100644 --- a/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyAssessmentDetail.vue +++ b/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyAssessmentDetail.vue @@ -76,6 +76,15 @@ export default { }, data () { return { + isScore: false, //是否是部门打分节点 + isStrategy: true, + isPlatform: true, + isMarket: true, + isService: true, + strategyScoring: '', + platformScoring: '', + marketScoring: '', + serviceScoring: '', isOffice: null, isExamine: 0, isSubmit: false, @@ -114,6 +123,40 @@ export default { // this.initTableColumns() }, methods: { + getBusiness () { + let id = getItem('userInfoId') + Api.ProjectManagements.getBusiness(id).then(result => { + if (result.status === 0) { + let data = result.data + switch (data) { + case '战略规划部': + this.isStrategy = false + break + case '平台建设部': + this.isPlatform = false + break + case '市场发展部': + this.isMarket = false + break + case '服务产品部': + this.isService = false + break + default: + this.isStrategy = false + this.isPlatform = false + this.isMarket = false + this.isService = false + break + } + } else { + this.isStrategy = false + this.isPlatform = false + this.isMarket = false + this.isService = false + } + this.initTableColumns() + }) + }, getOffice () { let id = this.$route.params.id Api.ProjectManagements.getOffice(id).then(result => { @@ -126,7 +169,7 @@ export default { } else { this.$message.error(result.data) } - this.initTableColumns() + this.getBusiness() this.init() }) }, @@ -200,11 +243,17 @@ export default { this.tableRowsData.push(project) this.tableTotalPage = result.data.total } + if (result.data.ls[0].ext.taskName == '部门主任评级') { + this.isScore = true + } else { + this.isScore = false + } } }) }, //初始化tableColumns initTableColumns () { + console.log('谁最快') if (!this.isOffice) { console.log('this.isOffice', this.isOffice) console.log('不是办公室') @@ -295,27 +344,27 @@ export default { { label: '战略规划部评级', prop: 'strategyScoring', - show: true + show: !this.isStrategy }, { label: '平台建设部评级', prop: 'platformScoring', - show: true + show: !this.isPlatform }, { label: '市场发展部评级', prop: 'marketScoring', - show: true + show: !this.isMarket }, { label: '服务产品部评级', prop: 'serviceScoring', - show: true + show: !this.isService }, { label: '项目平均分', prop: 'sum', - show: true + show: !this.isScore } ] } diff --git a/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyEvaluationDetail.vue b/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyEvaluationDetail.vue index d729845..dcdb824 100644 --- a/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyEvaluationDetail.vue +++ b/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyEvaluationDetail.vue @@ -98,7 +98,7 @@ > - + - + - + - +