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

View File

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

View File

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

View File

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