Browse Source

居民列表查询条件带入

feature
张若晨 2 years ago
parent
commit
ed0c916d23
  1. 273
      src/views/dataBoard/renfang/resi/classNew.vue
  2. 8
      src/views/dataBoard/renfang/visualizing/components/dangyuan.vue
  3. 4
      src/views/dataBoard/renfang/visualizing/components/dibaorenyuan.vue
  4. 9
      src/views/dataBoard/renfang/visualizing/components/laonianren.vue
  5. 18
      src/views/dataBoard/renfang/visualizing/components/shiyerenyuan.vue
  6. 8
      src/views/dataBoard/renfang/visualizing/components/zhiyuanzhe.vue

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

@ -14,8 +14,10 @@
<div class="second-select" v-if="type == 'old'"> <div class="second-select" v-if="type == 'old'">
<el-select <el-select
v-model="oldVal" @change="changeOld"
v-model="oldValsss"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
placeholder="请选择年龄" placeholder="请选择年龄"
> >
<el-option <el-option
@ -29,6 +31,7 @@
<el-select <el-select
v-model="searchParams.resideSituation" v-model="searchParams.resideSituation"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
@change="changeSearch" @change="changeSearch"
placeholder="请选择居住情况" placeholder="请选择居住情况"
> >
@ -44,6 +47,7 @@
<el-select <el-select
v-model="searchParams.lowIncomeType" v-model="searchParams.lowIncomeType"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
@change="changeSearch" @change="changeSearch"
placeholder="请选择低保类型" placeholder="请选择低保类型"
> >
@ -58,6 +62,7 @@
<el-select <el-select
v-model="searchParams.lowIncomeReason" v-model="searchParams.lowIncomeReason"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
@change="changeSearch" @change="changeSearch"
placeholder="请选择低保原因" placeholder="请选择低保原因"
> >
@ -71,12 +76,14 @@
</div> </div>
<div class="second-select" v-if="type == 'zhiyuanzhe'"> <div class="second-select" v-if="type == 'zhiyuanzhe'">
<el-select <el-select
v-model="oldVal" @change="changeOld"
v-model="oldValsss"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
placeholder="请选择年龄" placeholder="请选择年龄"
> >
<el-option <el-option
v-for="item in oldAllList" v-for="item in oldAllList1"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
@ -86,6 +93,7 @@
<el-select <el-select
v-model="searchParams.gategoryCode" v-model="searchParams.gategoryCode"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
@change="changeSearch" @change="changeSearch"
placeholder="请选择志愿者类型" placeholder="请选择志愿者类型"
> >
@ -99,12 +107,14 @@
</div> </div>
<div class="second-select" v-if="type == 'dangyuan'"> <div class="second-select" v-if="type == 'dangyuan'">
<el-select <el-select
v-model="oldVal" @change="changeOld"
v-model="oldValsss"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
placeholder="请选择年龄" placeholder="请选择年龄"
> >
<el-option <el-option
v-for="item in oldAllList" v-for="item in oldAllList1"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
@ -114,6 +124,7 @@
<el-select <el-select
v-model="searchParams.cultureLevel" v-model="searchParams.cultureLevel"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
@change="changeSearch" @change="changeSearch"
placeholder="请选择学历" placeholder="请选择学历"
> >
@ -127,13 +138,14 @@
</div> </div>
<div class="second-select" v-if="type == 'shiye'"> <div class="second-select" v-if="type == 'shiye'">
<el-select <el-select
v-model="oldVal" @change="changeOld"
v-model="oldValsss"
:popper-append-to-body="false" :popper-append-to-body="false"
@change="changeSearch" :clearable="true"
placeholder="请选择年龄" placeholder="请选择年龄"
> >
<el-option <el-option
v-for="item in oldAllList" v-for="item in oldAllList1"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
@ -143,6 +155,7 @@
<el-select <el-select
v-model="searchParams.employmentWish" v-model="searchParams.employmentWish"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
@change="changeSearch" @change="changeSearch"
placeholder="请选择就业愿望" placeholder="请选择就业愿望"
> >
@ -157,6 +170,7 @@
<el-select <el-select
v-model="searchParams.unemploymentReason" v-model="searchParams.unemploymentReason"
:popper-append-to-body="false" :popper-append-to-body="false"
:clearable="true"
@change="changeSearch" @change="changeSearch"
placeholder="请选择失业原因" placeholder="请选择失业原因"
> >
@ -180,6 +194,7 @@
<el-input <el-input
type="text" type="text"
v-model="searchParams.serviceOrgName" v-model="searchParams.serviceOrgName"
:clearable="true"
placeholder="请输入服务方名称" placeholder="请输入服务方名称"
@blur="changeFwfmc" @blur="changeFwfmc"
/> />
@ -266,7 +281,7 @@ export default {
value: ["80", "89"], value: ["80", "89"],
}, },
{ {
label: "90岁以上", label: "90岁以上",
value: ["90", "139"], value: ["90", "139"],
}, },
], ],
@ -312,10 +327,32 @@ export default {
value: ["80", "89"], value: ["80", "89"],
}, },
{ {
label: "90岁以上", label: "90岁以上",
value: ["90", "139"], value: ["90", "139"],
}, },
], ],
oldAllList1: [
{
label: "49岁及以下",
value: ["0", "49"],
},
{
label: "50-59岁",
value: ["50", "59"],
},
{
label: "60-69岁",
value: ["60", "69"],
},
{
label: "70-79岁",
value: ["70", "79"],
},
{
label: "80岁及以上",
value: ["80", "139"],
},
],
colList: [ colList: [
{ {
align: "left", align: "left",
@ -413,7 +450,7 @@ export default {
url: "/actual/base/peopleRoomOverview/postPageList", url: "/actual/base/peopleRoomOverview/postPageList",
}, },
], ],
oldVal: ["60", "69"], oldValsss: ["60", "69"],
jzVal: "", jzVal: "",
searchParams: {}, searchParams: {},
unemploymentArr: [], unemploymentArr: [],
@ -424,9 +461,9 @@ export default {
lowIncomeTypeArr: [], lowIncomeTypeArr: [],
}; };
}, },
activated() { activated() {
const query = this.$route.query; const query = this.$route.query;
this.query = this.$route.query;
this.org_id = query.org_id; this.org_id = query.org_id;
this.type = query.type; this.type = query.type;
this.type_id = query.type_id; this.type_id = query.type_id;
@ -445,33 +482,98 @@ export default {
this.tableTitle = type_name + "居民列表"; this.tableTitle = type_name + "居民列表";
this.pageNo = 1; this.pageNo = 1;
const type = this.type; const type = this.type;
if (type == "old") {
if (query.olds) {
const olds = this.oldList.filter((item) => query.olds == item.label)[0];
this.changeOld(olds.value);
setTimeout(() => {
this.oldValsss = olds.value;
}, 200);
this.searchParams = {
resideSituation: null,
};
}
if (query.qingk) {
this.searchParams = {
resideSituation: query.qingk,
};
this.oldValsss = undefined;
}
}
if (type == "dibao") { if (type == "dibao") {
this.searchParams = { if (query.lowIncomeType) {
lowIncomeType: null, // this.searchParams = {
lowIncomeReason: null, // lowIncomeType: query.lowIncomeType, //
}; lowIncomeReason: null, //
};
}
if (query.lowIncomeReason) {
this.searchParams = {
lowIncomeType: null, //
lowIncomeReason: query.lowIncomeReason, //
};
}
} }
if (type == "shiye") { if (type == "shiye") {
this.searchParams = { if (query.olds) {
employmentWish: null, // const olds = this.oldAllList1.filter((item) => query.olds == item.label)[0];
unemploymentReason: null, // this.changeOld(olds.value);
startAge: null, setTimeout(() => {
endAge: null, this.oldValsss = olds.value;
}; }, 200);
this.searchParams = {
employmentWish: null, //
unemploymentReason: null, //
};
}
if (query.employmentWish) {
this.searchParams = {
employmentWish: query.employmentWish, //
unemploymentReason: null, //
startAge: null,
endAge: null,
};
}
if (query.unemploymentReason) {
this.searchParams = {
employmentWish: null, //
unemploymentReason: query.unemploymentReason, //
startAge: null,
endAge: null,
};
}
} }
if (type == "dangyuan") { if (type == "dangyuan") {
this.searchParams = { if (query.olds) {
cultureLevel: null, // const olds = this.oldAllList1.filter(
startAge: null, (item) => query.olds == item.label
endAge: null, )[0];
}; this.changeOld(olds.value);
setTimeout(() => {
this.oldValsss = olds.value;
}, 200);
}
if (query.cultureLevel) {
this.searchParams = {
cultureLevel: query.cultureLevel, //
};
}
} }
if (type == "zhiyuan") { if (type == "zhiyuanzhe") {
this.searchParams = { if (query.olds) {
gategoryCode: null, // const olds = this.oldAllList1.filter(
startAge: null, (item) => query.olds == item.label
endAge: null, )[0];
}; this.changeOld(olds.value);
setTimeout(() => {
this.oldValsss = olds.value;
}, 200);
}
if (query.gategoryCode) {
this.searchParams = {
gategoryCode: query.gategoryCode, //
};
}
} }
if ( if (
type == "fuwu" || type == "fuwu" ||
@ -483,7 +585,9 @@ export default {
serviceOrgName: null, // serviceOrgName: null, //
}; };
} }
this.getList(); if (!query.olds) {
this.getList();
}
if (this.pageType != "normal") { if (this.pageType != "normal") {
this.colList = [ this.colList = [
{ {
@ -544,25 +648,39 @@ export default {
this.pageNo = 1; this.pageNo = 1;
}, },
watch: { watch: {
// $route(to, from) { // oldValsss: {
// this.$router.go(0); // handler(newVal) {
// // this.pageNo = 1;
// // const searchParams = {
// // startAge: newVal[0],
// // endAge: newVal[1],
// // };
// // this.getList(searchParams);
// },
// }, // },
oldVal: { searchParams(newVal) {
handler(newVal, oldVal) { this.pageNo = 1;
this.pageNo = 1;
const searchParams = {
startAge: newVal[0],
endAge: newVal[1],
};
this.getList(searchParams);
},
},
searchParams(newVal, oldVal) {
this.getList(); this.getList();
}, },
}, },
methods: { methods: {
changeOld(e) {
if (!e) {
this.oldValsss = undefined;
const searchParams = {
startAge: null,
endAge: null,
};
this.getList(searchParams);
return;
}
const searchParams = {
startAge: e[0],
endAge: e[1],
};
this.oldValsss = e;
this.getList(searchParams);
},
handleClickBreadItem({ item }) { handleClickBreadItem({ item }) {
this.$router.push({ this.$router.push({
path: item.path, path: item.path,
@ -613,17 +731,33 @@ export default {
this.getList(); this.getList();
}, },
async getList(item) { async getList(item) {
const { url } = this.typeList.filter((item) => item.type == this.type)[0]; const { url } = this.typeList.filter((d) => d.type == this.type)[0];
const sourceType = ["公共服务", "共性需求", "政策找人", "服务找人"]; const sourceType = ["公共服务", "共性需求", "政策找人", "服务找人"];
this.loading = true; this.loading = true;
let params = {};
if (this.oldValsss && this.oldValsss != "" && this.oldValsss.length != 0) {
params = {
startAge: this.oldValsss[0],
endAge: this.oldValsss[1],
};
} else {
params = {
startAge: null,
endAge: null,
};
}
let queryParam = { let queryParam = {
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
...this.searchParams, ...this.searchParams,
...item, ...params,
}; };
for (let key in queryParam) { for (let key in queryParam) {
if (queryParam[key] == "ALL") { if (
queryParam[key] == "ALL" ||
queryParam[key] == "" ||
queryParam[key] == null
) {
queryParam[key] = undefined; queryParam[key] = undefined;
} }
} }
@ -641,8 +775,8 @@ export default {
item.name ? item.name : "--", item.name ? item.name : "--",
item.gridName ? item.gridName : "--", item.gridName ? item.gridName : "--",
item.fullName ? item.fullName : "--", item.fullName ? item.fullName : "--",
item.mobile ? $sensitive(item.mobile, 3, 7) : "--", item.mobile ? this.$sensitive(item.mobile, 3, 7) : "--",
item.idNum ? $sensitive(item.idNum, 0, 14) : "--", item.idNum ? this.$sensitive(item.idNum, 0, 14) : "--",
item.gender ? gender[item.gender] : "--", item.gender ? gender[item.gender] : "--",
item.birthday ? item.birthday : "--", item.birthday ? item.birthday : "--",
{ type: "operate", list: ["查看"] }, { type: "operate", list: ["查看"] },
@ -680,9 +814,7 @@ export default {
}, },
...data.data, ...data.data,
]; ];
} catch (error) { } catch (error) {}
console.log(error, "获取居住情况字典");
}
}, },
// async getPostNation() { // async getPostNation() {
// try { // try {
@ -691,7 +823,6 @@ export default {
// }); // });
// this.PostDictonArr = data.data; // this.PostDictonArr = data.data;
// } catch (error) { // } catch (error) {
// console.log(error, "");
// } // }
// }, // },
async getUnemployment() { async getUnemployment() {
@ -706,9 +837,7 @@ export default {
}, },
...data.data, ...data.data,
]; ];
} catch (error) { } catch (error) {}
console.log(error, "获取失业原因字典");
}
}, },
async getCareer() { async getCareer() {
try { try {
@ -722,9 +851,7 @@ export default {
}, },
...data.data, ...data.data,
]; ];
} catch (error) { } catch (error) {}
console.log(error, "获取就业愿望字典");
}
}, },
async getVolunteer() { async getVolunteer() {
try { try {
@ -738,9 +865,7 @@ export default {
}, },
...data.data, ...data.data,
]; ];
} catch (error) { } catch (error) {}
console.log(error, "获取志愿者类别字典");
}
}, },
async getLowIncomeReason() { async getLowIncomeReason() {
try { try {
@ -754,9 +879,7 @@ export default {
}, },
...data.data, ...data.data,
]; ];
} catch (error) { } catch (error) {}
console.log(error, "获取低保原因字典");
}
}, },
async getLowIncomeType() { async getLowIncomeType() {
try { try {
@ -770,9 +893,7 @@ export default {
}, },
...data.data, ...data.data,
]; ];
} catch (error) { } catch (error) {}
console.log(error, "获取低保类型字典");
}
}, },
async getPostNation() { async getPostNation() {
try { try {
@ -786,14 +907,10 @@ export default {
}, },
...data.data, ...data.data,
]; ];
} catch (error) { } catch (error) {}
console.log(error, "获取学历字典");
}
}, },
}, },
destroyed() { destroyed() {},
console.log("我已经离开了!");
},
}; };
</script> </script>

8
src/views/dataBoard/renfang/visualizing/components/dangyuan.vue

@ -157,7 +157,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: this.dyLeft && this.dyLeft.length > 0 ? [30, 130] : [0, 0], radius: this.dyLeft && this.dyLeft.length > 0 ? [30, 130] : [0, 0],
center: ["50%", "50%"], center: ["50%", "50%"],
@ -180,7 +179,7 @@ export default {
], ],
}; };
this.myChart1.setOption(option); this.myChart1.setOption(option);
this.myChart1.on("click", (a, b) => { this.myChart1.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -189,6 +188,7 @@ export default {
type_name: "党员", type_name: "党员",
pageType: "normal", pageType: "normal",
type: "dangyuan", type: "dangyuan",
olds: e.data.name,
}, },
}); });
}); });
@ -273,7 +273,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.dyRight && this.dyRight.length > 0 ? [30, 130] : [0, 0], this.dyRight && this.dyRight.length > 0 ? [30, 130] : [0, 0],
@ -296,7 +295,7 @@ export default {
}, },
], ],
}; };
this.myChart2.on("click", (a, b) => { this.myChart2.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -305,6 +304,7 @@ export default {
type_name: "党员", type_name: "党员",
pageType: "normal", pageType: "normal",
type: "dangyuan", type: "dangyuan",
cultureLevel: e.data.name,
}, },
}); });
}); });

4
src/views/dataBoard/renfang/visualizing/components/dibaorenyuan.vue

@ -226,7 +226,7 @@ export default {
], ],
}; };
this.myChart1.setOption(option); this.myChart1.setOption(option);
this.myChart1.on("click", (a, b) => { this.myChart1.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -235,6 +235,7 @@ export default {
type_name: "低保人员", type_name: "低保人员",
pageType: "normal", pageType: "normal",
type: "dibao", type: "dibao",
lowIncomeType: e.node.name,
}, },
}); });
}); });
@ -363,6 +364,7 @@ export default {
type_name: "低保人员", type_name: "低保人员",
pageType: "normal", pageType: "normal",
type: "dibao", type: "dibao",
lowIncomeReason: e.node.name,
}, },
}); });
}); });

9
src/views/dataBoard/renfang/visualizing/components/laonianren.vue

@ -157,7 +157,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.lnrLeft && this.lnrLeft.length > 0 ? [30, 130] : [0, 0], this.lnrLeft && this.lnrLeft.length > 0 ? [30, 130] : [0, 0],
@ -181,7 +180,7 @@ export default {
], ],
}; };
this.myChart1.setOption(option); this.myChart1.setOption(option);
this.myChart1.on("click", (a, b) => { this.myChart1.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -190,6 +189,7 @@ export default {
type_name: "老年人", type_name: "老年人",
pageType: "normal", pageType: "normal",
type: "old", type: "old",
olds: e.data.name,
}, },
}); });
}); });
@ -276,7 +276,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.lnrRight && this.lnrRight.length > 0 ? [30, 130] : [0, 0], this.lnrRight && this.lnrRight.length > 0 ? [30, 130] : [0, 0],
@ -299,7 +298,8 @@ export default {
}, },
], ],
}; };
this.myChart2.on("click", (a, b) => { this.myChart2.on("click", (e) => {
console.log('a, b::', e);
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -308,6 +308,7 @@ export default {
type_name: "老年人", type_name: "老年人",
pageType: "normal", pageType: "normal",
type: "old", type: "old",
qingk: e.data.name,
}, },
}); });
}); });

18
src/views/dataBoard/renfang/visualizing/components/shiyerenyuan.vue

@ -222,7 +222,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.syryData1 && this.syryData1.length > 0 ? [30, 130] : [0, 0], this.syryData1 && this.syryData1.length > 0 ? [30, 130] : [0, 0],
@ -246,7 +245,7 @@ export default {
], ],
}; };
this.myChart1.setOption(option); this.myChart1.setOption(option);
this.myChart1.on("click", (a, b) => { this.myChart1.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -255,6 +254,7 @@ export default {
type_name: "失业人员", type_name: "失业人员",
pageType: "normal", pageType: "normal",
type: "shiye", type: "shiye",
unemploymentReason: e.name,
}, },
}); });
}); });
@ -352,7 +352,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.syryData2 && this.syryData2.length > 0 ? [30, 130] : [0, 0], this.syryData2 && this.syryData2.length > 0 ? [30, 130] : [0, 0],
@ -376,7 +375,7 @@ export default {
], ],
}; };
this.myChart2.setOption(option); this.myChart2.setOption(option);
this.myChart2.on("click", (a, b) => { this.myChart2.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -385,6 +384,7 @@ export default {
type_name: "失业人员", type_name: "失业人员",
pageType: "normal", pageType: "normal",
type: "shiye", type: "shiye",
employmentWish: e.name,
}, },
}); });
}); });
@ -484,7 +484,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.syryData3 && this.syryData3.length > 0 ? [30, 130] : [0, 0], this.syryData3 && this.syryData3.length > 0 ? [30, 130] : [0, 0],
@ -508,7 +507,7 @@ export default {
], ],
}; };
this.myChart3.setOption(option); this.myChart3.setOption(option);
this.myChart3.on("click", (a, b) => { this.myChart3.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -517,6 +516,7 @@ export default {
type_name: "失业人员", type_name: "失业人员",
pageType: "normal", pageType: "normal",
type: "shiye", type: "shiye",
olds: e.name,
}, },
}); });
}); });
@ -615,7 +615,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.syryData4 && this.syryData4.length > 0 ? [30, 130] : [0, 0], this.syryData4 && this.syryData4.length > 0 ? [30, 130] : [0, 0],
@ -639,7 +638,7 @@ export default {
], ],
}; };
this.myChart4.setOption(option); this.myChart4.setOption(option);
this.myChart4.on("click", (a, b) => { this.myChart4.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -746,7 +745,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.syryData5 && this.syryData5.length > 0 ? [30, 130] : [0, 0], this.syryData5 && this.syryData5.length > 0 ? [30, 130] : [0, 0],
@ -770,7 +768,7 @@ export default {
], ],
}; };
this.myChart5.setOption(option); this.myChart5.setOption(option);
this.myChart5.on("click", (a, b) => { this.myChart5.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {

8
src/views/dataBoard/renfang/visualizing/components/zhiyuanzhe.vue

@ -157,7 +157,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.zyzLeft && this.zyzLeft.length > 0 ? [30, 130] : [0, 0], this.zyzLeft && this.zyzLeft.length > 0 ? [30, 130] : [0, 0],
@ -181,7 +180,7 @@ export default {
], ],
}; };
this.myChart1.setOption(option); this.myChart1.setOption(option);
this.myChart1.on("click", (a, b) => { this.myChart1.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -190,6 +189,7 @@ export default {
type_name: "志愿者", type_name: "志愿者",
pageType: "normal", pageType: "normal",
type: "zhiyuanzhe", type: "zhiyuanzhe",
olds: e.data.name,
}, },
}); });
}); });
@ -276,7 +276,6 @@ export default {
}, },
series: [ series: [
{ {
name: "Nightingale Chart",
type: "pie", type: "pie",
radius: radius:
this.zyzRight && this.zyzRight.length > 0 ? [30, 130] : [0, 0], this.zyzRight && this.zyzRight.length > 0 ? [30, 130] : [0, 0],
@ -299,7 +298,7 @@ export default {
}, },
], ],
}; };
this.myChart2.on("click", (a, b) => { this.myChart2.on("click", (e) => {
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-class-new", path: "/dataBoard/renfang/resi-class-new",
query: { query: {
@ -308,6 +307,7 @@ export default {
type_name: "志愿者", type_name: "志愿者",
pageType: "normal", pageType: "normal",
type: "zhiyuanzhe", type: "zhiyuanzhe",
gategoryCode: e.data.name,
}, },
}); });
}); });

Loading…
Cancel
Save