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
a414b851
Commit
a414b851
authored
Oct 08, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整模型选中的逻辑,解决选中流向模型的问题
parent
03a44bde
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+13
-5
No files found.
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
a414b851
...
...
@@ -2,7 +2,7 @@
* @Description:
* @Author: lisu lisu@gavelinfo.com
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-
09-27 15:58:1
8
* @LastEditTime: 2024-
10-08 14:58:2
8
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
-->
<
template
>
...
...
@@ -1489,11 +1489,19 @@
}
let
model
/* 测试判定,实际根据模型实际特征来判定*/
if
(
intersects
[
0
].
object
.
name
==
''
)
{
model
=
intersects
[
1
].
object
}
else
{
model
=
intersects
[
0
].
object
// if (intersects[0].object.name == '') {
// model = intersects[1].object
// } else {
// model = intersects[0].object
// }
let
modelIndex
=
intersects
.
findIndex
(
item
=>
item
.
object
.
name
!==
''
)
if
(
modelIndex
!=-
1
){
model
=
intersects
[
modelIndex
].
object
}
else
{
console
.
log
(
'本次选中不存在name的节点'
)
}
/* 当模型隐藏 不继续触发*/
if
(
model
.
visible
==
false
)
{
rconsole
.
log
(
'当前对象已屏蔽'
)
...
...
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