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

bug修复

parent e78a2c89
......@@ -2,7 +2,7 @@
* @Description:
* @Author: 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
-->
<template>
......@@ -776,21 +776,28 @@
this.mxbshow = true
/* 匹配展示数据和本地数据*/
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, '');
this.jzReMaterialQue.forEach(jzitem=>{
if(jzitem.model&&jzitem.model.name&&jzitem.model.name==sbxxCode){
model=jzitem.model
}
})
if(model!==false){
this.viewer.cameraControl.fitTo(model);
this.sylbshow = true
this.clickTag(model.name)
}else{
this.viewer.cameraControl.fitTo(this.jzReMaterialQue[0].model);
this.sylbshow = true
this.clickTag(this.jzReMaterialQue[0].model.name)
}
this.viewer.cameraControl.fitTo(model||this.jzReMaterialQue[0].model);
this.sylbshow = true
/* */
this.clickTag(model.name||this.jzReMaterialQue[0].model.name)
} else {
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