Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue3_onlineEditor
Overview
Overview
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
pangchong
vue3_onlineEditor
Commits
0a4ed742
Commit
0a4ed742
authored
Apr 15, 2025
by
pangchong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of 122.112.146.86:pangchong/vue3_onlineEditor
parents
69ed1919
95e0f4ac
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
src/assets/file/Trans-Convert.xml
+2
-1
src/lib/XMLProcessor/src/core/Processing.ts
+1
-0
src/lib/XMLProcessor/src/core/buildTree.ts
+2
-1
No files found.
src/assets/file/Trans-Convert.xml
View file @
0a4ed742
...
...
@@ -9,7 +9,8 @@
<CEP>
<EFFECT
EFFRG=
"001999"
></EFFECT>
<TITLEC>
发动机QEC拆卸(V2500-A5系列)
</TITLEC>
<TITLE>
Remove the Engine's QEC(V2500-A5 series)
</TITLE>
<TITLE>
Remove the Engine's QEC(V2500-A5 series)XXXX
</TITLE>
<TITLE>
Remove the Engine's QEC(V2500-A5 series)XXXX
</TITLE>
<TOPIC
CK-LEVEL=
"C"
>
<TITLEC>
飞机/发动机基本信息
</TITLEC>
<TITLE>
AIRCRAFT/ENGINE INFORMATION
</TITLE>
...
...
src/lib/XMLProcessor/src/core/Processing.ts
View file @
0a4ed742
...
...
@@ -247,6 +247,7 @@ export class Processing {
}
const
treeOld
=
reconstructTree
(
constructNodeA
)
const
treeNew
=
reconstructTree
(
constructNodeB
)
console
.
log
(
'the resp'
,
{
constructNodeA
,
constructNodeB
})
return
{
treeOld
,
treeNew
}
...
...
src/lib/XMLProcessor/src/core/buildTree.ts
View file @
0a4ed742
...
...
@@ -29,6 +29,7 @@ export function reconstructTree(data: any[]) {
for
(
let
i
=
chained
.
length
-
1
;
i
>
0
;
i
--
)
{
const
parentChained
=
chained
.
slice
(
0
,
i
);
const
parentKey
=
sortedData
.
find
(
d
=>
d
.
type
!==
'placeholder'
&&
d
.
chained
.
length
===
parentChained
.
length
&&
d
.
chained
.
every
((
val
:
any
,
idx
:
number
)
=>
val
===
parentChained
[
idx
])
)?.
key
;
...
...
@@ -75,7 +76,7 @@ export function reconstructTree(data: any[]) {
}
// Create XML document
const
doc
=
document
.
implementation
.
createDocument
(
''
,
''
,
null
);
const
doc
=
new
Document
(
);
// Use the first element (JOBCARD) as the root if it exists
if
(
result
.
length
>
0
)
{
...
...
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