Commit ab47265a authored by 李苏's avatar 李苏 💬

bug修复

parent e78a2c89
...@@ -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-09-26 15:41:14 * @LastEditTime: 2024-09-26 15:52:14
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue * @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
--> -->
<template> <template>
...@@ -776,21 +776,28 @@ ...@@ -776,21 +776,28 @@
this.mxbshow = true this.mxbshow = true
/* 匹配展示数据和本地数据*/ /* 匹配展示数据和本地数据*/
if (this.jzReMaterialQue.length != 0) { if (this.jzReMaterialQue.length != 0) {
let model;
/* 优先选中查询框的设备*/ // this.viewer.cameraControl.fitTo(this.jzReMaterialQue[0].model);
// this.sylbshow = true
// this.clickTag(this.jzReMaterialQue[0].model.name)
let model=false
let sbxxCode=this.sypcQueryParams.gnwz.replace(/\s+/g, ''); let sbxxCode=this.sypcQueryParams.gnwz.replace(/\s+/g, '');
this.jzReMaterialQue.forEach(jzitem=>{ this.jzReMaterialQue.forEach(jzitem=>{
if(jzitem.model&&jzitem.model.name&&jzitem.model.name==sbxxCode){ if(jzitem.model&&jzitem.model.name&&jzitem.model.name==sbxxCode){
model=jzitem.model model=jzitem.model
} }
}) })
if(model!==false){
this.viewer.cameraControl.fitTo(model);
this.viewer.cameraControl.fitTo(model||this.jzReMaterialQue[0].model);
this.sylbshow = true this.sylbshow = true
/* */ this.clickTag(model.name)
this.clickTag(model.name||this.jzReMaterialQue[0].model.name) }else{
this.viewer.cameraControl.fitTo(this.jzReMaterialQue[0].model);
this.sylbshow = true
this.clickTag(this.jzReMaterialQue[0].model.name)
}
} else { } else {
this.sylbshow = false this.sylbshow = false
} }
......
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