Jiejuchongtu

main
wangqiujuan0808 2024-01-08 23:55:06 +08:00
commit 0fddcc3aed
3 changed files with 1912 additions and 1863 deletions

File diff suppressed because one or more lines are too long

View File

@ -115,7 +115,45 @@ const data = reactive({
value: 100 value: 100
} }
], ],
children: [] children: [{
label: '糖化间-墙面5',
id: '0-0-1-0',
clickName: 'tanghua_wall5',
children: [],
info: {
name: '糖化间-墙面5',
area: '4 ㎡',
qthd: '4 cm',
cllx: '混凝土',
bwclx: '外墙保温',
smcl: '乳胶漆',
cznl: '22 kPa',
status: '启用',
date: '2013年11月11日',
lastDate: '2020年12月3日',
desc: '原料糖化车间负责原料糖化启用于2011年',
remark: '备注'
}
},{
label: '糖化间-墙面6',
id: '0-0-1-1',
clickName: 'tanghua_wall6',
children: [],
info: {
name: '糖化间-墙面6',
area: '4 ㎡',
qthd: '4 cm',
cllx: '混凝土',
bwclx: '外墙保温',
smcl: '乳胶漆',
cznl: '22 kPa',
status: '启用',
date: '2013年11月11日',
lastDate: '2020年12月3日',
desc: '原料糖化车间负责原料糖化启用于2011年',
remark: '备注'
}
}]
}, { }, {
label: '原料处理间', label: '原料处理间',
id: '0-0-2', id: '0-0-2',
@ -156,7 +194,45 @@ const data = reactive({
value: 150 value: 150
} }
], ],
children: [] children: [{
label: '原料处理间-墙面8',
id: '0-0-2-0',
clickName: 'yuanliao_wall8',
children: [],
info: {
name: '原料处理间-墙面8',
area: '8 ㎡',
qthd: '4 cm',
cllx: '混凝土',
bwclx: '外墙保温',
smcl: '乳胶漆',
cznl: '22 kPa',
status: '启用',
date: '2013年11月11日',
lastDate: '2020年12月3日',
desc: '原料糖化车间负责原料糖化启用于2011年',
remark: '备注'
}
},{
label: '原料处理间-墙面9',
id: '0-0-2-1',
clickName: 'yuanliao_wall9',
children: [],
info: {
name: '原料处理间-墙面9',
area: '9 ㎡',
qthd: '9 cm',
cllx: '混凝土',
bwclx: '外墙保温',
smcl: '乳胶漆',
cznl: '22 kPa',
status: '启用',
date: '2013年11月11日',
lastDate: '2020年12月3日',
desc: '原料糖化车间负责原料糖化启用于2011年',
remark: '备注'
}
}]
}, { }, {
label: '投料间', label: '投料间',
id: '0-0-3', id: '0-0-3',
@ -197,7 +273,45 @@ const data = reactive({
value: 40 value: 40
} }
], ],
children: [] children: [{
label: '投料间-墙面6',
id: '0-0-3-0',
clickName: 'touliao_wall6',
children: [],
info: {
name: '投料间-墙面6',
area: '6 ㎡',
qthd: '6 cm',
cllx: '混凝土',
bwclx: '外墙保温',
smcl: '乳胶漆',
cznl: '22 kPa',
status: '启用',
date: '2013年11月11日',
lastDate: '2020年12月3日',
desc: '原料糖化车间负责原料糖化启用于2011年',
remark: '备注'
}
},{
label: '投料间-墙面7',
id: '0-0-3-1',
clickName: 'touliao_wall7',
children: [],
info: {
name: '投料间-墙面7',
area: '7 ㎡',
qthd: '7 cm',
cllx: '混凝土',
bwclx: '外墙保温',
smcl: '乳胶漆',
cznl: '22 kPa',
status: '启用',
date: '2013年11月11日',
lastDate: '2020年12月3日',
desc: '原料糖化车间负责原料糖化启用于2011年',
remark: '备注'
}
}]
}], }],
} }
], ],

View File

@ -98,21 +98,11 @@ const { isAddLabel, isRemoveBottom, isShowWall } = toRefs(data);
Bus.on('clickBuild', (isParent) => { Bus.on('clickBuild', (isParent) => {
// Todo // Todo
console.log('clickBuild', isParent); console.log('clickBuild', isParent);
if (!isParent) {//
var clickName = bimStore().activateTree.clickName; var clickName = bimStore().activateTree.clickName;
var Floor = scene.getObjectByName(clickName); var Floor = scene.getObjectByName(clickName);
// x: 42.6454163 y: 5.36651754 z: -95.03277
// x: 27.127655 y: 8.55 z: -6.132766
// x: 27.6954441 y: 10.7530384 z: -37.73485
//
// nearCamera(Floor);
boxLight(Floor); boxLight(Floor);
return; return;
}
}) })
// //
Bus.on('clickDevice', (isParent) => { Bus.on('clickDevice', (isParent) => {
@ -259,7 +249,7 @@ const enableGroup = [
] ]
// //
const yjGroup = [ const yjGroup = [
'T11', 'T7',
] ]
const isSelent = (obj) => { const isSelent = (obj) => {
var o = obj var o = obj
@ -384,7 +374,7 @@ const cleanColor = () => {
} }
// //
const warn = () => { const warn = () => {
['T11'].forEach(item => { ['T7'].forEach(item => {
warnSets.push(scene.getObjectByName(item)); warnSets.push(scene.getObjectByName(item));
}) })
@ -625,11 +615,30 @@ const xfadd = (obj, state) => {
const sprite = new THREE.Sprite(spriteMaterial); const sprite = new THREE.Sprite(spriteMaterial);
// //
sprite.scale.set(5, 5, 5); sprite.scale.set(5, 5, 5);
sprite.position.y = 10; // sprite.position.y = 12; //
obj.add(sprite); //tagobj obj.add(sprite); //tagobj
console.log(123, obj)
}
//
const removexf = () => {
model.traverse(e => {
if (e.isMesh && e.children.length > 0) {
e.remove(e.children[0])
} else {
e.traverse(o => {
if (o.isMesh && o.children.length > 0) {
o.remove(o.children[0])
}
})
}
})
scene.remove(sprite);
} }
// //
const changeMap = (img) => { const changeMap = (img) => {
//
// removexf();
isShowWall.value = true; isShowWall.value = true;
// //
model.traverse(e => { model.traverse(e => {
@ -664,6 +673,7 @@ const changeMap = (img) => {
// //
const check = () => { const check = () => {
if (currentIndex < romeObj.length) { if (currentIndex < romeObj.length) {
// .getWorldPosition()
var checkPosition = checkArr[checkindex].getWorldPosition(new THREE.Vector3()); var checkPosition = checkArr[checkindex].getWorldPosition(new THREE.Vector3());
gsap.to(camera.position, { gsap.to(camera.position, {
@ -833,17 +843,12 @@ const checkComplete = () => {
} }
} }
} }
.pass {
color: #0caf71;
}
.nopass {
color: #fc1818;
}
.arrow_outer { .arrow_outer {
width: 100px;
display: flex; display: flex;
flex-direction: column; flex-wrap: wrap;
justify-content: space-between;
align-items: center;
>div { >div {
line-height: 24px; line-height: 24px;
} }