Browse Source

打分管理页面修改

master
zhangyongzhangyong 6 years ago
parent
commit
0f036eacfb
  1. 30
      src/views/modules/kpi/manualscore-zlph.vue

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

Loading…
Cancel
Save