Browse Source

带入查询条件修改

feature
张若晨 2 years ago
parent
commit
0e90aacc2d
  1. 150
      src/views/dataBoard/renfang/resi/classNew.vue

150
src/views/dataBoard/renfang/resi/classNew.vue

@ -282,7 +282,7 @@ export default {
},
{
label: "90岁及以上",
value: ["90", "139"],
value: ["90", "200"],
},
],
oldAllList: [
@ -328,7 +328,7 @@ export default {
},
{
label: "90岁及以上",
value: ["90", "139"],
value: ["90", "200"],
},
],
oldAllList1: [
@ -350,7 +350,7 @@ export default {
},
{
label: "80岁及以上",
value: ["80", "139"],
value: ["80", "200"],
},
],
colList: [
@ -450,7 +450,7 @@ export default {
url: "/actual/base/peopleRoomOverview/postPageList",
},
],
oldValsss: ["60", "69"],
oldValsss: null,
jzVal: "",
searchParams: {},
unemploymentArr: [],
@ -486,61 +486,93 @@ export default {
if (query.olds) {
const olds = this.oldList.filter((item) => query.olds == item.label)[0];
this.changeOld(olds.value);
setTimeout(() => {
this.oldValsss = olds.value;
this.searchParams = {
resideSituation: null,
};
}, 200);
this.searchParams = {
resideSituation: null,
};
}
if (query.qingk) {
this.searchParams = {
resideSituation: query.qingk,
};
this.oldValsss = undefined;
setTimeout(() => {
const olds = this.resideArr.filter(
(item) => query.qingk == item.label
)[0];
this.oldValsss = null;
this.searchParams = {
resideSituation: olds.value,
};
}, 200);
}
}
if (type == "dibao") {
if (query.lowIncomeType) {
this.searchParams = {
lowIncomeType: query.lowIncomeType, //
lowIncomeReason: null, //
};
setTimeout(() => {
const lowIncomeType = this.lowIncomeTypeArr.filter(
(item) => query.lowIncomeType == item.label
)[0];
this.oldValsss = null;
this.searchParams = {
lowIncomeType: lowIncomeType.value, //
lowIncomeReason: null, //
};
}, 200);
}
if (query.lowIncomeReason) {
this.searchParams = {
lowIncomeType: null, //
lowIncomeReason: query.lowIncomeReason, //
};
setTimeout(() => {
const lowIncomeReason = this.lowIncomeReasonArr.filter(
(item) => query.lowIncomeReason == item.label
)[0];
this.oldValsss = null;
this.searchParams = {
lowIncomeType: null, //
lowIncomeReason: lowIncomeReason.value, //
};
}, 200);
}
}
if (type == "shiye") {
if (query.olds) {
const olds = this.oldAllList1.filter((item) => query.olds == item.label)[0];
const olds = this.oldAllList1.filter(
(item) => query.olds == item.label
)[0];
this.changeOld(olds.value);
setTimeout(() => {
this.oldValsss = olds.value;
this.searchParams = {
employmentWish: null, //
unemploymentReason: null, //
};
}, 200);
this.searchParams = {
employmentWish: null, //
unemploymentReason: null, //
};
}
if (query.employmentWish) {
this.searchParams = {
employmentWish: query.employmentWish, //
unemploymentReason: null, //
startAge: null,
endAge: null,
};
setTimeout(() => {
const employmentWish = this.careerArr.filter(
(item) => query.employmentWish == item.label
)[0];
this.searchParams = {
employmentWish: employmentWish.value, //
unemploymentReason: null, //
startAge: null,
endAge: null,
};
this.oldValsss = null;
}, 200);
}
if (query.unemploymentReason) {
this.searchParams = {
employmentWish: null, //
unemploymentReason: query.unemploymentReason, //
startAge: null,
endAge: null,
};
if (query.unemploymentReason || query.unemploymentReason == "") {
setTimeout(() => {
const unemploymentReason = this.unemploymentArr.filter(
(item) => query.unemploymentReason == item.label
)[0];
this.searchParams = {
employmentWish: null, //
unemploymentReason: unemploymentReason.value, //
startAge: null,
endAge: null,
};
this.oldValsss = null;
}, 200);
}
}
if (type == "dangyuan") {
@ -554,9 +586,15 @@ export default {
}, 200);
}
if (query.cultureLevel) {
this.searchParams = {
cultureLevel: query.cultureLevel, //
};
setTimeout(() => {
const cultureLevel = this.PostDictonArr.filter(
(item) => query.cultureLevel == item.label
)[0];
this.searchParams = {
cultureLevel: cultureLevel.value, //
};
this.oldValsss = null;
}, 200);
}
}
if (type == "zhiyuanzhe") {
@ -567,12 +605,21 @@ export default {
this.changeOld(olds.value);
setTimeout(() => {
this.oldValsss = olds.value;
this.searchParams = {
gategoryCode: null, //
};
}, 200);
}
if (query.gategoryCode) {
this.searchParams = {
gategoryCode: query.gategoryCode, //
};
setTimeout(() => {
const gategoryCode = this.volunteerArr.filter(
(item) => query.gategoryCode == item.label
)[0];
this.oldValsss = null;
this.searchParams = {
gategoryCode: gategoryCode.value, //
};
}, 200);
}
}
if (
@ -581,9 +628,12 @@ export default {
type == "jineng" ||
type == "gangwei"
) {
this.searchParams = {
serviceOrgName: null, //
};
setTimeout(() => {
this.searchParams = {
serviceOrgName: null, //
};
this.oldValsss = null;
}, 200);
}
if (!query.olds) {
this.getList();
@ -666,7 +716,7 @@ export default {
methods: {
changeOld(e) {
if (!e) {
this.oldValsss = undefined;
this.oldValsss = null;
const searchParams = {
startAge: null,
endAge: null,
@ -735,7 +785,11 @@ export default {
const sourceType = ["公共服务", "共性需求", "政策找人", "服务找人"];
this.loading = true;
let params = {};
if (this.oldValsss && this.oldValsss != "" && this.oldValsss.length != 0) {
if (
this.oldValsss &&
this.oldValsss != "" &&
this.oldValsss.length != 0
) {
params = {
startAge: this.oldValsss[0],
endAge: this.oldValsss[1],

Loading…
Cancel
Save