巡检弹出框

main^2
wangqiujuan0808 2024-01-11 22:17:06 +08:00
parent f2f8b474ca
commit 9e85f12863
5 changed files with 85 additions and 72 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
src/assets/images/wait.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -12,7 +12,7 @@ import Bus from '@/utils/bus.js';
const menuList = [ const menuList = [
{ {
name: '建筑信息', name: '建筑信息',
background: '#000000' background: '#091d36'
}, },
{ {
name: '资产信息', name: '资产信息',

View File

@ -49,7 +49,9 @@ import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader.js";
import { RoomEnvironment } from "three/examples/jsm/environments/RoomEnvironment.js"; import { RoomEnvironment } from "three/examples/jsm/environments/RoomEnvironment.js";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"; import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
import TWEEN from "@tweenjs/tween.js"; import TWEEN from "@tweenjs/tween.js";
import imgs from "../../../../assets/finish.png"; import imgs from "../../../../assets/images/online-set.png";
import imgs1 from "../../../../assets/images/break-set.png";
import imgs2 from "../../../../assets/images/wait.png";
import { import {
CSS2DObject, CSS2DObject,
CSS2DRenderer, CSS2DRenderer,
@ -474,9 +476,10 @@ const createLableObj = (text, t) => {
if (t === 'title') { if (t === 'title') {
laberDiv.className = "laber_name"; laberDiv.className = "laber_name";
laberDiv.innerHTML = `<div class="arrow_outer"> laberDiv.innerHTML = `<div class="arrow_outer">
<div>设备名称${text}</div> <div>名称${text}</div>
<div>状态启用</div> <div>容积80</div>
<div>压力50 Pa</div> <div>温度25.2</div>
<div>压力15Bar</div>
</div>` </div>`
// //
} else if (t === 'details') { } else if (t === 'details') {
@ -490,28 +493,38 @@ const createLableObj = (text, t) => {
// //
} else { } else {
setTimeout(()=>{ setTimeout(()=>{
laberDiv.innerHTML = `<div class="checking"><span class="text">巡检中...</span></div>`; laberDiv.innerHTML = `<div class="arrow_state2">
<div class="title">
<img src=${imgs2} width="24px"/>
<span>巡检中</span>
</div>
<div>名称${text}</div>
<div>容积80</div>
<div>温度25.2</div>
<div>压力15Bar</div>
</div>`
},1000) },1000)
setTimeout(()=>{ setTimeout(()=>{
laberDiv.className = "laber_state"; laberDiv.className = "laber_state";
let innerHTML = t ? `<div class="arrow_state"> let innerHTML = t ? `<div class="arrow_state">
<div>设备名称${text}</div> <div class="title">
<div>
巡检结果巡检通过
<img src=${imgs} width="24px"/> <img src=${imgs} width="24px"/>
<span>巡检通过</span>
</div> </div>
<div> <div>名称${text}</div>
巡检时间2023-12-23 <div>容积80</div>
</div> <div>温度25.2</div>
<div>压力15Bar</div>
</div>`: `<div class="arrow_state1"> </div>`: `<div class="arrow_state1">
<div>设备名称${text}</div> <div class="title">
<div> <img src=${imgs1} width="24px"/>
巡检结果巡检不通过已记录异常 <span>发现异常</span>
<img src=${imgs} width="24px"/>
</div>
<div>
巡检时间2023-01-11
</div> </div>
<div>名称${text}</div>
<div>容积80</div>
<div class="ycdiv">温度25.2</div>
<div>压力15Bar</div>
<div class="title">已记录</div>
</div>`; </div>`;
laberDiv.innerHTML = innerHTML; laberDiv.innerHTML = innerHTML;
@ -711,19 +724,15 @@ const checkComplete = () => {
} }
} }
.laber_name { .arrow_outer {
width: 120px; display: inline-block;
height: 90px; padding: 10px;
padding: 5px 10px; background: #999999;
white-space: nowrap; color: #000;
background-color: #ffffffb3; padding: 15px;
border-radius: 12px; border-radius: 5px;
font-size: 12px; >div {
display: flex; line-height: 32px;
flex-direction: column;
span {
line-height: 24px;
} }
} }
@ -742,13 +751,19 @@ const checkComplete = () => {
.arrow_state { .arrow_state {
display: inline-block; display: inline-block;
// width: 200px;
// height: 100px;
padding: 10px; padding: 10px;
background: #0dbc79; background: #68774f;
color: #fff; color: #000;
padding: 15px; padding: 15px;
border-radius: 5px; border-radius: 5px;
.title {
color: #81b337;
display: flex;
align-items: center;
span{
margin-left:5px;
}
}
>div { >div {
line-height: 32px; line-height: 32px;
@ -758,11 +773,41 @@ const checkComplete = () => {
.arrow_state1 { .arrow_state1 {
display: inline-block; display: inline-block;
padding: 10px; padding: 10px;
background: #e03528; background: #6e5053;
color: #fff; color: #000;
padding: 15px; padding: 15px;
border-radius: 5px; border-radius: 5px;
.title {
color: #bd3124;
display: flex;
align-items: center;
span{
margin-left:5px;
}
}
.ycdiv {
border: 1px solid #bd3124;
padding: 2px 5px;
}
>div {
line-height: 32px;
}
}
.arrow_state2 {
display: inline-block;
padding: 10px;
background: #999999;
color: #000;
padding: 15px;
border-radius: 5px;
.title {
color: #d79c55;
display: flex;
align-items: center;
span{
margin-left:5px;
}
}
>div { >div {
line-height: 32px; line-height: 32px;
} }
@ -802,38 +847,6 @@ const checkComplete = () => {
} }
} }
} }
.arrow_outer {
width: 100px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
>div {
line-height: 24px;
}
}
.arrow_state {
display: inline-block;
width: 200px;
background: #2dfa82c4;
color: #fff;
padding: 15px;
border-radius: 5px;
>div {
line-height: 32px;
}
}
.arrow_state1 {
display: inline-block;
background: #e03528;
color: #fff;
padding: 15px;
border-radius: 5px;
>div {
line-height: 32px;
}
}
@keyframes textAnimation { @keyframes textAnimation {
0% { 0% {
transform: scale(1); transform: scale(1);