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
9841e58e
Commit
9841e58e
authored
Aug 19, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user indexindex
parent
e574be65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
index.vue
pages/basicData/user/index.vue
+6
-2
No files found.
pages/basicData/user/index.vue
View file @
9841e58e
...
...
@@ -424,7 +424,7 @@ export default {
},
],
selectRow
:
{},
//删除时选中的行数据
//导入导出时使用
//导入导出时使用
start
searchs
:
{
pageIndex
:
1
,
pageSize
:
1000
,
...
...
@@ -560,6 +560,7 @@ export default {
},
],
departArr
:
[],
//部门list
//导入导出时使用end
};
},
created
()
{
...
...
@@ -868,6 +869,7 @@ export default {
});
},
//导入excel
//打开弹出层
import2Excel
()
{
this
.
modalImport
=
true
;
this
.
excelData
=
[];
...
...
@@ -876,6 +878,7 @@ export default {
this
.
departArr
=
r
.
result
.
items
;
});
},
//导入excel文件
async
beforeUpload
(
file
)
{
this
.
excelData
=
[];
const
workbook
=
await
this
.
$u
.
readXLSX
(
file
);
...
...
@@ -946,8 +949,8 @@ export default {
//console.log(workbook);
return
false
;
},
//确定批量导入
importOk
()
{
//确定批量导入
let
tempData
=
this
.
$u
.
clone
(
this
.
excelData
);
let
tempList
=
[];
tempData
.
forEach
((
ele
)
=>
{
...
...
@@ -981,6 +984,7 @@ export default {
}
});
},
//取消导入excel
cancelExcel
()
{
this
.
modalImport
=
false
;
this
.
excelData
=
[];
...
...
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