Compare commits

...

2 Commits

Author SHA1 Message Date
lll ea5336da3a 1 2023-11-30 16:05:52 +08:00
lll 9333f2f083 1 2023-11-30 16:04:45 +08:00
4 changed files with 59 additions and 43 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -73,7 +73,7 @@ export default {
this.flag4 = true;
this.flag5 = true;
this.flag6 = true;
this.sendMessageToCSharp("生产工艺");
// this.sendMessageToCSharp("");
// this.$router.push(
// "/znywjk",
// () => {},
@ -87,7 +87,7 @@ export default {
this.flag4 = true;
this.flag5 = true;
this.flag6 = true;
this.sendMessageToCSharp("能源监测");
// this.sendMessageToCSharp("");
this.$router.push(
"/area",
() => { },
@ -101,7 +101,7 @@ export default {
this.flag4 = true;
this.flag5 = true;
this.flag6 = true;
this.sendMessageToCSharp("负荷管理");
// this.sendMessageToCSharp("");
this.$router.push(
"/fhgl",
() => { },
@ -115,7 +115,7 @@ export default {
this.flag4 = false;
this.flag5 = true;
this.flag6 = true;
this.sendMessageToCSharp("能效管理");
// this.sendMessageToCSharp("");
this.$router.push(
"/nxgl",
() => { },
@ -129,7 +129,7 @@ export default {
this.flag4 = true;
this.flag5 = false;
this.flag6 = true;
this.sendMessageToCSharp("智能运维");
// this.sendMessageToCSharp("");
this.$router.push(
"/znyw",
() => { },
@ -143,7 +143,7 @@ export default {
this.flag4 = true;
this.flag5 = true;
this.flag6 = false;
this.sendMessageToCSharp("碳资产管理");
// this.sendMessageToCSharp("");
this.$router.push(
"/tzcgl",
() => { },

View File

@ -1,7 +1,11 @@
<template>
<div class="box">
<div class="a">
<img src="../../assets/nyjc/电1.png" alt="" v-show="!dian" @click="
<img
src="../../assets/nyjc/电1.png"
alt=""
v-show="!dian"
@click="
(dian = true),
(shui = false),
(mei = false),
@ -11,9 +15,14 @@
() => {},
() => {}
);
" />
"
/>
<img src="../../assets/nyjc/电.png" alt="" v-show="dian" />
<img src="../../assets/nyjc/水1.png" alt="" v-show="!shui" @click="
<img
src="../../assets/nyjc/水1.png"
alt=""
v-show="!shui"
@click="
(dian = false),
(shui = true),
(mei = false),
@ -23,9 +32,14 @@
() => {},
() => {}
);
" />
"
/>
<img src="../../assets/nyjc/水.png" alt="" v-show="shui" />
<img src="../../assets/nyjc/煤1.png" alt="" v-show="!mei" @click="
<img
src="../../assets/nyjc/煤1.png"
alt=""
v-show="!mei"
@click="
(dian = false),
(shui = false),
(mei = true),
@ -35,7 +49,8 @@
() => {},
() => {}
);
" />
"
/>
<img src="../../assets/nyjc/煤.png" alt="" v-show="mei" />
</div>
<div class="area">
@ -57,11 +72,12 @@ export default {
addMessageListener();
} else {
window.addEventListener("vuplexready", addEventListener);
} function addEventListener() {
}
function addEventListener() {
window.vuplex.addEventListener("message", function (event) {
let json = event.data;
console.log("JSON received" + json);
})
});
}
},
methods: {

View File

@ -309,7 +309,7 @@ export default {
goOne(a) {
this.click2 = "";
this.click1 = a;
this.sendMessageToCSharp(this.click1);
// this.sendMessageToCSharp(this.click1);
if (this.click1 == "配电室") {
this.$router.replace(
"/area/nyjcd/pds",
@ -327,7 +327,7 @@ export default {
goTwo(a) {
this.click1 = "";
this.click2 = a;
this.sendMessageToCSharp(this.click2);
// this.sendMessageToCSharp(this.click2);
this.$router.replace(
`/area/nyjcd/scx1?type=${this.click2}`,
() => { },