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

View File

@ -1,56 +1,41 @@
<template> <template>
<div class="box"> <div class="box">
<div class="a"> <div class="a">
<img <img src="../../assets/nyjc/电1.png" alt="" v-show="!dian" @click="
src="../../assets/nyjc/电1.png"
alt=""
v-show="!dian"
@click="
(dian = true), (dian = true),
(shui = false), (shui = false),
(mei = false), (mei = false),
sendMessageToCSharp('能源监测_电'); sendMessageToCSharp('能源监测_电');
$router.push( $router.push(
'/area/nyjcd', '/area/nyjcd',
() => {}, () => { },
() => {} () => { }
); );
" " />
/>
<img src="../../assets/nyjc/电.png" alt="" v-show="dian" /> <img src="../../assets/nyjc/电.png" alt="" v-show="dian" />
<img <img src="../../assets/nyjc/水1.png" alt="" v-show="!shui" @click="
src="../../assets/nyjc/水1.png"
alt=""
v-show="!shui"
@click="
(dian = false), (dian = false),
(shui = true), (shui = true),
(mei = false), (mei = false),
sendMessageToCSharp('能源监测_水'); sendMessageToCSharp('能源监测_水');
$router.push( $router.push(
'/area/nyjcs', '/area/nyjcs',
() => {}, () => { },
() => {} () => { }
); );
" " />
/>
<img src="../../assets/nyjc/水.png" alt="" v-show="shui" /> <img src="../../assets/nyjc/水.png" alt="" v-show="shui" />
<img <img src="../../assets/nyjc/煤1.png" alt="" v-show="!mei" @click="
src="../../assets/nyjc/煤1.png"
alt=""
v-show="!mei"
@click="
(dian = false), (dian = false),
(shui = false), (shui = false),
(mei = true), (mei = true),
sendMessageToCSharp('能源监测_煤'); sendMessageToCSharp('能源监测_煤');
$router.push( $router.push(
'/area/nyjcm', '/area/nyjcm',
() => {}, () => { },
() => {} () => { }
); );
" " />
/>
<img src="../../assets/nyjc/煤.png" alt="" v-show="mei" /> <img src="../../assets/nyjc/煤.png" alt="" v-show="mei" />
</div> </div>
<div class="area"> <div class="area">
@ -72,12 +57,11 @@ export default {
addMessageListener(); addMessageListener();
} else { } else {
window.addEventListener("vuplexready", addEventListener); window.addEventListener("vuplexready", addEventListener);
} } function addEventListener() {
function addEventListener() {
window.vuplex.addEventListener("message", function (event) { window.vuplex.addEventListener("message", function (event) {
let json = event.data; let json = event.data;
console.log("JSON received" + json); console.log("JSON received" + json);
}); })
} }
}, },
methods: { methods: {

View File

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