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
a1ef6047
Commit
a1ef6047
authored
Aug 25, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
process
parent
185d14bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
process.vue
pages/import/process.vue
+2
-8
No files found.
pages/import/process.vue
View file @
a1ef6047
...
...
@@ -380,7 +380,6 @@ export default {
created
()
{
this
.
tdHeightExcel
=
window
.
innerHeight
-
180
;
//导出对列表头进行预加载start
//this.loadColum(this.columns0);
this
.
$api
.
get
(
`
${
systemUrl
}
/Department/GetDepartments`
).
then
((
r
)
=>
{
this
.
departArr
=
r
.
result
.
items
;
});
...
...
@@ -483,9 +482,7 @@ export default {
}
});
})
//alert(JSON.stringify(useData))
this
.
excelData
=
useData
;
// alert(JSON.stringify(useData))
},
//下载原excel文件
downFile
()
{
...
...
@@ -617,12 +614,13 @@ export default {
},
//粘贴excel成功
handleSuccess
(
tableData
)
{
//初始化数据
this
.
excelData
=
[];
this
.
excelDataBack
=
[];
this
.
columnsImport
=
[];
this
.
sheetNames
=
[];
this
.
pageType
=
undefined
;
//
console.log(tableData);
//
处理colum和data
let
tabColum
=
tableData
.
columns
let
tabData
=
tableData
.
data
let
arrData
=
[]
...
...
@@ -637,13 +635,9 @@ export default {
tabColum
.
forEach
(
el
=>
{
el
.
key
=
el
.
title
})
//alert(JSON.stringify(arrData))
//alert(JSON.stringify(tabColum))
this
.
columnsImport
=
tabColum
;
this
.
excelData
=
arrData
;
this
.
excelDataBack
=
arrData
;
//alert(JSON.stringify(this.columnsImport))
//alert(JSON.stringify(this.excelDataBack))
},
//粘贴excel失败
handleError
(
tableData
,
errorIndex
)
{
...
...
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