+
公益岗(虚拟网格)
-
{{categoryList.publicWelfareFlagVirtualCount}}
+
{{ categoryList.publicWelfareFlagVirtualCount }}
@@ -668,19 +668,28 @@ export default {
this.$message.error(msg)
}
},
- handelClickToResi(e){
+ handelClickToResi(e) {
console.log(e);
- this.$router.push({
- name: "base-resi",
- query: {
- category: e || null,
+ this.$router.push({
+ name: "base-resi",
+ query: {
+ category: e || null,
+ },
+
+ })
+ },
+ handelClickTovirtualResi(e) {
+ console.log(e);
+ this.$router.push({
+ name: "base-virtualResi",
+ query: {
+ category: e || null,
+ },
+ });
},
- });
- },
- }
+ }
}
-
// import addCategory from "./addCategory";
diff --git a/src/views/modules/base/virtualResi.vue b/src/views/modules/base/virtualResi.vue
index a41fa6c87..9f824753c 100644
--- a/src/views/modules/base/virtualResi.vue
+++ b/src/views/modules/base/virtualResi.vue
@@ -1219,26 +1219,56 @@ export default {
},
},
watch: {
- $route: {
- handler: function (newVal, oldVal) {
- // console.log(newVal, oldVal)
- if (newVal.name == "base-resi") {
- this.$nextTick(() => {
- if (newVal.params.category) {
- this.$refs.myResiSearch.form.categoryKey = []
- this.$refs.myResiSearch.form.categoryKey.push(newVal.params.category)
- this.handleSearchFrom()
- } else {
- // this.$refs.myResiSearch.form.categoryKey = []
- // this.handleSearchFrom()
- }
- })
- }
- },
- deep: true,
- immediate: true
+ $route: {
+ handler: function (newVal, oldVal) {
+ if (newVal.name == "base-virtualResi" && (!oldVal || oldVal.name === 'base-classification')) {
+ console.log(oldVal);
+ this.$nextTick(() => {
+ this.$refs.myResiSearch.form.attentionCrowds = [];
+ this.$refs.myResiSearch.form.healthStatus = [];
+ this.$refs.myResiSearch.form.specialCategoryCodes = [];
+ this.$refs.myResiSearch.form.partyFlag=null;
+ if (newVal.query.category === 'SPECIAL_SUPPORT_FLAG' ||newVal.query.category === 'SUBSISTENCE_ALLOWANCE_FLAG'|| newVal.query.category === 'VETERAN_FLAG'|| newVal.query.category === 'ENSURE_HOUSE_FLAG'|| newVal.query.category === 'OLD_PEOPLE_FLAG'|| newVal.query.category === 'FERTILE_WOMAN_FLAG' || newVal.query.category === 'FLOATING_FLAG' || newVal.query.category === 'NEW_STRATUM_FLAG' || newVal.query.category === 'permanentFlag') {
+ this.$refs.myResiSearch.form.attentionCrowds.push(
+ newVal.query.category
+ );
+ } else if(newVal.query.category === 'CHRONIC_DISEASE_FLAG' ||newVal.query.category === 'SERIOUS_ILLNESS_FLAG'||newVal.query.category === 'DISABILITY_FLAG'){
+ this.$refs.myResiSearch.form.healthStatus.push(
+ newVal.query.category
+ );
+ }else if(newVal.query.category === 'SQJZ_FLAG' || newVal.query.category === 'AZBJ_FLAG' || newVal.query.category === 'DRUG_FLAG' || newVal.query.category === 'XJRY_FLAG' || newVal.query.category === 'ZSZHJSB_FLAG' || newVal.query.category === 'UNITED_FRONT_FLAG'|| newVal.query.category === 'PETITION_OFFICER_FLAG' || newVal.query.category === 'BLQSN_FLAG'){
+ let obj = {
+ SQJZ_FLAG:'shequjiaozheng',
+ AZBJ_FLAG:'anzhibangjiao',
+ DRUG_FLAG:'xidurenyuan',
+ XJRY_FLAG:'xiejiaorenyuan',
+ ZSZHJSB_FLAG:'zhaoshizhaohuojingshenbing',
+ UNITED_FRONT_FLAG:'tongzhanrenyuan',
+ PETITION_OFFICER_FLAG:'xinfangrenyaun',
+ BLQSN_FLAG:'buliangqingshaonian'
+ }
+ this.$refs.myResiSearch.form.specialCategoryCodes = [obj[newVal.query.category]];
+ }else if(newVal.query.category === 'PARTY_FLAG'){
+ this.$refs.myResiSearch.form.partyFlag =1;
+ }else if(newVal.query.category === 'BUILDING_CHIEF_FLAG' || newVal.query.category === 'VOLUNTEER_FLAG' || newVal.query.category === 'UNIT_CHIEF_FLAG' || newVal.query.category ==='PUBLIC_WELFARE_FLAG'){
+ console.log(newVal.query.category);
+ this.$refs.myResiSearch.form.identity = newVal.query.category;
+ }else if(newVal.query.category === 'MASS_FLAG'){
+ this.$refs.myResiSearch.form.partyFlag = 0;
+ }else if(newVal.query.category === 'LEAGUE_FLAG'){
+ this.$refs.myResiSearch.form.partyFlag = 2;
+ } else if(newVal.query.category === 'UNEMPLOYED_FLAG'){
+ this.$refs.myResiSearch.form.careerStatus = '0';
+ }
+ this.handleSearchFrom();
+ });
}
+
+ },
+ deep: true,
+ immediate: true,
},
+ },
};