Browse Source

共性需求

feature
mk 1 year ago
parent
commit
6c18fb683f
  1. 12
      src/views/modules/communityService/gxxq/addForm.vue

12
src/views/modules/communityService/gxxq/addForm.vue

@ -365,12 +365,12 @@ export default {
showLabelForm: false,
codeFilters: {
'1038': ['party_unit', 'community_org'],
'1039': ['party_unit', 'community_org'],
'1038': ['party_unit', 'community_org','public_welfare_post'],
'1039': ['party_unit', 'community_org', 'public_welfare_post'],
'1040': ['party_unit', 'community_org'],
'1041': ['party_unit', 'community_org', 'publicWelfare'],
'1042': ['party_unit', 'community_org', 'publicWelfare'],
'1043': ['party_unit', 'community_org', 'publicWelfare'],
'1041': ['party_unit', 'community_org', 'public_welfare_post'],
'1042': ['party_unit', 'community_org'],
'1043': ['party_unit', 'community_org'],
'1044': ['party_unit', 'community_org'],
},
};
@ -490,9 +490,7 @@ export default {
handelChangeCategoryCode() {
this.serviceOptions = [...this.originalServiceOptions];
const codeFilters = this.codeFilters;
console.log(this.serviceOptions);
const checkedCode = this.$refs['myCategoryCode'].getCheckedNodes()[0].parent.value;
console.log(checkedCode);
if (codeFilters[checkedCode] && Array.isArray(codeFilters[checkedCode])) {
this.serviceOptions = this.serviceOptions.filter(item => codeFilters[checkedCode].includes(item.value));
} else {

Loading…
Cancel
Save