Commit cf558d2c by 张权

提交添加loading

1 parent 80ca1482
...@@ -258,7 +258,14 @@ export default { ...@@ -258,7 +258,14 @@ export default {
if (this.routeInfo.orderId) { if (this.routeInfo.orderId) {
params.id = this.routeInfo.orderId params.id = this.routeInfo.orderId
} }
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.claims.commitClaimsOrder(params).then(res => { this.$apis.claims.commitClaimsOrder(params).then(res => {
loading.close()
if (res.code == '0') { if (res.code == '0') {
this.$message({ this.$message({
message: type == 1 ? '提交成功' : '保存草稿成功', message: type == 1 ? '提交成功' : '保存草稿成功',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!