建模管理修改属性时显示进度条,空指针异常处理

This commit is contained in:
446052889@qq.com 2022-10-28 10:28:36 +08:00
parent 2ef21ee96b
commit 756e1eda8f

View File

@ -397,6 +397,7 @@ export default {
})
},
closeProgressBarDlg() {
this.clearInterval();
this.progressBarDlg.visible = false;
this.progressBarDlg.percentage = 0;
this.progressBarDlg.interval = null;
@ -485,7 +486,9 @@ export default {
};
awsuiAxios.post(data).then(function (ro) {
if (ro.result == 'ok') {
if (parseInt(ro.data.timer) <= that.progressBarDlg.timer) {// axios
if (ro.data.timer == '') {
that.clearInterval();
} else if (parseInt(ro.data.timer) <= that.progressBarDlg.timer) {// axios
//
that.progressBarDlg.totalCount = ro.data.totalCount;
that.progressBarDlg.okCount = ro.data.okCount;