同步现场代码 修改电网一张图页面

This commit is contained in:
GGJ
2024-05-29 13:39:46 +08:00
parent f6f015cf4b
commit 3d0bd8f644
11 changed files with 226 additions and 166 deletions

View File

@@ -9,7 +9,7 @@
frameborder="0"
style="width: 100%; height: 100%; border: 0px solid"
/>
</div>
</div>
</template>
<script setup lang="ts">
import { onMounted, ref, nextTick } from 'vue'
@@ -21,7 +21,6 @@ const height = mainHeight(20)
const num = ref(0)
const loading = ref(true)
// console.log("🚀 ~ num:", window.location.origin)
const iframeRef: any = ref(null)
// const iframeSrc = 'http://www.jibei1.com:8088/#/harmonic-boot/detailedAnalysis/responsibilityqr'
const iframeSrc = window.location.origin + '/jbv2/#/harmonic-boot/area/OnlineRateqr'
@@ -29,10 +28,12 @@ const iframeSrc = window.location.origin + '/jbv2/#/harmonic-boot/area/OnlineRat
onMounted(() => {
iframeRef.value.onload = () => {
iframeRef.value.contentWindow.postMessage({ info: window.localStorage.getItem('adminInfo') }, '*')
// setTimeout(() => {
// num.value++
loading.value = false
// }, 0)
setTimeout(() => {
if (loading.value) {
}
++num.value
loading.value = false
}, 0)
}
})
</script>