增加了iframe嵌套组态

main
gitcc 2023-12-12 23:16:08 +08:00
parent 881a986408
commit 3df47fc2a7
2 changed files with 6 additions and 4 deletions

View File

@ -108,7 +108,6 @@ export default {
if (data.topic === `iot/push/plc_01`) { if (data.topic === `iot/push/plc_01`) {
var res = data.data; var res = data.data;
store.commit("setPlcData", res); store.commit("setPlcData", res);
return; return;
} }
} }

View File

@ -1,16 +1,19 @@
<template> <template>
<div class="index"> <div class="index">
<div class="index-left"></div> <div class="index-left">
<iframe src="https://zutai1.shikicc.com/view?name=mn" height="100%" width="100%">
</iframe>
</div>
<div class="index-right"> <div class="index-right">
<div class="one-card"> <div class="one-card">
<div class="one-card-content"> <div class="one-card-content">
<div> <div>
<p>节水量</p> <p>节水量</p>
<font><span class="font26">{{ baseData && baseData.vd2716.toFixed(2) }}</span></font> <font><span class="font26">{{ baseData && baseData.vd2716.toFixed(2) }}</span></font>
</div> </div>
<div> <div>
<p>节碳量</p> <p>节碳量</p>
<font><span class="font26">{{ baseData && (baseData.vd2716 * 0.168).toFixed(2) }}</span>kg</font> <font><span class="font26">{{ baseData && (baseData.vd2716 * 0.168).toFixed(2) }}</span>kg</font>
</div> </div>
<div> <div>
<p>原水箱液位<span class="font26">{{ baseData && baseData.vd500.toFixed(2) }}</span>m</p> <p>原水箱液位<span class="font26">{{ baseData && baseData.vd500.toFixed(2) }}</span>m</p>