Commit 3f960fcb authored by 李苏's avatar 李苏 💬

首屏加载样式。默认隐藏信息展示。动画导入等

parent e2a5bcb8
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: * @Description:
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @LastEditors: lisu lisu@gavelinfo.com * @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-22 15:15:43 * @LastEditTime: 2024-10-24 10:57:34
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue * @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
--> -->
<template> <template>
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
element-loading-background="rgba(0, 0, 0, 0.8)" ref="app" class="min_full nullbp"> element-loading-background="rgba(0, 0, 0, 0.8)" ref="app" class="min_full nullbp">
<!-- 弹框组件dialig --> <!-- 弹框组件dialig -->
<czDialog @save='getSave' :app='this' v-if='showDialog' /> <czDialog @save='getSave' :app='this' v-if='showDialog' />
<div class="bigTitle"> <div v-show="loading==false" class="bigTitle animate__animated animate__fadeInDown ">
一回路异物溯源态势图 一回路异物溯源态势图
</div> </div>
<!-- 视角工具栏--> <!-- 视角工具栏-->
<div class="toolButton"> <div v-show="loading==false" class="toolButton animate__animated animate__fadeInRight" >
<div class="flex1 text-center"> <div class="flex1 text-center">
<div class="menu"> <div class="menu">
<span style="cursor: pointer;" @click="toFullPage('jyfkgl/jyfkgl')"> <span style="cursor: pointer;" @click="toFullPage('jyfkgl/jyfkgl')">
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="toolButton2"> <div v-show="loading==false" class="toolButton2 animate__animated animate__fadeInLeft">
<div class="flex1 text-center"> <div class="flex1 text-center">
<div class="menu"> <span style="cursor: pointer;" @click="toFullPage('sbxxgl/sbxx')"> <div class="menu"> <span style="cursor: pointer;" @click="toFullPage('sbxxgl/sbxx')">
设备信息 设备信息
...@@ -67,10 +67,18 @@ ...@@ -67,10 +67,18 @@
<el-checkbox v-model="xzjj">选中时近景</el-checkbox> <el-checkbox v-model="xzjj">选中时近景</el-checkbox>
</div> </div>
</div> --> </div> -->
<div class="leftOpt" style="padding-top: 30px;"> <div v-show="selectedModelName" class="leftOpt animate__animated " :class="{
<div class="sbxxTitle" style="position: absolute;top: 5px;font-weight: 800;"> 'animate__fadeInLeft':selectedModelName&&showLeft,
'animate__fadeOutLeft':selectedModelName&&!showLeft
}" style="padding-top: 30px;">
<div class="sbxxTitle" style="position: absolute;top: 5px;font-weight: 800;width: 100%;">
{{'设备:'+(selectedModel.name||'未选中')}} {{'设备:'+(selectedModel.name||'未选中')}}
<span class="hiddenButton">
<i style="cursor: pointer;" @click="hiddenLeft" class="el-icon-switch-button"></i>
</span>
</div> </div>
<!-- 隐藏样式-->
<!-- 标高信息--> <!-- 标高信息-->
<div class="flex1" style="height: 33%;overflow: hidden;"> <div class="flex1" style="height: 33%;overflow: hidden;">
...@@ -274,7 +282,7 @@ ...@@ -274,7 +282,7 @@
</div> --> </div> -->
</div> </div>
<!-- 溯源排查--> <!-- 溯源排查-->
<div class="sypc"> <div v-show="loading==false" class="sypc animate__animated animate__fadeInUp ">
<div class="full data-box1" style="position: relative;"> <div class="full data-box1" style="position: relative;">
<i class="topL"></i> <i class="topL"></i>
<i class="topR"></i> <i class="topR"></i>
...@@ -570,6 +578,9 @@ ...@@ -570,6 +578,9 @@
czDialog czDialog
}, },
computed: { computed: {
selectedModelName(){
return this.selectedModel.name
},
byZts(){ byZts(){
return this.sypcQueryParams.byZts return this.sypcQueryParams.byZts
}, },
...@@ -585,6 +596,8 @@ ...@@ -585,6 +596,8 @@
}, },
data() { data() {
return { return {
showLeft:false,
/* 材质辅助输入*/ /* 材质辅助输入*/
cztypeConfig: { cztypeConfig: {
...@@ -653,6 +666,13 @@ ...@@ -653,6 +666,13 @@
} }
}, },
watch: { watch: {
selectedModelName(val){
if(val){
this.showLeft=true
}else{
this.showLeft=false
}
},
byZts(val){ byZts(val){
if(val){ if(val){
if(this.sypcQueryParams.kshZt){ if(this.sypcQueryParams.kshZt){
...@@ -687,6 +707,9 @@ ...@@ -687,6 +707,9 @@
} }
}, },
methods: { methods: {
hiddenLeft(){
this.showLeft=false
},
toFullPage(hash) { toFullPage(hash) {
const url = `${location.origin}/#/${hash}` const url = `${location.origin}/#/${hash}`
window.open(url, '_blank'); // 第二个参数 '_blank' 表示在新窗口或标签页中打开 window.open(url, '_blank'); // 第二个参数 '_blank' 表示在新窗口或标签页中打开
...@@ -956,6 +979,7 @@ ...@@ -956,6 +979,7 @@
} }
}).finally(() => { }).finally(() => {
this.loading = false this.loading = false
}) })
} else if (this.sypcQueryParams.isrRecentImport !== '') { } else if (this.sypcQueryParams.isrRecentImport !== '') {
...@@ -1520,6 +1544,10 @@ ...@@ -1520,6 +1544,10 @@
model.addEventListener("loaded", () => { model.addEventListener("loaded", () => {
this.loading = false this.loading = false
/* 解决共用showleft控制没有关闭效果
放置默认不控制,初始dom是存在的直接出现关闭特效
*/
this.viewer.scene.traverse(model => { this.viewer.scene.traverse(model => {
if (model.isMesh) { if (model.isMesh) {
if (model.name == '2RCV001EX_IN') { if (model.name == '2RCV001EX_IN') {
...@@ -1621,6 +1649,7 @@ ...@@ -1621,6 +1649,7 @@
return return
} }
this.selectedModel = model this.selectedModel = model
this.showLeft=true
// model.visible=false // model.visible=false
/* 执行并情况材料队列 */ /* 执行并情况材料队列 */
...@@ -1679,6 +1708,7 @@ ...@@ -1679,6 +1708,7 @@
model = intersects[0].object model = intersects[0].object
} }
this.selectedModel = model this.selectedModel = model
this.showLeft=true
/* 执行并情况材料队列 */ /* 执行并情况材料队列 */
this.reMaterialQue.forEach(item => { this.reMaterialQue.forEach(item => {
...@@ -1792,7 +1822,10 @@ ...@@ -1792,7 +1822,10 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.hiddenButton{
float: right;
color: #68D8FE;
}
.search-span { .search-span {
min-width: 60px; min-width: 60px;
float: right; float: right;
...@@ -1961,6 +1994,8 @@ ...@@ -1961,6 +1994,8 @@
} }
.leftOpt { .leftOpt {
// opacity: 0;
// transform:translate3d(-100%, 0, 0);
position: absolute; position: absolute;
margin-top: 185px; margin-top: 185px;
width: 28%; width: 28%;
......
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