Browse Source

项目列表,修改按部门查询

feature/yujt_analysis_pc
yujt 5 years ago
parent
commit
23e8b1fb7b
  1. 25
      src/views/modules/events/item-close-list.vue
  2. 25
      src/views/modules/events/item-deal-list.vue
  3. 25
      src/views/modules/events/item-end-list.vue

25
src/views/modules/events/item-close-list.vue

@ -175,9 +175,7 @@ export default {
itemState: '5', itemState: '5',
startTime: '', startTime: '',
endTime: '', endTime: '',
streetId: '', deptId: '',
communityId: '',
gridId: '',
itemCode: '' itemCode: ''
}, },
ids: [], ids: [],
@ -210,24 +208,9 @@ export default {
watch: { watch: {
ids: function (val) { ids: function (val) {
if (val.length === 0) { if (val.length === 0) {
this.dataForm.streetId = '' this.dataForm.deptId = ''
this.dataForm.communityId = '' } else {
this.dataForm.gridId = '' this.dataForm.deptId = this.ids[val.length - 1]
}
if (val.length === 1) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = ''
this.dataForm.gridId = ''
}
if (val.length === 2) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = ''
}
if (val.length === 3) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
} }
} }
}, },

25
src/views/modules/events/item-deal-list.vue

@ -177,9 +177,7 @@ export default {
itemState: '0', itemState: '0',
startTime: '', startTime: '',
endTime: '', endTime: '',
streetId: '', deptId: '',
communityId: '',
gridId: '',
itemCode: '' itemCode: ''
}, },
ids: [], ids: [],
@ -211,24 +209,9 @@ export default {
watch: { watch: {
ids: function (val) { ids: function (val) {
if (val.length === 0) { if (val.length === 0) {
this.dataForm.streetId = '' this.dataForm.deptId = ''
this.dataForm.communityId = '' } else {
this.dataForm.gridId = '' this.dataForm.deptId = this.ids[val.length - 1]
}
if (val.length === 1) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = ''
this.dataForm.gridId = ''
}
if (val.length === 2) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = ''
}
if (val.length === 3) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
} }
} }
}, },

25
src/views/modules/events/item-end-list.vue

@ -182,9 +182,7 @@ export default {
itemState: '10', itemState: '10',
startTime: '', startTime: '',
endTime: '', endTime: '',
streetId: '', deptId: '',
communityId: '',
gridId: '',
itemCode: '' itemCode: ''
}, },
detailVisible: false, detailVisible: false,
@ -217,24 +215,9 @@ export default {
watch: { watch: {
ids: function (val) { ids: function (val) {
if (val.length === 0) { if (val.length === 0) {
this.dataForm.streetId = '' this.dataForm.deptId = ''
this.dataForm.communityId = '' } else {
this.dataForm.gridId = '' this.dataForm.deptId = this.ids[val.length - 1]
}
if (val.length === 1) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = ''
this.dataForm.gridId = ''
}
if (val.length === 2) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = ''
}
if (val.length === 3) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
} }
} }
}, },

Loading…
Cancel
Save