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
ccf41188
Commit
ccf41188
authored
Nov 19, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.mes123.com/zhouyx/mes-ui
parents
b93bcd5e
79d5c600
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
247 additions
and
237 deletions
+247
-237
detailExcel.vue
components/page/import/detailExcel.vue
+2
-2
process.vue
components/page/import/process.vue
+3
-3
index.vue
pages/account/login/index.vue
+242
-232
No files found.
components/page/import/detailExcel.vue
View file @
ccf41188
...
...
@@ -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 @
ccf41188
...
...
@@ -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
);
}
...
...
pages/account/login/index.vue
View file @
ccf41188
This diff is collapsed.
Click to expand it.
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