From 0f036eacfbca9d7dbbee957beed8d787b47b7c3d Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.coom> Date: Tue, 14 Apr 2020 16:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=88=86=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/kpi/manualscore-zlph.vue | 30 +++++++--------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/src/views/modules/kpi/manualscore-zlph.vue b/src/views/modules/kpi/manualscore-zlph.vue index 890a9902..cf2c53ba 100644 --- a/src/views/modules/kpi/manualscore-zlph.vue +++ b/src/views/modules/kpi/manualscore-zlph.vue @@ -96,8 +96,9 @@ export default { }, dataForm: { id: '', - deptType: 'street_dept', // 被打分的机构类型 + deptType: 'street_party', // 被打分的机构类型 month: '', + deptId: '', scoreType: '0' // 考核打分类型 0-月,1-年 }, upLoadUrl: '', @@ -106,7 +107,7 @@ export default { options: [], kpiManualRuleList: [ { - "id": 'street_dept', + "id": 'street_party', "deptName": '街道' }, { @@ -142,11 +143,13 @@ export default { let month = this.dataForm.month let deptType = this.dataForm.deptType let scoreType = this.dataForm.scoreType + let deptId = this.dataForm.deptId let params = qs.stringify({ 'token': Cookies.get('token'), 'month': month, 'deptType': deptType, - 'scoreType': scoreType + 'scoreType': scoreType, + 'deptId': deptId }) // let paramsJson = { // 'month': month, 'deptType': deptType, 'scoreType': scoreType @@ -197,24 +200,9 @@ 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] + this.dataForm.deptId = '' + } else if (val.length > 0) { + this.dataForm.deptId = this.deptIdList[val.length - 1] } } }