Commit 4e271e8e by LJM

bug

parent 318628af
......@@ -196,8 +196,11 @@ export default {
},
downOut() {
if (this.disabled) {
this.$message("正在导出中,请不要重复点击");
return
this.$message({
message: '正在导出中,请不要重复点击',
type: 'success'
});
return false;
}
this.$http('post', "/api/brand/export_brand", {
brand_id: this.formParam.brand_id,
......@@ -206,7 +209,10 @@ export default {
}).then(res => {
if (res.code == 0) {
this.disabled = true
this.$message("正在导出中,请耐心等待")
this.$message({
message: '正在导出中,请耐心等待',
type: 'success'
});
this.timer = setInterval(() => {
if (!this.disabled) {
clearInterval(this.timer)
......
......@@ -276,7 +276,7 @@ export default {
this.timer = setInterval(() => {
if (!this.disabled) {
clearInterval(this.timer)
return
return false;
}
this.resultDown(res.data)
}, 3000)
......
......@@ -40,8 +40,8 @@
<el-form-item label="订单来源" prop="source_type">
<el-select v-model="formInline.source_type" placeholder="请选择">
<el-option label="全部" value=""></el-option>
<el-option label="云芯采购" value="1"></el-option>
<el-option label="正常采购" value="2"></el-option>
<el-option label="云芯采购" value="2"></el-option>
<el-option label="正常采购" value="1"></el-option>
</el-select>
</el-form-item>
<el-form-item>
......
......@@ -318,7 +318,10 @@ export default {
}).then(res => {
if (res.code == 0) {
this.disabled = true
this.$message("正在导出中,请耐心等待")
this.$message({
message: '正在导出中,请耐心等待',
type: 'success'
});
this.timer = setInterval(() => {
if (!this.disabled) {
clearInterval(this.timer)
......
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