|
@@ -69,6 +69,7 @@ export default {
|
|
|
|
|
|
legend: {
|
|
legend: {
|
|
//设置小块标记
|
|
//设置小块标记
|
|
|
|
+ // selectedMode:false,
|
|
y: "bottom",
|
|
y: "bottom",
|
|
x: "center",
|
|
x: "center",
|
|
formatter: {},
|
|
formatter: {},
|
|
@@ -159,11 +160,20 @@ export default {
|
|
],
|
|
],
|
|
};
|
|
};
|
|
myChart.setOption(option);
|
|
myChart.setOption(option);
|
|
- myChart.on("click", function (param) {
|
|
|
|
|
|
+ myChart.on("legendselectchanged", function (params) {
|
|
// console.log("111");
|
|
// console.log("111");
|
|
// console.log(param.data);
|
|
// console.log(param.data);
|
|
// let id=param.data.Id
|
|
// let id=param.data.Id
|
|
- window.location.href = `#/zaoquan/yiqing/yiqing-weijiezhong`;
|
|
|
|
|
|
+ // console.log(params.name);
|
|
|
|
+ if(params.name=="未接种疫苗"){
|
|
|
|
+ window.location.href = `#/zaoquan/yiqing/yiqing-weijiezhong`;
|
|
|
|
+ }
|
|
|
|
+ if(params.name=="接种第一剂"){
|
|
|
|
+ // console.log("sss");
|
|
|
|
+ let itsname=params.name
|
|
|
|
+ // console.log(itsname);
|
|
|
|
+ window.location.href = `#/zaoquan/yiqing/yiqing-diyiji?itsname=${itsname}`;
|
|
|
|
+ }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -250,12 +260,12 @@ export default {
|
|
],
|
|
],
|
|
};
|
|
};
|
|
myChart1.setOption(option1);
|
|
myChart1.setOption(option1);
|
|
- myChart1.on("click", function (param) {
|
|
|
|
|
|
+ myChart1.on("legendselectchanged", function (param) {
|
|
// console.log("111");
|
|
// console.log("111");
|
|
- // console.log(param.data.Id);
|
|
|
|
- let its = param.data.Id;
|
|
|
|
|
|
+ console.log(param.name);
|
|
|
|
+ let its = param.name;
|
|
// console.log(its);
|
|
// console.log(its);
|
|
- window.location.href = `#/zaoquan/yiqing/yiqing-weijiezhong?its=${its}`;
|
|
|
|
|
|
+ window.location.href = `#/zaoquan/yiqing/yiqing-bumen?its=${its}`;
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|