报警页面跳转接收参数修改

This commit is contained in:
xusd 2024-05-29 09:18:42 +08:00
parent 9b544e3066
commit 3b5339dfe8
2 changed files with 9 additions and 3 deletions

View File

@ -424,10 +424,12 @@
},
//
initBottomScollerCharts() {
console.log(1)
this.bsxtylCharts = echarts.getInstanceByDom(document.getElementById("bsxtyl")); //
if (this.bsxtylCharts == undefined) {
this.bsxtylCharts = echarts.init(document.getElementById("bsxtyl"));
}
console.log(2)
this.bsxtylCharts.setOption(
this.generateGaugeOption({
color: ["26DE86", "93DDBA"],
@ -441,6 +443,7 @@
true
);
window.addEventListener("resize", () => {
console.log(2)
this.bsxtylCharts && this.bsxtylCharts.resize();
});

View File

@ -62,6 +62,7 @@
export default {
data() {
return {
flag: null,
equipId: null,
//
finished: false,
@ -89,6 +90,9 @@
this.tipText = "已加载完成";
}
},
onLoad(opts) {
this.flag = opts.flag;
},
methods: {
equipChange() {
this.getAlarmList();
@ -111,11 +115,10 @@
},
getAlarmList() {
this.finished = true;
const flag = this.$route.query.flag;
//flag0 1 2
if (flag === "1") {
if (this.flag === "1") {
this.queryParams.status = 1;
} else if (flag === "2") {
} else if (this.flag === "2") {
this.queryParams.status = 0;
}
this.queryParams.equipId = this.equipId;