This commit is contained in:
lll 2023-11-28 08:46:34 +08:00
parent 017d3313c7
commit b952d83971
4 changed files with 53 additions and 28 deletions

View File

@ -9,6 +9,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: "MicrosoftYaHei" !important; font-family: "MicrosoftYaHei" !important;
background: transparent;
} }
#app { #app {
@ -17,8 +18,8 @@
/* width: 100vw; /* width: 100vw;
height: 100vh; */ height: 100vh; */
overflow: hidden; overflow: hidden;
background-image: url(./assets/img/左遮罩.png), url(./assets/img/右遮罩.png), /* background-image: url(./assets/img/.png), url(./assets/img/.png),
url(./assets/img/遮罩上.png), url(./assets/img/下遮罩.png); url(./assets/img/遮罩上.png), url(./assets/img/下遮罩.png); */
background-color: transparent; background: transparent;
} }
</style> </style>

View File

@ -120,10 +120,10 @@ export default {
}; };
}, },
methods: { methods: {
sendMessageToCSharp() { sendMessageToCSharp(name) {
window.vuplex.postMessage({ window.vuplex.postMessage({
type: "Tog", type: "Tog",
message: "碳资产管理_true", message: `${name}_true`,
}); });
}, },
go1() { go1() {
@ -133,6 +133,7 @@ export default {
this.flag4 = true; this.flag4 = true;
this.flag5 = true; this.flag5 = true;
this.flag6 = true; this.flag6 = true;
this.sendMessageToCSharp("生产工艺");
// this.$router.push( // this.$router.push(
// "/znywjk", // "/znywjk",
// () => {}, // () => {},
@ -146,6 +147,7 @@ export default {
this.flag4 = true; this.flag4 = true;
this.flag5 = true; this.flag5 = true;
this.flag6 = true; this.flag6 = true;
this.sendMessageToCSharp("能源监测");
this.$router.push( this.$router.push(
"/area", "/area",
() => {}, () => {},
@ -159,6 +161,7 @@ export default {
this.flag4 = true; this.flag4 = true;
this.flag5 = true; this.flag5 = true;
this.flag6 = true; this.flag6 = true;
this.sendMessageToCSharp("负荷管理");
this.$router.push( this.$router.push(
"/fhgl", "/fhgl",
() => {}, () => {},
@ -172,6 +175,7 @@ export default {
this.flag4 = false; this.flag4 = false;
this.flag5 = true; this.flag5 = true;
this.flag6 = true; this.flag6 = true;
this.sendMessageToCSharp("能效管理");
this.$router.push( this.$router.push(
"/nxgl", "/nxgl",
() => {}, () => {},
@ -185,6 +189,7 @@ export default {
this.flag4 = true; this.flag4 = true;
this.flag5 = false; this.flag5 = false;
this.flag6 = true; this.flag6 = true;
this.sendMessageToCSharp("智能运维");
this.$router.push( this.$router.push(
"/znyw", "/znyw",
() => {}, () => {},
@ -198,6 +203,7 @@ export default {
this.flag4 = true; this.flag4 = true;
this.flag5 = true; this.flag5 = true;
this.flag6 = false; this.flag6 = false;
this.sendMessageToCSharp("碳资产管理");
this.$router.push( this.$router.push(
"/tzcgl", "/tzcgl",
() => {}, () => {},
@ -213,13 +219,12 @@ export default {
padding: 0; padding: 0;
border: none; border: none;
} }
.content { .content {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: transparent;
background: url(../assets/img/标题.png); background: url(../assets/img/标题.png);
background-size: cover; background-size: cover;
background-color: transparent;
.box1 { .box1 {
position: absolute; position: absolute;
@ -235,7 +240,7 @@ export default {
width: 216px; width: 216px;
height: 46px; height: 46px;
font-size: 50px; font-size: 50px;
font-family: FZZhengHeiS-B-GB; font-family: "FZZhengHeiS-B-GB";
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 20px; line-height: 20px;
@ -256,7 +261,7 @@ export default {
width: 216px; width: 216px;
height: 46px; height: 46px;
font-size: 50px; font-size: 50px;
font-family: FZZhengHeiS-B-GB; font-family: "FZZhengHeiS-B-GB";
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 20px; line-height: 20px;
@ -277,7 +282,7 @@ export default {
width: 216px; width: 216px;
height: 46px; height: 46px;
font-size: 50px; font-size: 50px;
font-family: FZZhengHeiS-B-GB; font-family: "FZZhengHeiS-B-GB";
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 20px; line-height: 20px;
@ -298,7 +303,7 @@ export default {
width: 216px; width: 216px;
height: 46px; height: 46px;
font-size: 50px; font-size: 50px;
font-family: FZZhengHeiS-B-GB; font-family: "FZZhengHeiS-B-GB";
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 20px; line-height: 20px;
@ -319,7 +324,7 @@ export default {
width: 216px; width: 216px;
height: 46px; height: 46px;
font-size: 50px; font-size: 50px;
font-family: FZZhengHeiS-B-GB; font-family: "FZZhengHeiS-B-GB";
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 20px; line-height: 20px;
@ -340,7 +345,7 @@ export default {
width: 216px; width: 216px;
height: 46px; height: 46px;
font-size: 50px; font-size: 50px;
font-family: FZZhengHeiS-B-GB; font-family: "FZZhengHeiS-B-GB";
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 20px; line-height: 20px;

View File

@ -9,11 +9,12 @@
(dian = true), (dian = true),
(shui = false), (shui = false),
(mei = false), (mei = false),
$router.push( sendMessageToCSharp('能源监测_电');
'/area/nyjcd', $router.push(
() => {}, '/area/nyjcd',
() => {} () => {},
) () => {}
);
" "
/> />
<img src="../../assets/nyjc/电.png" alt="" v-show="dian" /> <img src="../../assets/nyjc/电.png" alt="" v-show="dian" />
@ -25,11 +26,12 @@
(dian = false), (dian = false),
(shui = true), (shui = true),
(mei = false), (mei = false),
$router.push( sendMessageToCSharp('能源监测_水');
'/area/nyjcs', $router.push(
() => {}, '/area/nyjcs',
() => {} () => {},
) () => {}
);
" "
/> />
<img src="../../assets/nyjc/水.png" alt="" v-show="shui" /> <img src="../../assets/nyjc/水.png" alt="" v-show="shui" />
@ -41,11 +43,12 @@
(dian = false), (dian = false),
(shui = false), (shui = false),
(mei = true), (mei = true),
$router.push( sendMessageToCSharp('能源监测_煤');
'/area/nyjcm', $router.push(
() => {}, '/area/nyjcm',
() => {} () => {},
) () => {}
);
" "
/> />
<img src="../../assets/nyjc/煤.png" alt="" v-show="mei" /> <img src="../../assets/nyjc/煤.png" alt="" v-show="mei" />
@ -64,6 +67,14 @@ export default {
mei: false, mei: false,
}; };
}, },
methods: {
sendMessageToCSharp(name) {
window.vuplex.postMessage({
type: "Tog",
message: `${name}_true`,
});
},
},
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">

View File

@ -336,9 +336,16 @@ export default {
var myChart = this.$echarts.init(chartDom); var myChart = this.$echarts.init(chartDom);
myChart.setOption(option); myChart.setOption(option);
}, },
sendMessageToCSharp(name) {
window.vuplex.postMessage({
type: "Tog",
message: `${name}_true`,
});
},
goOne(a) { goOne(a) {
this.click2 = ""; this.click2 = "";
this.click1 = a; this.click1 = a;
this.sendMessageToCSharp(click1);
if (this.click1 == "配电室") { if (this.click1 == "配电室") {
this.$router.replace( this.$router.replace(
"/area/nyjcd/pds", "/area/nyjcd/pds",
@ -356,6 +363,7 @@ export default {
goTwo(a) { goTwo(a) {
this.click1 = ""; this.click1 = "";
this.click2 = a; this.click2 = a;
this.sendMessageToCSharp(click2);
this.$router.replace( this.$router.replace(
`/area/nyjcd/scx1?type=${this.click2}`, `/area/nyjcd/scx1?type=${this.click2}`,
() => {}, () => {},