17 changed files with 656 additions and 1504 deletions
File diff suppressed because it is too large
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 7.0 KiB |
@ -0,0 +1,115 @@ |
|||
<!-- 5号仓库 --> |
|||
<template> |
|||
<div class="flex flex-col"> |
|||
<!-- 标题 --> |
|||
<Toolbar /> |
|||
|
|||
<div class="flex flex-col flex-1 con"> |
|||
<div class="flex justify-between floor1"> |
|||
<!-- 温度 --> |
|||
<Temperature /> |
|||
<!-- 湿度 --> |
|||
<Humidity /> |
|||
</div> |
|||
|
|||
<div class="flex-1 iframe-wrap"> |
|||
<!-- <iframe src="https://www.tall.wiki/wl/0"></iframe> --> |
|||
</div> |
|||
|
|||
<div class="flex justify-between floor3"> |
|||
<!-- 吞土量实时统计 --> |
|||
<Amount /> |
|||
<!-- 仓库热力图 --> |
|||
<Heat /> |
|||
</div> |
|||
<!-- 曲线对比图 --> |
|||
<div class="floor4"> |
|||
<Curve /> |
|||
</div> |
|||
</div> |
|||
<!-- 右侧按钮 --> |
|||
<div class="yq-btns"> |
|||
<div |
|||
:class="item.active ? 'active' : ''" |
|||
:key="index" |
|||
@click="$router.push(item.path)" |
|||
class="btn" |
|||
v-for="(item,index) in urls" |
|||
>{{ item.name }}</div> |
|||
</div> |
|||
<!-- 悬浮监控 --> |
|||
<img @click="show = true" class="monitor" src="../assets/monitor.png" style /> |
|||
|
|||
<!-- FIXME: 不是显示一个图片 背景 + iframe显示摄像头内容 + 关闭 + 全屏 + 退出全屏 --> |
|||
<img @click="show = false" class="vedio" src="../assets/vedio.png" v-show="show" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script lang="ts"> |
|||
import { defineComponent } from 'vue' |
|||
import Toolbar from 'comp/toolbar.vue' |
|||
import Temperature from 'comp/temperature.vue' |
|||
import Humidity from 'comp/humidity.vue' |
|||
import Amount from 'comp/amount.vue' |
|||
import Heat from 'comp/heat.vue' |
|||
import Curve from 'comp/curve.vue' |
|||
import { getWarehouses } from 'api/api' |
|||
|
|||
export default defineComponent({ |
|||
components: { |
|||
Toolbar, |
|||
Temperature, |
|||
Humidity, |
|||
Amount, |
|||
Heat, |
|||
Curve, |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
show: false, |
|||
urls: [ |
|||
{ |
|||
path: '/jht', |
|||
name: '晋恒通园区', |
|||
active: true, |
|||
}, |
|||
{ |
|||
path: '/xh', |
|||
name: '现海园区', |
|||
active: false, |
|||
}, |
|||
{ |
|||
path: '/yj', |
|||
name: '应急仓库', |
|||
active: false, |
|||
}, |
|||
{ |
|||
path: '/5', |
|||
name: '5号仓库', |
|||
active: false, |
|||
}, |
|||
], |
|||
} |
|||
}, |
|||
|
|||
created() { |
|||
this.getWarehouses() |
|||
}, |
|||
methods: { |
|||
// 获取仓库信息 |
|||
async getWarehouses() { |
|||
try { |
|||
const data = await getWarehouses({ parkId: 0 }) |
|||
console.log('data: ', data) |
|||
} catch (error) { |
|||
console.log('error: ', error) |
|||
} |
|||
}, |
|||
}, |
|||
}) |
|||
</script> |
|||
|
|||
<style> |
|||
@import './style.css'; |
|||
</style> |
@ -0,0 +1,88 @@ |
|||
.con { |
|||
margin-left: 20rem; |
|||
margin-right: 20rem; |
|||
} |
|||
|
|||
.floor1 { |
|||
width: 100%; |
|||
height: 390rem; |
|||
margin-top: 22rem; |
|||
} |
|||
|
|||
.floor3 { |
|||
width: 100%; |
|||
height: 390rem; |
|||
margin-bottom: 22rem; |
|||
} |
|||
|
|||
.floor4 { |
|||
width: 100%; |
|||
height: 390rem; |
|||
margin-bottom: 22rem; |
|||
} |
|||
|
|||
.monitor { |
|||
position: absolute; |
|||
right: 0; |
|||
top: 10%; |
|||
z-index: 99; |
|||
width: 48rem; |
|||
height: 50rem; |
|||
} |
|||
|
|||
.vedio { |
|||
position: absolute; |
|||
top: 50%; |
|||
left: 16%; |
|||
z-index: 99; |
|||
width: 720rem; |
|||
height: 495rem; |
|||
} |
|||
|
|||
.yq-btns { |
|||
position: absolute; |
|||
top: 30%; |
|||
right: 0; |
|||
z-index: 99; |
|||
width: 140rem; |
|||
} |
|||
|
|||
.btn { |
|||
width: 100%; |
|||
margin-bottom: 25rem; |
|||
background: url(../assets/btn-bg.png) center no-repeat; |
|||
background-size: 100% 100%; |
|||
text-align: center; |
|||
padding: 10rem 0; |
|||
font-size: 12rem; |
|||
color: #03dafd; |
|||
} |
|||
|
|||
.btn.active { |
|||
background: url(../assets/btn-active-bg.png) center no-repeat; |
|||
background-size: 100% 100%; |
|||
} |
|||
|
|||
.box-bg { |
|||
width: 497rem; |
|||
height: 392rem; |
|||
background: url('../assets/box1.png') center no-repeat; |
|||
background-size: 100% 100%; |
|||
} |
|||
|
|||
.box2-bg { |
|||
width: 100%; |
|||
height: 392rem; |
|||
background: url('../assets/box2.png') center no-repeat; |
|||
background-size: 100% 100%; |
|||
} |
|||
.iframe-wrap { |
|||
padding-top: 20rem; |
|||
padding-bottom: 20rem; |
|||
} |
|||
iframe { |
|||
display: block; |
|||
width: 100%; |
|||
height: 100%; |
|||
border: none !important; |
|||
} |
@ -0,0 +1,115 @@ |
|||
<!-- 5号仓库 --> |
|||
<template> |
|||
<div class="flex flex-col"> |
|||
<!-- 标题 --> |
|||
<Toolbar /> |
|||
|
|||
<div class="flex flex-col flex-1 con"> |
|||
<div class="flex justify-between floor1"> |
|||
<!-- 温度 --> |
|||
<Temperature /> |
|||
<!-- 湿度 --> |
|||
<Humidity /> |
|||
</div> |
|||
|
|||
<div class="flex-1 iframe-wrap"> |
|||
<!-- <iframe src="https://www.tall.wiki/wl/0"></iframe> --> |
|||
</div> |
|||
|
|||
<div class="flex justify-between floor3"> |
|||
<!-- 吞土量实时统计 --> |
|||
<Amount /> |
|||
<!-- 仓库热力图 --> |
|||
<Heat /> |
|||
</div> |
|||
<!-- 曲线对比图 --> |
|||
<div class="floor4"> |
|||
<Curve /> |
|||
</div> |
|||
</div> |
|||
<!-- 右侧按钮 --> |
|||
<div class="yq-btns"> |
|||
<div |
|||
:class="item.active ? 'active' : ''" |
|||
:key="index" |
|||
@click="$router.push(item.path)" |
|||
class="btn" |
|||
v-for="(item,index) in urls" |
|||
>{{ item.name }}</div> |
|||
</div> |
|||
<!-- 悬浮监控 --> |
|||
<img @click="show = true" class="monitor" src="../assets/monitor.png" style /> |
|||
|
|||
<!-- FIXME: 不是显示一个图片 背景 + iframe显示摄像头内容 + 关闭 + 全屏 + 退出全屏 --> |
|||
<img @click="show = false" class="vedio" src="../assets/vedio.png" v-show="show" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script lang="ts"> |
|||
import { defineComponent } from 'vue' |
|||
import Toolbar from 'comp/toolbar.vue' |
|||
import Temperature from 'comp/temperature.vue' |
|||
import Humidity from 'comp/humidity.vue' |
|||
import Amount from 'comp/amount.vue' |
|||
import Heat from 'comp/heat.vue' |
|||
import Curve from 'comp/curve.vue' |
|||
import { getWarehouses } from 'api/api' |
|||
|
|||
export default defineComponent({ |
|||
components: { |
|||
Toolbar, |
|||
Temperature, |
|||
Humidity, |
|||
Amount, |
|||
Heat, |
|||
Curve, |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
show: false, |
|||
urls: [ |
|||
{ |
|||
path: '/jht', |
|||
name: '晋恒通园区', |
|||
active: false, |
|||
}, |
|||
{ |
|||
path: '/xh', |
|||
name: '现海园区', |
|||
active: true, |
|||
}, |
|||
{ |
|||
path: '/yj', |
|||
name: '应急仓库', |
|||
active: false, |
|||
}, |
|||
{ |
|||
path: '/5', |
|||
name: '5号仓库', |
|||
active: false, |
|||
}, |
|||
], |
|||
} |
|||
}, |
|||
|
|||
created() { |
|||
this.getWarehouses() |
|||
}, |
|||
methods: { |
|||
// 获取仓库信息 |
|||
async getWarehouses() { |
|||
try { |
|||
const data = await getWarehouses({ parkId: 0 }) |
|||
console.log('data: ', data) |
|||
} catch (error) { |
|||
console.log('error: ', error) |
|||
} |
|||
}, |
|||
}, |
|||
}) |
|||
</script> |
|||
|
|||
<style> |
|||
@import './style.css'; |
|||
</style> |
@ -0,0 +1,115 @@ |
|||
<!-- 5号仓库 --> |
|||
<template> |
|||
<div class="flex flex-col"> |
|||
<!-- 标题 --> |
|||
<Toolbar /> |
|||
|
|||
<div class="flex flex-col flex-1 con"> |
|||
<div class="flex justify-between floor1"> |
|||
<!-- 温度 --> |
|||
<Temperature /> |
|||
<!-- 湿度 --> |
|||
<Humidity /> |
|||
</div> |
|||
|
|||
<div class="flex-1 iframe-wrap"> |
|||
<!-- <iframe src="https://www.tall.wiki/wl/0"></iframe> --> |
|||
</div> |
|||
|
|||
<div class="flex justify-between floor3"> |
|||
<!-- 吞土量实时统计 --> |
|||
<Amount /> |
|||
<!-- 仓库热力图 --> |
|||
<Heat /> |
|||
</div> |
|||
<!-- 曲线对比图 --> |
|||
<div class="floor4"> |
|||
<Curve /> |
|||
</div> |
|||
</div> |
|||
<!-- 右侧按钮 --> |
|||
<div class="yq-btns"> |
|||
<div |
|||
:class="item.active ? 'active' : ''" |
|||
:key="index" |
|||
@click="$router.push(item.path)" |
|||
class="btn" |
|||
v-for="(item,index) in urls" |
|||
>{{ item.name }}</div> |
|||
</div> |
|||
<!-- 悬浮监控 --> |
|||
<img @click="show = true" class="monitor" src="../assets/monitor.png" style /> |
|||
|
|||
<!-- FIXME: 不是显示一个图片 背景 + iframe显示摄像头内容 + 关闭 + 全屏 + 退出全屏 --> |
|||
<img @click="show = false" class="vedio" src="../assets/vedio.png" v-show="show" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script lang="ts"> |
|||
import { defineComponent } from 'vue' |
|||
import Toolbar from 'comp/toolbar.vue' |
|||
import Temperature from 'comp/temperature.vue' |
|||
import Humidity from 'comp/humidity.vue' |
|||
import Amount from 'comp/amount.vue' |
|||
import Heat from 'comp/heat.vue' |
|||
import Curve from 'comp/curve.vue' |
|||
import { getWarehouses } from 'api/api' |
|||
|
|||
export default defineComponent({ |
|||
components: { |
|||
Toolbar, |
|||
Temperature, |
|||
Humidity, |
|||
Amount, |
|||
Heat, |
|||
Curve, |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
show: false, |
|||
urls: [ |
|||
{ |
|||
path: '/jht', |
|||
name: '晋恒通园区', |
|||
active: false, |
|||
}, |
|||
{ |
|||
path: '/xh', |
|||
name: '现海园区', |
|||
active: false, |
|||
}, |
|||
{ |
|||
path: '/yj', |
|||
name: '应急仓库', |
|||
active: true, |
|||
}, |
|||
{ |
|||
path: '/5', |
|||
name: '5号仓库', |
|||
active: false, |
|||
}, |
|||
], |
|||
} |
|||
}, |
|||
|
|||
created() { |
|||
this.getWarehouses() |
|||
}, |
|||
methods: { |
|||
// 获取仓库信息 |
|||
async getWarehouses() { |
|||
try { |
|||
const data = await getWarehouses({ parkId: 0 }) |
|||
console.log('data: ', data) |
|||
} catch (error) { |
|||
console.log('error: ', error) |
|||
} |
|||
}, |
|||
}, |
|||
}) |
|||
</script> |
|||
|
|||
<style> |
|||
@import './style.css'; |
|||
</style> |
Loading…
Reference in new issue