Commit 0ec858fb authored by qinj's avatar qinj

提交延迟关闭页面

parent f8cb924a
...@@ -473,11 +473,14 @@ export default { ...@@ -473,11 +473,14 @@ export default {
this.$request(Customer.searchUrl, this.paramsToFormData(this.formData)).then((resp) => { this.$request(Customer.searchUrl, this.paramsToFormData(this.formData)).then((resp) => {
this.btnloading = false this.btnloading = false
this.$message.success('提交成功!') this.$message.success('提交成功!')
// setTimeout(function(){ setTimeout(() => {
// console.log('延时两秒') this.$router.back()
   window.location.href="about:blank"; }, 1000);
window.close(); // setTimeout(function(){
//    },20000); // console.log('延时两秒')
//    window.location.href="about:blank";
// window.close();
//    },20000);
}).catch((err) => { }).catch((err) => {
this.btnloading = false this.btnloading = false
}) })
......
...@@ -638,8 +638,7 @@ export default { ...@@ -638,8 +638,7 @@ export default {
this.$message.success('提交成功!') this.$message.success('提交成功!')
setTimeout(function(){ setTimeout(function(){
   this.$router.back()    this.$router.back()
   },20000);    },1000);
}).catch((err) => { }).catch((err) => {
this.btnloading = false this.btnloading = 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