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: [],