Commit b8da44df by LJM

商品管理/品牌列表:导出未请求接口

parent 37ad9c3e
Showing with 6 additions and 3 deletions
......@@ -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" style="display:none">下载</a>
<a :href="downHref" ref="downs" target="_blank">下载</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,7 @@ export default {
this.disabled = true;
this.$message({
message: '正在导出中,请耐心等待',
type: 'success'
type: 'warning'
});
this.timer = setInterval(() => {
if (!this.disabled) {
......@@ -289,7 +289,10 @@ export default {
}).then(res => {
if (res.code == 0) {
this.disabled = false;
this.$message("导出成功")
this.$message({
message: '导出成功',
type: 'success'
});
this.downHref = res.data
setTimeout(() => {
this.$refs.downs.click()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment