From ec4a33ffdbd41de39ce24a29fa38e1fafb064b7f Mon Sep 17 00:00:00 2001
From: zty <1048209592@qq.com>
Date: Wed, 17 Jul 2024 21:04:18 +0800
Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E8=B4=9F=E8=B4=A3=E4=BA=BA=E6=98=AF=E4=B8=8D=E6=98=AF?=
=?UTF-8?q?=E5=8A=9E=E5=85=AC=E5=AE=A4=E9=83=A8=E9=97=A8=E7=9A=84=E6=96=B9?=
=?UTF-8?q?=E6=B3=95=202.=E5=AD=A3=E5=BA=A6=E5=AE=A1=E6=A0=B8=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=EF=BC=8C=E9=80=9A=E8=BF=87=E6=98=AF=E4=B8=8D=E6=98=AF?=
=?UTF-8?q?=E5=8A=9E=E5=85=AC=E5=AE=A4=E9=83=A8=E9=97=A8=E7=9A=84=E5=8C=BA?=
=?UTF-8?q?=E5=88=ABA/B=E8=A1=A8=203.=E5=AD=A3=E5=BA=A6=E5=AE=A1=E6=A0=B8?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=B7=BB=E5=8A=A0B=E8=A1=A8?=
=?UTF-8?q?=E5=88=A4=E6=96=AD=E5=8F=8A=E7=BC=96=E8=BE=91=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../projectManagement/AddProjectApply.vue | 2 +-
.../quarterlyAssessmentDetail.vue | 195 ++++++++++++------
.../src/server/projectManagements/index.js | 1 +
3 files changed, 133 insertions(+), 65 deletions(-)
diff --git a/kehui-oa-front/src/pages/projectManagement/AddProjectApply.vue b/kehui-oa-front/src/pages/projectManagement/AddProjectApply.vue
index bdb2180..fc11de8 100644
--- a/kehui-oa-front/src/pages/projectManagement/AddProjectApply.vue
+++ b/kehui-oa-front/src/pages/projectManagement/AddProjectApply.vue
@@ -1026,7 +1026,7 @@ export default {
})
this.$router.go(-1)
} else {
- this.$message.error(result.msg)
+ this.$message.error(result.data)
}
})
},
diff --git a/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyAssessmentDetail.vue b/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyAssessmentDetail.vue
index 155c012..5a4f07f 100644
--- a/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyAssessmentDetail.vue
+++ b/kehui-oa-front/src/pages/projectManagements/quarterlyAssessment/quarterlyAssessmentDetail.vue
@@ -3,7 +3,7 @@
-
+
@@ -61,7 +61,7 @@ import PageLoading from '../../../components/PageLoading.vue'
import DataForm from '../../../components/form/DataForm.vue'
import DataTable from '../../../components/DataTable.vue'
import Api from '../../../server/index.js'
-import {getItem} from '../../../config/mUtils'
+import {getItem, setItem} from '../../../config/mUtils'
export default {
computed: {
@@ -76,6 +76,7 @@ export default {
},
data () {
return {
+ isOffice: false,
isExamine: 0,
isSubmit: false,
formData: {
@@ -105,10 +106,26 @@ export default {
}
},
created () {
+ this.getOffice()
this.initTableColumns()
this.init()
},
methods: {
+ getOffice () {
+ let id = this.$route.params.id
+ Api.ProjectManagements.getOffice(id).then(result => {
+ console.log('getoffice', result)
+ if (result.status === 0) {
+ if (result.data === "0") {
+ this.isOffice = true
+ } else {
+ this.isOffice = false
+ }
+ } else {
+ this.$message.error(result.data)
+ }
+ })
+ },
close () {
this.isSubmit = false
this.formData.spyj = ''
@@ -170,71 +187,121 @@ export default {
}
}
})
- // Api.ProjectManagements.getProject(param).then(result => {
- // console.log('result', result)
- // if (result.status === 0) {
- // this.tableRowsData.splice(0, this.tableRowsData.length)
- // for (let i = 0; i < result.data.ls.length; i++) {
- // let project = {}
- // $.extend(true, project, result.data.ls[i])
- // console.log('project', project)
- // project.difficultyFactor = project.ext.difficultyFactor
- // project.draftDeptName = project.ext.draftDeptName
- // this.tableRowsData.push(project)
- // this.tableTotalPage = result.data.total
- // }
- // }
- // })
},
//初始化tableColumns
initTableColumns () {
- this.tableColumnsData = [
- {
- label: '季度',
- prop: 'quarter',
- show: true
- },
- {
- label: '指标名称',
- prop: 'indexName',
- show: true
- },
- {
- label: 'A档',
- prop: 'levelA',
- show: true
- },
- {
- label: 'B档',
- prop: 'levelB',
- show: true
- },
- {
- label: 'C档',
- prop: 'levelC',
- show: true
- },
- {
- label: 'D档',
- prop: 'levelD',
- show: true
- },
- {
- label: '指标完成情况',
- prop: 'execution',
- show: true
- },
- {
- label: '自评定级',
- prop: 'selfEvaluation',
- show: true
- },
- {
- label: '所项目管理员打分',
- prop: 'adminScoring',
- show: true
- }
- ]
+ if (this.isOffice) {
+ this.tableColumnsData = [
+ {
+ label: '季度',
+ prop: 'quarter',
+ show: true
+ },
+ {
+ label: '指标名称',
+ prop: 'indexName',
+ show: true
+ },
+ {
+ label: 'A档',
+ prop: 'levelA',
+ show: true
+ },
+ {
+ label: 'B档',
+ prop: 'levelB',
+ show: true
+ },
+ {
+ label: 'C档',
+ prop: 'levelC',
+ show: true
+ },
+ {
+ label: 'D档',
+ prop: 'levelD',
+ show: true
+ },
+ {
+ label: '指标完成情况',
+ prop: 'execution',
+ show: true
+ },
+ {
+ label: '自评定级',
+ prop: 'selfEvaluation',
+ show: true
+ },
+ {
+ label: '所项目管理员打分',
+ prop: 'adminScoring',
+ show: true
+ }
+ ]
+ } else {
+ this.tableColumnsData = [
+ {
+ label: '季度',
+ prop: 'quarter',
+ show: true
+ },
+ {
+ label: '指标名称',
+ prop: 'indexName',
+ show: true
+ },
+ {
+ label: 'A档',
+ prop: 'levelA',
+ show: true
+ },
+ {
+ label: 'B档',
+ prop: 'levelB',
+ show: true
+ },
+ {
+ label: 'C档',
+ prop: 'levelC',
+ show: true
+ },
+ {
+ label: 'D档',
+ prop: 'levelD',
+ show: true
+ },
+ {
+ label: '指标完成情况',
+ prop: 'execution',
+ show: true
+ },
+ {
+ label: '战略规划部评级',
+ prop: 'strategyScoring',
+ show: true
+ },
+ {
+ label: '平台建设部评级',
+ prop: 'platformScoring',
+ show: true
+ },
+ {
+ label: '市场发展部评级',
+ prop: 'marketScoring',
+ show: true
+ },
+ {
+ label: '服务产品部评级',
+ prop: 'serviceScoring',
+ show: true
+ },
+ {
+ label: '项目平均分',
+ // prop: '',
+ show: true
+ }
+ ]
+ }
},
tableSelectPage (param) {
this.pageNo = param
diff --git a/kehui-oa-front/src/server/projectManagements/index.js b/kehui-oa-front/src/server/projectManagements/index.js
index 90b1999..1a1476c 100644
--- a/kehui-oa-front/src/server/projectManagements/index.js
+++ b/kehui-oa-front/src/server/projectManagements/index.js
@@ -62,6 +62,7 @@ export default {
//自评/管理员打分
updateQuarterly: (param) => Ax('post', '/api/project/quarterExamine/update', param),
examine: (param) => Ax('post', '/api/project/quarterExamine/examine', param),
+ getOffice: (id) => Ax('get', `/api/project/quarterExamine/getOffice/${id}`, id),
/**
* 部门周报填报管理
* */