Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
zghywpc-vue
Commits
ab47265a
Commit
ab47265a
authored
Sep 26, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
e78a2c89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+16
-9
No files found.
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
ab47265a
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment