Commit 1d71dac0 by 西瓜

附件上传超时提示

parent 15630162
......@@ -78,4 +78,7 @@ post(`${base.alyIP}/shse/deleteObj`, params)
//三书一函删除
export const deleteGzry = params =>
post(`${base.alyIP}/ssyh/deleteSsyh`, params)
\ No newline at end of file
post(`${base.alyIP}/ssyh/deleteSsyh`, params)
export const addHcfkFj = params =>
postform(`${base.urlBase}/xsHcfkSp/addHcfkFj`, params)
\ No newline at end of file
......@@ -169,10 +169,10 @@ export function postform(url, data) {
return new Promise((resolve, reject) => {
instance.post(url, data).then(response => {
resolve(response);
}).catch(err => {
reject(err.data);
});
}).catch(err => {
reject(err.data);
});
})
}
/**
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -585,6 +585,15 @@ export default {
}
})
}
}).catch( err => {
// console.log(err,'超时');
this.$alert('上传超时!', '提示', {
confirmButtonText: '确定',
type: 'warning',
callback: () => {
loading.close()
}
})
})
},
onContentChange (val) {
......
......@@ -468,6 +468,15 @@ export default {
}
})
}
}).catch( err => {
console.log(err,'超时');
this.$alert('上传超时!', '提示', {
confirmButtonText: '确定',
type: 'warning',
callback: () => {
loading.close()
}
})
})
},
onContentChange (val) {
......
......@@ -803,6 +803,15 @@ export default {
}
})
}
}).catch( err => {
console.log(err,'超时');
this.$alert('上传超时!', '提示', {
confirmButtonText: '确定',
type: 'warning',
callback: () => {
loading.close()
}
})
})
},
httpRequest (data) {
......
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