@@ -539,6 +539,7 @@ export default {
regionCodeParam: null,
materialDialog: false,
orderDialog: false,
+ fullscreenLoading: false,
materialCode: null,
flag: 1
}
@@ -641,14 +642,14 @@ export default {
},
// 下发
submits(row) {
- this.crud.loading = true
+ this.fullscreenLoading = true
crudPdmBdWorkorder.submits(row).then(res => {
this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
}).catch(() => {
- this.crud.loading = false
+ this.fullscreenLoading = false
}).finally(() => {
- this.crud.loading = false
+ this.fullscreenLoading = false
})
},
synchronize() {
@@ -658,6 +659,8 @@ export default {
this.crud.notify('同步成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(() => {
this.fullscreenLoading = false
+ }).finally(() => {
+ this.fullscreenLoading = false
})
}
}