Commit de0e9e68 authored by 纪泽龙's avatar 纪泽龙

配置大屏左侧

parent 808643ca
This diff is collapsed.
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:44:17 * @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-08-22 14:15:59 * @LastEditTime: 2022-08-23 17:04:59
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue * @FilePath: /test/hello-world/src/views/Home.vue
...@@ -85,8 +85,10 @@ ...@@ -85,8 +85,10 @@
</div> </div>
<!-- 左边 --> <!-- 左边 -->
<div class="leftbar"> <div class="leftbar" :style="{width:windowInnerWidth>1024?'470px':'300px'}">
<leftBar ref="mychild2"></leftBar> <leftBar v-if="windowInnerWidth>1024" ref="mychild2"></leftBar>
<leftBarZ v-else ref="mychild2"></leftBarZ>
</div> </div>
<!-- 右边 --> <!-- 右边 -->
<div class="rightbar"> <div class="rightbar">
...@@ -179,11 +181,13 @@ import PipeColor from "@/components/bigWindow/PipeColor.vue"; ...@@ -179,11 +181,13 @@ import PipeColor from "@/components/bigWindow/PipeColor.vue";
// import markerInfoWindow from './components/markerInfoWindow.vue' // import markerInfoWindow from './components/markerInfoWindow.vue'
import leftBar from "@/components/bigWindow/leftBar.vue"; import leftBar from "@/components/bigWindow/leftBar.vue";
import leftBarZ from "@/components/bigWindow/leftBarZ.vue";
import rightBar from "@/components/bigWindow/rightBar.vue"; import rightBar from "@/components/bigWindow/rightBar.vue";
export default { export default {
name: "Home", name: "Home",
components: { components: {
leftBar, leftBar,
leftBarZ,
rightBar, rightBar,
// Center, // Center,
UserCenter, UserCenter,
...@@ -268,6 +272,7 @@ export default { ...@@ -268,6 +272,7 @@ export default {
// 报警轮询timer // 报警轮询timer
alarmTimer: null, alarmTimer: null,
windowInnerWidth:0,
}; };
}, },
...@@ -285,6 +290,9 @@ export default { ...@@ -285,6 +290,9 @@ export default {
} }
}, },
}, },
created() {
this.windowInnerWidth = window.innerWidth;
},
async mounted() { async mounted() {
// console.log(99999999999999) // console.log(99999999999999)
// getPipe().then(res=>{ // getPipe().then(res=>{
...@@ -293,7 +301,6 @@ export default { ...@@ -293,7 +301,6 @@ export default {
// console.log(123) // console.log(123)
// }) // })
// return; // return;
const path = eval(this.systemSetting.map_center); const path = eval(this.systemSetting.map_center);
this.map = new EditorMap( this.map = new EditorMap(
"map", "map",
...@@ -351,11 +358,11 @@ export default { ...@@ -351,11 +358,11 @@ export default {
}), }),
// 管道上图 // 管道上图
addPipeLine(data, component) { addPipeLine(data, component) {
console.log('zzzzzzsssssxxxxzxzxzxzxzxzxz') console.log("zzzzzzsssssxxxxzxzxzxzxzxzxz");
for (let comp in data) { for (let comp in data) {
data[comp].forEach((pipe) => { data[comp].forEach((pipe) => {
console.log(pipe) console.log(pipe);
this.map.addPipeLine(pipe, component); this.map.addPipeLine(pipe, component);
}); });
} }
...@@ -587,8 +594,9 @@ export default { ...@@ -587,8 +594,9 @@ export default {
} }
.leftbar { .leftbar {
width: 450px; width: 300px;
height: 90%; overflow: hidden;
height: calc(100vh - 85px);
position: fixed; position: fixed;
top: 10%; top: 10%;
left: 0; left: 0;
...@@ -711,7 +719,7 @@ export default { ...@@ -711,7 +719,7 @@ export default {
box-shadow: inset 0px 1px 2px 1px #125c9b; box-shadow: inset 0px 1px 2px 1px #125c9b;
font-size: 14px; font-size: 14px;
} }
.list img{ .list img {
width: 22px; width: 22px;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment