巡检弹出框

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 = [
{
name: '建筑信息',
background: '#000000'
background: '#091d36'
},
{
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 { OrbitControls } from "three/examples/jsm/controls/OrbitControls.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 {
CSS2DObject,
CSS2DRenderer,
@ -474,9 +476,10 @@ const createLableObj = (text, t) => {
if (t === 'title') {
laberDiv.className = "laber_name";
laberDiv.innerHTML = `<div class="arrow_outer">
<div>设备名称${text}</div>
<div>状态启用</div>
<div>压力50 Pa</div>
<div>名称${text}</div>
<div>容积80</div>
<div>温度25.2</div>
<div>压力15Bar</div>
</div>`
//
} else if (t === 'details') {
@ -490,28 +493,38 @@ const createLableObj = (text, t) => {
//
} else {
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)
setTimeout(()=>{
laberDiv.className = "laber_state";
let innerHTML = t ? `<div class="arrow_state">
<div>设备名称${text}</div>
<div>
巡检结果巡检通过
<div class="title">
<img src=${imgs} width="24px"/>
</div>
<div>
巡检时间2023-12-23
</div>
<span>巡检通过</span>
</div>
<div>名称${text}</div>
<div>容积80</div>
<div>温度25.2</div>
<div>压力15Bar</div>
</div>`: `<div class="arrow_state1">
<div>设备名称${text}</div>
<div>
巡检结果巡检不通过已记录异常
<img src=${imgs} width="24px"/>
</div>
<div>
巡检时间2023-01-11
<div class="title">
<img src=${imgs1} width="24px"/>
<span>发现异常</span>
</div>
<div>名称${text}</div>
<div>容积80</div>
<div class="ycdiv">温度25.2</div>
<div>压力15Bar</div>
<div class="title">已记录</div>
</div>`;
laberDiv.innerHTML = innerHTML;
@ -711,19 +724,15 @@ const checkComplete = () => {
}
}
.laber_name {
width: 120px;
height: 90px;
padding: 5px 10px;
white-space: nowrap;
background-color: #ffffffb3;
border-radius: 12px;
font-size: 12px;
display: flex;
flex-direction: column;
span {
line-height: 24px;
.arrow_outer {
display: inline-block;
padding: 10px;
background: #999999;
color: #000;
padding: 15px;
border-radius: 5px;
>div {
line-height: 32px;
}
}
@ -742,13 +751,19 @@ const checkComplete = () => {
.arrow_state {
display: inline-block;
// width: 200px;
// height: 100px;
padding: 10px;
background: #0dbc79;
color: #fff;
background: #68774f;
color: #000;
padding: 15px;
border-radius: 5px;
.title {
color: #81b337;
display: flex;
align-items: center;
span{
margin-left:5px;
}
}
>div {
line-height: 32px;
@ -758,11 +773,41 @@ const checkComplete = () => {
.arrow_state1 {
display: inline-block;
padding: 10px;
background: #e03528;
color: #fff;
background: #6e5053;
color: #000;
padding: 15px;
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 {
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 {
0% {
transform: scale(1);