Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
35aa0c8a
Commit
35aa0c8a
authored
Jun 06, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f65f1e66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
index.vue
src/views/system/role/index.vue
+1
-1
index.vue
src/views/system/user/index.vue
+21
-21
No files found.
src/views/system/role/index.vue
View file @
35aa0c8a
...
...
@@ -211,7 +211,7 @@
</el-radio-group>
</el-form-item>
<el-form-item
class=
"labelHeight"
label=
"菜单权限"
prop=
"menuIds"
>
<div
slot=
"label"
class=
"labelClass"
>
<div
slot=
"label"
class=
"labelClass
Required
"
>
<div
class=
"labelName"
>
菜单权限
</div>
<div
class=
"labelName"
>
Menu Limit
</div>
</div>
...
...
src/views/system/user/index.vue
View file @
35aa0c8a
...
...
@@ -1148,27 +1148,27 @@ export default {
formData
.
append
(
'file'
,
this
.
fileList
)
importExcel
(
formData
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
data
.
filename
===
null
)
{
this
.
$message
.
success
(
'导入成功'
)
this
.
fileList
=
[]
// 导入成功后关闭弹出框
this
.
importLoading
=
false
this
.
upload
.
open
=
false
// 导入成功后刷新页面
this
.
getList
()
}
else
{
uploadFalseFile
({
fileName
:
res
.
data
.
filename
}).
then
(
res
=>
{
const
blob
=
new
Blob
([
res
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
downloadElement
.
href
=
href
downloadElement
.
download
=
'模板错误提示'
+
'.txt'
// 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
)
// 释放掉blob对象
})
}
//
if (res.data.filename === null) {
this
.
$message
.
success
(
'导入成功'
)
this
.
fileList
=
[]
// 导入成功后关闭弹出框
this
.
importLoading
=
false
this
.
upload
.
open
=
false
// 导入成功后刷新页面
this
.
getList
()
//
} else {
//
uploadFalseFile({ fileName: res.data.filename }).then(res => {
//
const blob = new Blob([res])
//
const downloadElement = document.createElement('a')
//
const href = window.URL.createObjectURL(blob) // 创建下载的链接
//
downloadElement.href = href
//
downloadElement.download = '模板错误提示' + '.txt' // 下载后文件名
//
document.body.appendChild(downloadElement)
//
downloadElement.click() // 点击下载
//
document.body.removeChild(downloadElement) // 下载完成移除元素
//
window.URL.revokeObjectURL(href) // 释放掉blob对象
//
})
//
}
this
.
importLoading
=
false
}
else
{
this
.
$message
.
info
(
'上传超时,请重新上传'
)
...
...
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