Compare commits

..

No commits in common. "ea5336da3a8facc159c7dd80a3c532798c3aa223" and "4d81ce92cd1070635a5566b4f8c40e11cf07d56c" have entirely different histories.

4 changed files with 43 additions and 59 deletions

BIN
dist.zip Normal file

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,56 +1,41 @@
<template>
<div class="box">
<div class="a">
<img
src="../../assets/nyjc/电1.png"
alt=""
v-show="!dian"
@click="
(dian = true),
(shui = false),
(mei = false),
sendMessageToCSharp('能源监测_电');
$router.push(
'/area/nyjcd',
() => {},
() => {}
);
"
/>
<img src="../../assets/nyjc/电1.png" alt="" v-show="!dian" @click="
(dian = true),
(shui = false),
(mei = false),
sendMessageToCSharp('能源监测_电');
$router.push(
'/area/nyjcd',
() => { },
() => { }
);
" />
<img src="../../assets/nyjc/电.png" alt="" v-show="dian" />
<img
src="../../assets/nyjc/水1.png"
alt=""
v-show="!shui"
@click="
(dian = false),
(shui = true),
(mei = false),
sendMessageToCSharp('能源监测_水');
$router.push(
'/area/nyjcs',
() => {},
() => {}
);
"
/>
<img src="../../assets/nyjc/水1.png" alt="" v-show="!shui" @click="
(dian = false),
(shui = true),
(mei = false),
sendMessageToCSharp('能源监测_水');
$router.push(
'/area/nyjcs',
() => { },
() => { }
);
" />
<img src="../../assets/nyjc/水.png" alt="" v-show="shui" />
<img
src="../../assets/nyjc/煤1.png"
alt=""
v-show="!mei"
@click="
(dian = false),
(shui = false),
(mei = true),
sendMessageToCSharp('能源监测_煤');
$router.push(
'/area/nyjcm',
() => {},
() => {}
);
"
/>
<img src="../../assets/nyjc/煤1.png" alt="" v-show="!mei" @click="
(dian = false),
(shui = false),
(mei = true),
sendMessageToCSharp('能源监测_煤');
$router.push(
'/area/nyjcm',
() => { },
() => { }
);
" />
<img src="../../assets/nyjc/煤.png" alt="" v-show="mei" />
</div>
<div class="area">
@ -72,12 +57,11 @@ 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}`,
() => { },