Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-station-module-view
Project
Project
Details
Activity
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
station
amos-station-module-view
Commits
f158c508
Commit
f158c508
authored
Jun 24, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.xiugaiquexian
parent
9b62e283
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
3dService.js
mods/components/3dviewConvertor/services/3dService.js
+4
-2
PointLeftTree.js
...3dviewConvertor/view/moduleEditComponent/PointLeftTree.js
+5
-4
No files found.
mods/components/3dviewConvertor/services/3dService.js
View file @
f158c508
...
...
@@ -17,8 +17,10 @@ export const getObjFromNet = (url, callback) => {
return
{
basePath
,
...
rest
,
objName
:
encodeUrl
(
objName
),
mtlName
:
encodeUrl
(
mtlName
)
objName
,
mtlName
// objName: encodeUrl(objName),
// mtlName: encodeUrl(mtlName)
};
});
...
...
mods/components/3dviewConvertor/view/moduleEditComponent/PointLeftTree.js
View file @
f158c508
...
...
@@ -85,9 +85,10 @@ class PointLeftTree extends Component {
const
{
pointType
=
''
}
=
this
.
props
;
if
(
data
.
length
>
0
)
{
return
data
.
map
((
item
)
=>
{
const
index
=
item
.
name
.
indexOf
(
searchValue
);
const
beforeStr
=
item
.
name
.
substr
(
0
,
index
);
const
afterStr
=
item
.
name
.
substr
(
index
+
searchValue
.
length
);
const
label
=
item
.
name
?
item
.
name
:
item
.
code
;
const
index
=
label
.
indexOf
(
searchValue
);
const
beforeStr
=
label
.
substr
(
0
,
index
);
const
afterStr
=
label
.
substr
(
index
+
searchValue
.
length
);
const
title
=
index
>
-
1
?
(
<
span
>
...
...
@@ -96,7 +97,7 @@ class PointLeftTree extends Component {
{
afterStr
}
<
/span
>
)
:
(
<
span
>
{
item
.
name
}
<
/span
>
<
span
>
{
label
}
<
/span
>
);
if
(
item
.
children
)
{
return
(
...
...
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