Browse Source

进程大于100停止调用接口

feature
mk 1 year ago
parent
commit
38d9415001
  1. 2
      src/views/modules/base/smartImport/cpts/executeTask.vue
  2. 7
      src/views/modules/base/smartImport/cpts/smartImportInfo.vue

2
src/views/modules/base/smartImport/cpts/executeTask.vue

@ -168,7 +168,7 @@ export default {
};
let res = await requestPost(url, parm);
if (res.code == 0) {
if (res.data === 100) {
if (res.data >= 100) {
this.stopTimer();
this.$emit('successImport')
}else{

7
src/views/modules/base/smartImport/cpts/smartImportInfo.vue

@ -91,7 +91,12 @@ export default {
this.progressNum = 100;
},
updateProgress(num) {
this.progressNum = num;
if(num > 100){
this.progress = 3;
this.progressNum = 100;
}else{
this.progressNum = num;
}
},
updateoperatorName({ operatorName, createdTime }) {
this.operatorName = operatorName;

Loading…
Cancel
Save