Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
3081981e
Commit
3081981e
authored
Nov 19, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
empty
parent
4d19d48e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
detailExcel.vue
components/page/import/detailExcel.vue
+2
-2
process.vue
components/page/import/process.vue
+3
-3
No files found.
components/page/import/detailExcel.vue
View file @
3081981e
...
...
@@ -83,13 +83,13 @@ export default {
tabData
.
forEach
(
ele
=>
{
let
objData
=
{}
tabColum
.
forEach
(
el
=>
{
objData
[
el
.
title
]
=
ele
[
el
.
key
]
objData
[
el
.
title
]
=
ele
[
el
.
key
]
.
replace
(
/
\s
/g
,
""
)
})
arrData
.
push
(
objData
)
})
//处理title和key一致
tabColum
.
forEach
(
el
=>
{
el
.
key
=
el
.
title
el
.
key
=
el
.
title
.
replace
(
/
\s
/g
,
""
)
})
this
.
columnsImport
=
tabColum
;
...
...
components/page/import/process.vue
View file @
3081981e
...
...
@@ -374,8 +374,8 @@ export default {
});
headers
.
forEach
((
elHead
)
=>
{
let
headObj
=
{};
headObj
.
title
=
elHead
;
headObj
.
key
=
elHead
;
headObj
.
title
=
elHead
.
replace
(
/
\s
/g
,
""
)
;
headObj
.
key
=
elHead
.
replace
(
/
\s
/g
,
""
)
;
headersNow
.
push
(
headObj
);
});
this
.
columnsImport
=
headersNow
;
...
...
@@ -384,7 +384,7 @@ export default {
var
obj
=
{};
var
currentline
=
lines
[
i
].
split
(
","
);
for
(
var
j
=
0
;
j
<
headers
.
length
;
j
++
)
{
obj
[
headers
[
j
]]
=
currentline
[
j
];
obj
[
headers
[
j
]]
=
currentline
[
j
]
.
replace
(
/
\s
/g
,
""
)
;
}
result
.
push
(
obj
);
}
...
...
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