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: { dataForm: {
id: '', id: '',
deptType: 'street_dept', // deptType: 'street_party', //
month: '', month: '',
deptId: '',
scoreType: '0' // 0-1- scoreType: '0' // 0-1-
}, },
upLoadUrl: '', upLoadUrl: '',
@ -106,7 +107,7 @@ export default {
options: [], options: [],
kpiManualRuleList: [ kpiManualRuleList: [
{ {
"id": 'street_dept', "id": 'street_party',
"deptName": '街道' "deptName": '街道'
}, },
{ {
@ -142,11 +143,13 @@ export default {
let month = this.dataForm.month let month = this.dataForm.month
let deptType = this.dataForm.deptType let deptType = this.dataForm.deptType
let scoreType = this.dataForm.scoreType let scoreType = this.dataForm.scoreType
let deptId = this.dataForm.deptId
let params = qs.stringify({ let params = qs.stringify({
'token': Cookies.get('token'), 'token': Cookies.get('token'),
'month': month, 'month': month,
'deptType': deptType, 'deptType': deptType,
'scoreType': scoreType 'scoreType': scoreType,
'deptId': deptId
}) })
// let paramsJson = { // let paramsJson = {
// 'month': month, 'deptType': deptType, 'scoreType': scoreType // 'month': month, 'deptType': deptType, 'scoreType': scoreType
@ -197,24 +200,9 @@ export default {
watch: { watch: {
'deptIdList': function (val) { 'deptIdList': function (val) {
if (val.length === 0) { if (val.length === 0) {
this.dataForm.streetId = '' this.dataForm.deptId = ''
this.dataForm.communityId = '' } else if (val.length > 0) {
this.dataForm.gridId = '' this.dataForm.deptId = this.deptIdList[val.length - 1]
}
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]
} }
} }
} }

Loading…
Cancel
Save