Browse Source

带入查询条件修改

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

90
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;
}, 200);
this.searchParams = { this.searchParams = {
resideSituation: null, resideSituation: null,
}; };
}, 200);
} }
if (query.qingk) { if (query.qingk) {
setTimeout(() => {
const olds = this.resideArr.filter(
(item) => query.qingk == item.label
)[0];
this.oldValsss = null;
this.searchParams = { this.searchParams = {
resideSituation: query.qingk, resideSituation: olds.value,
}; };
this.oldValsss = undefined; }, 200);
} }
} }
if (type == "dibao") { if (type == "dibao") {
if (query.lowIncomeType) { if (query.lowIncomeType) {
setTimeout(() => {
const lowIncomeType = this.lowIncomeTypeArr.filter(
(item) => query.lowIncomeType == item.label
)[0];
this.oldValsss = null;
this.searchParams = { this.searchParams = {
lowIncomeType: query.lowIncomeType, // lowIncomeType: lowIncomeType.value, //
lowIncomeReason: null, // lowIncomeReason: null, //
}; };
}, 200);
} }
if (query.lowIncomeReason) { if (query.lowIncomeReason) {
setTimeout(() => {
const lowIncomeReason = this.lowIncomeReasonArr.filter(
(item) => query.lowIncomeReason == item.label
)[0];
this.oldValsss = null;
this.searchParams = { this.searchParams = {
lowIncomeType: null, // lowIncomeType: null, //
lowIncomeReason: query.lowIncomeReason, // 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;
}, 200);
this.searchParams = { this.searchParams = {
employmentWish: null, // employmentWish: null, //
unemploymentReason: null, // unemploymentReason: null, //
}; };
}, 200);
} }
if (query.employmentWish) { if (query.employmentWish) {
setTimeout(() => {
const employmentWish = this.careerArr.filter(
(item) => query.employmentWish == item.label
)[0];
this.searchParams = { this.searchParams = {
employmentWish: query.employmentWish, // employmentWish: employmentWish.value, //
unemploymentReason: null, // unemploymentReason: null, //
startAge: null, startAge: null,
endAge: null, endAge: null,
}; };
this.oldValsss = null;
}, 200);
} }
if (query.unemploymentReason) { if (query.unemploymentReason || query.unemploymentReason == "") {
setTimeout(() => {
const unemploymentReason = this.unemploymentArr.filter(
(item) => query.unemploymentReason == item.label
)[0];
this.searchParams = { this.searchParams = {
employmentWish: null, // employmentWish: null, //
unemploymentReason: query.unemploymentReason, // unemploymentReason: unemploymentReason.value, //
startAge: null, startAge: null,
endAge: 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) {
setTimeout(() => {
const cultureLevel = this.PostDictonArr.filter(
(item) => query.cultureLevel == item.label
)[0];
this.searchParams = { this.searchParams = {
cultureLevel: query.cultureLevel, // 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) {
setTimeout(() => {
const gategoryCode = this.volunteerArr.filter(
(item) => query.gategoryCode == item.label
)[0];
this.oldValsss = null;
this.searchParams = { this.searchParams = {
gategoryCode: query.gategoryCode, // gategoryCode: gategoryCode.value, //
}; };
}, 200);
} }
} }
if ( if (
@ -581,9 +628,12 @@ export default {
type == "jineng" || type == "jineng" ||
type == "gangwei" type == "gangwei"
) { ) {
setTimeout(() => {
this.searchParams = { this.searchParams = {
serviceOrgName: null, // 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