报警页面跳转接收参数修改
This commit is contained in:
parent
9b544e3066
commit
3b5339dfe8
@ -424,10 +424,12 @@
|
|||||||
},
|
},
|
||||||
//加载可控中高辊底辊液压系统图
|
//加载可控中高辊底辊液压系统图
|
||||||
initBottomScollerCharts() {
|
initBottomScollerCharts() {
|
||||||
|
console.log(1)
|
||||||
this.bsxtylCharts = echarts.getInstanceByDom(document.getElementById("bsxtyl")); //可控中高辊底辊液压系统
|
this.bsxtylCharts = echarts.getInstanceByDom(document.getElementById("bsxtyl")); //可控中高辊底辊液压系统
|
||||||
if (this.bsxtylCharts == undefined) {
|
if (this.bsxtylCharts == undefined) {
|
||||||
this.bsxtylCharts = echarts.init(document.getElementById("bsxtyl"));
|
this.bsxtylCharts = echarts.init(document.getElementById("bsxtyl"));
|
||||||
}
|
}
|
||||||
|
console.log(2)
|
||||||
this.bsxtylCharts.setOption(
|
this.bsxtylCharts.setOption(
|
||||||
this.generateGaugeOption({
|
this.generateGaugeOption({
|
||||||
color: ["26DE86", "93DDBA"],
|
color: ["26DE86", "93DDBA"],
|
||||||
@ -441,6 +443,7 @@
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
window.addEventListener("resize", () => {
|
window.addEventListener("resize", () => {
|
||||||
|
console.log(2)
|
||||||
this.bsxtylCharts && this.bsxtylCharts.resize();
|
this.bsxtylCharts && this.bsxtylCharts.resize();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
flag: null,
|
||||||
equipId: null,
|
equipId: null,
|
||||||
//加载到最后一条
|
//加载到最后一条
|
||||||
finished: false,
|
finished: false,
|
||||||
@ -89,6 +90,9 @@
|
|||||||
this.tipText = "已加载完成";
|
this.tipText = "已加载完成";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad(opts) {
|
||||||
|
this.flag = opts.flag;
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
equipChange() {
|
equipChange() {
|
||||||
this.getAlarmList();
|
this.getAlarmList();
|
||||||
@ -111,11 +115,10 @@
|
|||||||
},
|
},
|
||||||
getAlarmList() {
|
getAlarmList() {
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
const flag = this.$route.query.flag;
|
|
||||||
//flag:0全部 1已处理 2未处理
|
//flag:0全部 1已处理 2未处理
|
||||||
if (flag === "1") {
|
if (this.flag === "1") {
|
||||||
this.queryParams.status = 1;
|
this.queryParams.status = 1;
|
||||||
} else if (flag === "2") {
|
} else if (this.flag === "2") {
|
||||||
this.queryParams.status = 0;
|
this.queryParams.status = 0;
|
||||||
}
|
}
|
||||||
this.queryParams.equipId = this.equipId;
|
this.queryParams.equipId = this.equipId;
|
||||||
|
Loading…
Reference in New Issue
Block a user