Commit 16cdd879 by chenyu

update: cancel timeout of customerList's batchac

parent 5edce4b7
......@@ -108,22 +108,17 @@ export default {
}))
.then(res => {
if (res.data.errorCode === 0) {
setTimeout(() => {
this.btnLoading = false;
checkSuccess();
this.$refs[ 'form' ].resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('refresh');
}, 4500);
checkSuccess();
this.$refs[ 'form' ].resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('refresh');
} else {
checkFalse();
this.btnLoading = false;
}
})
.catch(err => {
this.btnLoading = false;
checkStatus(err);
});
}).finally(_=>this.btnLoading = false);
} else {
return false;
}
......
......@@ -140,22 +140,17 @@ export default {
}))
.then(res => {
if (res.data.errorCode === 0) {
setTimeout(() => {
this.btnLoading = false;
checkSuccess('');
this.$refs[ 'form' ].resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('refresh');
}, 4500);
checkSuccess('');
this.$refs[ 'form' ].resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('refresh');
} else {
checkFalse();
this.btnLoading = false;
}
})
.catch(err => {
this.btnLoading = false;
checkStatus(err);
});
}).finally(_=>this.btnLoading = false);
} else {
return false;
}
......
......@@ -122,22 +122,17 @@ export default {
}))
.then(res => {
if (res.data.errorCode === 0) {
setTimeout(() => {
this.btnLoading = false;
checkSuccess();
this.$refs[ 'form' ].resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('refresh');
}, 4500);
checkSuccess();
this.$refs[ 'form' ].resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('refresh');
} else {
checkFalse();
this.btnLoading = false;
}
})
.catch(err => {
this.btnLoading = false;
checkStatus(err);
});
}).finally(_=>this.btnLoading = false);
} else {
return false;
}
......
......@@ -149,22 +149,17 @@ export default {
}))
.then(res => {
if (res.data.errorCode === 0) {
setTimeout(() => {
this.btnLoading = false;
checkSuccess();
this.$refs[ 'form' ].resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('refresh');
}, 4500);
checkSuccess();
this.$refs[ 'form' ].resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('refresh');
} else {
checkFalse();
this.btnLoading = false;
}
})
.catch(err => {
this.btnLoading = false;
checkStatus(err);
});
}).finally(_=>this.btnLoading = false);
} else {
return false;
}
......
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 to comment