81 lines
1.8 KiB
Vue
Raw Normal View History

2023-06-19 15:37:14 +08:00
<template>
2023-06-19 16:29:05 +08:00
<div class="project">
2023-07-14 17:54:21 +08:00
<div class="change-btn">
<el-button type="primary" @click="changeScreen">切换驾驶舱</el-button>
</div>
2023-06-19 16:29:05 +08:00
<div class="Leftcent">
<LeftcentView></LeftcentView>
</div>
<div class="RigthTop">
<RigthTopView></RigthTopView>
</div>
<div class="rigthBo">
<RigthBottLeftView></RigthBottLeftView>
</div>
<div class="rigthBottRig">
<RigthBottRigthView></RigthBottRigthView>
</div>
</div>
2023-06-19 15:37:14 +08:00
</template>
2023-06-19 16:29:05 +08:00
<script setup lang="tsx" name="largeScreenTwo">
2023-07-14 18:44:39 +08:00
import { onMounted } from "vue";
2023-07-14 17:54:21 +08:00
import { useRouter } from "vue-router";
2023-06-19 16:29:05 +08:00
import LeftcentView from "./components/LeftcentView.vue";
import RigthTopView from "./components/RigthTopView.vue";
import RigthBottLeftView from "./components/RigthBottLeftView.vue";
import RigthBottRigthView from "./components/RigthBottRigthView.vue";
2023-07-14 18:44:39 +08:00
import { GlobalStore } from "@/stores";
import { sendIframeMessage } from "@/utils/util";
const globalStore = GlobalStore();
2023-07-14 17:54:21 +08:00
const router = useRouter();
2023-07-14 18:44:39 +08:00
const changeScreen = async () => {
2023-07-14 17:54:21 +08:00
router.push("/goverment/huizhou/largeScreen/largeScreenOne/index");
// screenValue.value = screenValue.value == 0 ? 1 : 0;
};
2023-07-14 18:44:39 +08:00
onMounted(async () => {
2023-07-19 17:20:15 +08:00
await sendIframeMessage({ obj: { path: globalStore.path, moduleId: globalStore.moduleId } }, 2, undefined);
2023-07-14 18:44:39 +08:00
});
2023-06-19 15:37:14 +08:00
</script>
2023-06-19 16:29:05 +08:00
<style scoped lang="scss">
.project {
position: relative;
2023-07-02 11:50:09 +08:00
height: calc(100% - 100px);
2023-06-19 16:29:05 +08:00
width: 100%;
2023-07-14 17:54:21 +08:00
.change-btn {
position: absolute;
right: 0;
top: 0;
z-index: 100;
:deep(.el-button) {
background-color: transparent;
}
}
2023-06-19 16:29:05 +08:00
.Leftcent {
position: absolute;
top: 0px;
width: 24.9%;
}
.RigthTop {
position: absolute;
top: 0px;
width: 74.5%;
right: 0px;
height: 260px;
}
.rigthBo {
position: absolute;
width: 37%;
top: 267px;
left: 25.5%;
}
.rigthBottRig {
position: absolute;
width: 37%;
top: 267px;
left: 62.8%;
}
}
</style>