Browse Source

带入查询条件修改

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

Loading…
Cancel
Save