Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
28dd6ca5
Commit
28dd6ca5
authored
Apr 02, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
cb56fb50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
25 deletions
+72
-25
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+72
-25
No files found.
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
28dd6ca5
...
...
@@ -2,7 +2,7 @@
* @Description:
* @Author: lisu lisu@gavelinfo.com
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2025-0
2-21 15:05:03
* @LastEditTime: 2025-0
4-02 17:40:30
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
-->
<
template
>
...
...
@@ -1577,30 +1577,77 @@
this
.
viewer
.
scene
.
traverse
(
model
=>
{
if
(
model
.
isMesh
)
{
if
(
model
.
name
==
'2RCV001EX_IN'
)
{
model
.
name
=
'2RCV001EX管'
}
if
(
model
.
name
==
'2RCV001EX'
)
{
model
.
name
=
'2RCV001EX壳'
}
if
(
model
.
name
==
'1RCV001EX_IN'
)
{
model
.
name
=
'1RCV001EX管'
}
if
(
model
.
name
==
'1RCV001EX'
)
{
model
.
name
=
'1RCV001EX壳'
}
if
(
model
.
name
==
'2RCP0620-2R8015014'
)
{
model
.
name
=
'2RCP0620A'
}
if
(
model
.
name
==
'2RCP0620-2R8015052'
)
{
model
.
name
=
'2RCP0620B'
}
if
(
model
.
name
==
'1RCP0620-1R8015045'
)
{
model
.
name
=
'1RCP0620A'
}
if
(
model
.
name
==
'1RCP0620-1R8015909'
)
{
model
.
name
=
'1RCP0620B'
}
const
nameMap
=
{
'2RCV001EX_IN'
:
'2RCV001EX管'
,
'2RCV001EX'
:
'2RCV001EX壳'
,
'1RCV001EX_IN'
:
'1RCV001EX管'
,
'1RCV001EX'
:
'1RCV001EX壳'
,
'2RCP0620-2R8015014'
:
'2RCP0620A'
,
'2RCP0620-2R8015052'
:
'2RCP0620B'
,
'1RCP0620-1R8015045'
:
'1RCP0620A'
,
'1RCP0620-1R8015909'
:
'1RCP0620B'
,
'2EAS006FI'
:
'2EAS005FI'
,
'2EAS005FI'
:
'2EAS006FI'
,
'2RIS0006'
:
'2RIS0003'
,
'2RIS0003'
:
'2RIS0006'
};
if
(
nameMap
[
model
.
name
])
{
const
oldName
=
model
.
name
;
model
.
name
=
nameMap
[
model
.
name
];
if
([
'2EAS006FI'
,
'2EAS005FI'
,
'2RIS0006'
,
'2RIS0003'
].
includes
(
oldName
))
{
console
.
log
(
`
${
oldName
}
=>
${
model
.
name
}
`
);
}
}
// if (model.name == '2RCV001EX_IN') {
// model.name = '2RCV001EX管'
// }
// if (model.name == '2RCV001EX') {
// model.name = '2RCV001EX壳'
// }
// if (model.name == '1RCV001EX_IN') {
// model.name = '1RCV001EX管'
// }
// if (model.name == '1RCV001EX') {
// model.name = '1RCV001EX壳'
// }
// if (model.name == '2RCP0620-2R8015014') {
// model.name = '2RCP0620A'
// }
// if (model.name == '2RCP0620-2R8015052') {
// model.name = '2RCP0620B'
// }
// if (model.name == '1RCP0620-1R8015045') {
// model.name = '1RCP0620A'
// }
// if (model.name == '1RCP0620-1R8015909') {
// model.name = '1RCP0620B'
// }
// /* */
// if (model.name == '1RCP0620-1R8015909') {
// model.name = '1RCP0620B'
// }
// if (model.name == '1RCP0620-1R8015909') {
// model.name = '1RCP0620B'
// }
// if (model.name == '2EAS006FI') {
// model.name = '2EAS005FI'
// console.log('2EAS006FI=>2EAS005FI')
// }
// if (model.name == '2EAS005FI') {
// model.name = '2EAS006FI'
// console.log('2EAS006FI=>2EAS005FI')
// }
// if (model.name == '2RIS0006') {
// model.name = '2RIS0003'
// console.log('2RIS0006=>2RIS0003')
// }
// if (model.name == '2RIS0003') {
// model.name = '2RIS0006'
// console.log('2RIS0003=>2RIS0006')
// }
model
.
oldmaterial
=
model
.
material
.
clone
()
}
})
...
...
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