Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
523e1a01
authored
Sep 28, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
商品管理/品牌列表:导出未请求接口
parent
b8da44df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
src/views/Goods/brand.vue
src/views/Goods/goods.vue
src/views/Goods/brand.vue
View file @
523e1a01
...
...
@@ -211,7 +211,8 @@ export default {
this
.
disabled
=
true
this
.
$message
({
message
:
'正在导出中,请耐心等待'
,
type
:
'success'
type
:
'warning'
,
duration
:
0
});
this
.
timer
=
setInterval
(()
=>
{
if
(
!
this
.
disabled
)
{
...
...
@@ -235,11 +236,15 @@ export default {
});
this
.
downHref
=
res
.
data
setTimeout
(()
=>
{
this
.
$refs
.
downs
.
click
()
},
10
)
this
.
$message
.
closeAll
();
this
.
$refs
.
downs
.
click
();
},
2000
)
}
else
if
(
res
.
code
==
-
1
)
{
//导出失败
this
.
$message
(
res
.
data
)
this
.
$message
({
message
:
res
.
msg
,
type
:
'error'
});
this
.
disabled
=
false
}
},
error
=>
{
...
...
src/views/Goods/goods.vue
View file @
523e1a01
...
...
@@ -21,7 +21,7 @@
<div
class=
"btn-nav clr"
>
<el-button
type=
"primary"
@
click=
"updateBrand"
>
修改
</el-button>
<el-button
type=
"primary"
@
click=
"downOut"
>
导出
</el-button>
<a
:href=
"downHref"
ref=
"downs"
target=
"_blank"
>
下载
</a>
<a
:href=
"downHref"
ref=
"downs"
target=
"_blank"
style=
"display:none"
>
下载
</a>
</div>
<div
class=
"data-box th-all"
v-if=
"tableData"
>
<el-table
:data=
"tableData"
border
max-height=
"600"
@
selection-change=
"handleSelectionChange"
>
...
...
@@ -271,7 +271,8 @@ export default {
this
.
disabled
=
true
;
this
.
$message
({
message
:
'正在导出中,请耐心等待'
,
type
:
'warning'
type
:
'warning'
,
duration
:
0
});
this
.
timer
=
setInterval
(()
=>
{
if
(
!
this
.
disabled
)
{
...
...
@@ -295,8 +296,9 @@ export default {
});
this
.
downHref
=
res
.
data
setTimeout
(()
=>
{
this
.
$message
.
closeAll
();
this
.
$refs
.
downs
.
click
()
},
1
0
)
},
200
0
)
}
else
if
(
res
.
code
==
-
1
)
{
//导出失败
this
.
$message
({
...
...
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