From 6d537f8a602ceecbca825955f5feb30cdc2e4b7f Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.coom> Date: Thu, 26 Dec 2019 16:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=85=E9=81=933319=20-=20=E8=80=83=E6=A0=B8?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E3=80=81=E6=89=8B=E5=8A=A8=E6=89=93=E5=88=86?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8C=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/kpi/manualScore.vue | 50 +++++++++++++++++++++++- src/views/modules/kpi/resultGrid.vue | 12 +++++- src/views/modules/kpi/resultSuperior.vue | 9 ++++- 3 files changed, 68 insertions(+), 3 deletions(-) diff --git a/src/views/modules/kpi/manualScore.vue b/src/views/modules/kpi/manualScore.vue index ef10a062..2522ed36 100644 --- a/src/views/modules/kpi/manualScore.vue +++ b/src/views/modules/kpi/manualScore.vue @@ -2,6 +2,14 @@
+ + + { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.options = res.data.options + }) + .catch(() => {}) }, // 已绑定手动打分的考核规则 methods: { @@ -197,6 +221,30 @@ export default { } }) } + }, + watch: { + 'deptIdList': function (val) { + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 2) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = '' + } + if (val.length === 3) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = this.deptIdList[2] + } + } } } diff --git a/src/views/modules/kpi/resultGrid.vue b/src/views/modules/kpi/resultGrid.vue index 3cb2f943..2dbacd6e 100644 --- a/src/views/modules/kpi/resultGrid.vue +++ b/src/views/modules/kpi/resultGrid.vue @@ -26,8 +26,10 @@ + + - + @@ -92,6 +94,14 @@ export default { .catch(() => {}) }, methods: { + // 考核周期开始日字段,格式化 + startDateFormat: function (row) { + return row.startDate.substring(0, 10) + }, + // 考核周期结束日字段,格式化 + endDateFormat: function (row) { + return row.endDate.substring(0, 10) + }, detailQuery (id) { this.addOrUpdateVisible = true this.$nextTick(() => { diff --git a/src/views/modules/kpi/resultSuperior.vue b/src/views/modules/kpi/resultSuperior.vue index a12e5ca0..6f95c849 100644 --- a/src/views/modules/kpi/resultSuperior.vue +++ b/src/views/modules/kpi/resultSuperior.vue @@ -10,6 +10,12 @@ clearable > + + + + {{ $t('query') }} @@ -62,7 +68,8 @@ export default { exportURL: '/kpi/kpiresultsuperior/export' }, dataForm: { - id: '' + id: '', + scoreStartDate: '' }, // 所属机构配置 deptIdList: [],