|
|
|
@ -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] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|